usi-csa-bridge 0.1.0

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +162 -0
  3. package/index.js +2 -0
  4. package/package.json +83 -0
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ (()=>{var e={1056:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=t.State=void 0;const r=s(8596),n=s(6656),i=s(3397),o=s(2368),a=s(6664),c=s(8588),l=s(8588);var u;!function(e){e.IDLE="idle",e.CONNECTING="connecting",e.CONNECTED="connected",e.WAITING_GAME_SUMMARY="waitingGameSummary",e.GAME_SUMMARY="gameSummary",e.GAME_TIME="gameTime",e.GAME_POSITION="gamePosition",e.READY="ready",e.WAITING_START="waitingStart",e.WAITING_REJECT="waitingReject",e.PLAYING="playing",e.WAITING_LOGOUT="waitingLogout",e.WAITING_CLOSE="waitingClose",e.CLOSED="closed"}(u||(t.State=u={}));t.Client=class{sessionID;_setting;logger;_state=u.IDLE;gameSummaryCallback;rejectCallback;startCallback;moveCallback;gameResultCallback;closeCallback;errorCallback;commandCallback;socket;gameSummary=(0,n.emptyCSAGameSummary)();playerStates=(0,n.emptyCSAPlayerStates)();specialMove=n.CSASpecialMove.UNKNOWN;_lastReceived;_lastSent;_commandHistory={discarded:0,commands:[]};_createdMs=Date.now();_loggedInMs;blankLinePingTimeout=null;constructor(e,t,s){this.sessionID=e,this._setting=t,this.logger=s}get setting(){return this._setting}get state(){return this._state}get lastReceived(){return this._lastReceived}get lastSent(){return this._lastSent}get commandHistory(){return this._commandHistory}get createdMs(){return this._createdMs}get loggedInMs(){return this._loggedInMs}on(e,t){switch(e){case"gameSummary":this.gameSummaryCallback=t;break;case"reject":this.rejectCallback=t;break;case"start":this.startCallback=t;break;case"move":this.moveCallback=t;break;case"gameResult":this.gameResultCallback=t;break;case"close":this.closeCallback=t;break;case"error":this.errorCallback=t;break;case"command":this.commandCallback=t}return this}login(){this.logger.info("sid=%d: connecting to %s:%d",this.sessionID,this.setting.host,this.setting.port),this._state=u.CONNECTING,this.socket=new o.Socket(this.setting.host,this.setting.port,{onConnect:this.onConnect.bind(this),onError:this.onConnectionError.bind(this),onFIN:this.onFIN.bind(this),onClose:this.onClose.bind(this),onRead:this.onRead.bind(this)},{keepaliveInitialDelay:this.setting.tcpKeepalive.initialDelay})}logout(){if(this.setting.protocolVersion===i.CSAProtocolVersion.V121_FLOODGATE)this.socket&&(this.logger.info("sid=%d: disconnect",this.sessionID),this.socket.end(),this._state=u.WAITING_CLOSE);else this.state!==u.WAITING_GAME_SUMMARY&&this.state!==u.GAME_SUMMARY&&this.state!==u.GAME_TIME&&this.state!==u.GAME_POSITION&&this.state!==u.READY||(this.send("LOGOUT"),this._state=u.WAITING_LOGOUT)}agree(e){this.state===u.READY&&e===this.gameSummary.id&&(this._state=u.WAITING_START,this.send(`AGREE ${this.gameSummary.id}`))}reject(e){this.state===u.READY&&e===this.gameSummary.id&&(this._state=u.WAITING_REJECT,this.send(`REJECT ${this.gameSummary.id}`))}doMove(e,t,s){if(this.state!==u.PLAYING)return;let r=e;void 0!==t&&(r+=`,'* ${Math.round(t)}`,void 0!==s&&(r+=` ${s}`)),this.send(r)}resign(){this.state===u.PLAYING&&this.send("%TORYO")}win(){this.state===u.PLAYING&&this.send("%KACHI")}stop(){this.state===u.PLAYING&&this.send("%CHUDAN")}send(e){this.socket?(this.socket.write(e),this._lastSent=(0,c.newCommand)(l.CommandType.SEND,this.hideSecureValues(e)),this.updateCommendHistory(this._lastSent),this.commandCallback&&this.commandCallback(this._lastSent),this.logger.info("sid=%d: > %s",this.sessionID,this.hideSecureValues(e)),this.setBlankLinePing(e)):this.logger.error("sid=%d: failed to send command caused by invalid socket: %s",this.sessionID,e)}hideSecureValues(e){return this.setting.password&&(e=e.replaceAll(this.setting.password,"*****")),e}onConnect(){this.logger.info("sid=%d: connected",this.sessionID),this._state=u.CONNECTED;let e="";this.setting.protocolVersion===i.CSAProtocolVersion.V121_X1&&(e=" x1"),this.send(`LOGIN ${this.setting.id} ${this.setting.password}${e}`)}onConnectionError(e){if(this.state===u.CLOSED)return;this.onError(e),this._state=u.CLOSED,this.closeCallback&&this.closeCallback();const t=(0,c.newCommand)(l.CommandType.SYSTEM,"connection error");this.updateCommendHistory(t),this.commandCallback&&this.commandCallback(t)}onError(e){this.logger.error("sid=%d: error: %s %s",this.sessionID,e.name,e.message),this.errorCallback&&this.errorCallback(e)}onFIN(){this.logger.info("sid=%d: FIN packet received",this.sessionID),this.clearBlankLinePing()}onClose(e){if(this.clearBlankLinePing(),this.state===u.CLOSED)return;switch(this.state){case u.WAITING_GAME_SUMMARY:case u.WAITING_LOGOUT:case u.WAITING_CLOSE:e?this.onError(new Error(a.t.errorOccuredWhileDisconnectingFromCSAServer)):this.logger.info("sid=%d: socket closed",this.sessionID);break;case u.CONNECTING:this.onError(new Error(a.t.failedToConnectToCSAServer));break;default:this.onError(new Error(a.t.disconnectedFromCSAServer))}this._state=u.CLOSED,this.closeCallback&&this.closeCallback();const t=(0,c.newCommand)(l.CommandType.SYSTEM,e?"closed (error)":"closed");this.updateCommendHistory(t),this.commandCallback&&this.commandCallback(t)}onRead(e){this.setBlankLinePing(),this._lastReceived=(0,c.newCommand)(l.CommandType.RECEIVE,e),this.updateCommendHistory(this._lastReceived),this.commandCallback&&this.commandCallback(this._lastReceived),this.logger.info("sid=%d: < %s",this.sessionID,e),""!==e&&(this.state===u.GAME_SUMMARY?this.onGameSummary(e):this.state===u.GAME_TIME?this.onGameTime(e):this.state===u.GAME_POSITION?this.onGamePosition(e):this.state===u.PLAYING?this.onMove(e):e.match(/^LOGIN:.* OK$/)?this.onLoginOK():"LOGIN:incorrect"===e?this.onLoginIncorrect():"LOGOUT:completed"===e?this.onLogout():"BEGIN Game_Summary"===e?this.onBeginGameSummary():e.startsWith("REJECT:")?this.onReject():e.startsWith("START:")?this.onStart():this.logger.warn("sid=%d: unknown command received",this.sessionID))}onLoginOK(){this._loggedInMs=Date.now(),this.logger.info("sid=%d: login ok",this.sessionID),this._state=u.WAITING_GAME_SUMMARY}onLoginIncorrect(){this.onError(new Error(a.t.csaServerLoginDenied)),this.socket&&this.socket.end()}onLogout(){this.logger.info("sid=%d: logout",this.sessionID),this._state=u.WAITING_CLOSE}onBeginGameSummary(){this._state=u.GAME_SUMMARY,this.gameSummary=(0,n.emptyCSAGameSummary)()}onEndGameSummary(){this.playerStates.black.time+=this.gameSummary.increment,this.playerStates.white.time+=this.gameSummary.increment;const e=(0,r.importCSA)(this.gameSummary.position);if(e instanceof Error)return this.onError(new Error("invalid game position received from CSA server")),void this.logout();for(const t of e.moves){if((0,r.isKnownSpecialMove)(t.move)&&t.move.type===r.SpecialMoveType.START)continue;const e=(0,r.reverseColor)(t.nextColor);this.updateTime(e,t.elapsedMs)}this._state=u.READY,this.gameSummaryCallback&&this.gameSummaryCallback(this.gameSummary)}onGameSummary(e){if("END Game_Summary"===e)return void this.onEndGameSummary();if("BEGIN Time"===e)return void(this._state=u.GAME_TIME);if("BEGIN Position"===e)return void(this._state=u.GAME_POSITION);const[t,s]=e.split(":",2);switch(t){case"Protocol_Version":case"Protocol_Mode":case"Format":case"Declaration":case"Rematch_On_Draw":case"Max_Moves":break;case"Game_ID":this.gameSummary.id=s;break;case"Name+":this.gameSummary.blackPlayerName=s;break;case"Name-":this.gameSummary.whitePlayerName=s;break;case"Your_Turn":this.gameSummary.myColor="+"===s?r.Color.BLACK:r.Color.WHITE;break;case"To_Move":this.gameSummary.toMove="+"===s?r.Color.BLACK:r.Color.WHITE;break;default:this.logger.warn("sid=%d: unknown command received",this.sessionID)}}onGameTime(e){if("END Time"===e)return void(this._state=u.GAME_SUMMARY);const[t,s]=e.split(":",2);switch(t){case"Least_Time_Per_Move":case"Time_Roundup":break;case"Time_Unit":s.endsWith("msec")?this.gameSummary.timeUnitMs=Number(s.slice(0,-4)):s.endsWith("sec")?this.gameSummary.timeUnitMs=1e3*Number(s.slice(0,-3)):s.endsWith("min")&&(this.gameSummary.timeUnitMs=60*Number(s.slice(0,-3))*1e3);break;case"Total_Time":this.gameSummary.totalTime=Number(s),this.playerStates.black.time=this.gameSummary.totalTime,this.playerStates.white.time=this.gameSummary.totalTime;break;case"Byoyomi":this.gameSummary.byoyomi=Number(s);break;case"Delay":this.gameSummary.delay=Number(s);break;case"Increment":this.gameSummary.increment=Number(s);break;default:this.logger.warn("sid=%d: unknown command received",this.sessionID)}}onGamePosition(e){"END Position"!==e?this.gameSummary.position+=e+"\n":this._state=u.GAME_SUMMARY}onReject(){this._state=u.WAITING_GAME_SUMMARY,this.rejectCallback&&this.rejectCallback()}onStart(){this._state=u.PLAYING,this.startCallback&&this.startCallback(this.playerStates)}onMove(e){e.startsWith("+")?this.onMoveWithColor(e,r.Color.BLACK):e.startsWith("-")?this.onMoveWithColor(e,r.Color.WHITE):e.startsWith("#")?this.onEndingCommand(e):e.startsWith("%")||this.logger.warn("sid=%d: unknown move command received",this.sessionID)}onMoveWithColor(e,t){const s=/^.*,T([0-9]+)$/.exec(e);if(s){const e=Number(s[1]);this.updateTime(t,1e3*e)}else this.logger.error("sid=%d: invalid move format",this.sessionID);this.moveCallback&&this.moveCallback(e,this.playerStates)}updateTime(e,t){const s=t/this.gameSummary.timeUnitMs,r=this.playerStates[e].time-s+this.gameSummary.increment;this.playerStates[e].time=Math.max(r,0)}onEndingCommand(e){switch(e){case"#RESIGN":this.specialMove=n.CSASpecialMove.RESIGN;break;case"#SENNICHITE":this.specialMove=n.CSASpecialMove.SENNICHITE;break;case"#OUTE_SENNICHITE":this.specialMove=n.CSASpecialMove.OUTE_SENNICHITE;break;case"#ILLEGAL_MOVE":this.specialMove=n.CSASpecialMove.ILLEGAL_MOVE;break;case"#ILLEGAL_ACTION":this.specialMove=n.CSASpecialMove.ILLEGAL_ACTION;break;case"#TIME_UP":this.specialMove=n.CSASpecialMove.TIME_UP;break;case"#JISHOGI":this.specialMove=n.CSASpecialMove.JISHOGI;break;case"#MAX_MOVES":this.specialMove=n.CSASpecialMove.MAX_MOVES;break;case"#WIN":this.onGameResult(n.CSAGameResult.WIN);break;case"#LOSE":this.onGameResult(n.CSAGameResult.LOSE);break;case"#DRAW":this.onGameResult(n.CSAGameResult.DRAW);break;case"#CENSORED":this.onGameResult(n.CSAGameResult.CENSORED);break;case"#CHUDAN":this.onGameResult(n.CSAGameResult.CHUDAN)}}onGameResult(e){this._state=u.WAITING_GAME_SUMMARY,this.gameResultCallback&&this.gameResultCallback(this.specialMove,e)}invoke(e,t){switch(e){case l.CommandType.SEND:this.send(t);break;case l.CommandType.RECEIVE:this.onRead(t)}}setBlankLinePing(e){this.setting.blankLinePing&&(this.clearBlankLinePing(),this.blankLinePingTimeout=setTimeout((()=>{this.send("")}),1e3*(""===e?this.setting.blankLinePing.interval:this.setting.blankLinePing.initialDelay)))}clearBlankLinePing(){this.blankLinePingTimeout&&(clearTimeout(this.blankLinePingTimeout),this.blankLinePingTimeout=null)}updateCommendHistory(e){(0,c.addCommand)(this._commandHistory,e,100,10)}}},3660:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invokeCommand=t.getCommandHistory=t.collectSessionStates=t.stop=t.win=t.resign=t.doMove=t.agree=t.logout=t.login=t.setHandlers=void 0;const r=s(7812),n=s(1056);let i;t.setHandlers=function(e){if(i)throw new Error("handlers already set");i=e};let o=0;const a=new Map;t.login=function(e){const t=(o+=1,o),s=new n.Client(t,e,(0,r.getCSALogger)()).on("gameSummary",(e=>i.onCSAGameSummary(t,e))).on("reject",(()=>i.onCSAReject(t))).on("start",(e=>i.onCSAStart(t,e))).on("move",((e,s)=>i.onCSAMove(t,e,s))).on("gameResult",((e,s)=>i.onCSAGameResult(t,e,s))).on("close",(()=>{setTimeout((()=>{a.delete(t)}),1e4),i.onCSAClose(t)})).on("error",i.sendError).on("command",(e=>{i.sendPromptCommand(t,e)}));return a.set(t,s),s.login(),t},t.logout=function(e){const t=a.get(e);t&&t.logout()},t.agree=function(e,t){const s=a.get(e);s&&s.agree(t)},t.doMove=function(e,t,s,r){const n=a.get(e);n&&n.doMove(t,s,r)},t.resign=function(e){const t=a.get(e);t&&t.resign()},t.win=function(e){const t=a.get(e);t&&t.win()},t.stop=function(e){const t=a.get(e);t&&t.stop()},t.collectSessionStates=function(){return Array.from(a.entries()).map((([e,t])=>({sessionID:e,host:t.setting.host,port:t.setting.port,loginID:t.setting.id,protocolVersion:t.setting.protocolVersion,stateCode:t.state,lastReceived:t.lastReceived,lastSent:t.lastSent,createdMs:t.createdMs,loggedInMs:t.loggedInMs,updatedMs:Date.now(),closed:t.state===n.State.WAITING_CLOSE||t.state===n.State.CLOSED}))).sort(((e,t)=>t.sessionID-e.sessionID))},t.getCommandHistory=function(e){const t=a.get(e);if(t)return t.commandHistory;throw new Error(`session not found: ${e}`)},t.invokeCommand=function(e,t,s){const r=a.get(e);r&&r.invoke(t,s)}},2368:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const r=s(1316).__importDefault(s(3066)),n=s(1520);t.Socket=class{socket;readline;constructor(e,t,s,i={keepaliveInitialDelay:0}){this.socket=r.default.createConnection({port:t,host:e},s.onConnect).setKeepAlive(!0,1e3*i.keepaliveInitialDelay).on("error",s.onError).on("end",s.onFIN).on("close",(e=>{this.closeReadline(),s.onClose(e)})),this.readline=(0,n.createInterface)(this.socket),this.readline.on("line",s.onRead)}write(e){this.socket.write(e+"\n")}end(){this.socket.end()}closeReadline(){this.readline&&(this.readline.close(),this.readline=null)}}},9248:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptString=t.EncryptString=t.isEncryptionAvailable=void 0;const r=s(3876),n=s(7812);t.isEncryptionAvailable=function(){return r.safeStorage.isEncryptionAvailable()},t.EncryptString=function(e){return r.safeStorage.encryptString(e).toString("base64")},t.DecryptString=function(e,t){try{return r.safeStorage.decryptString(Buffer.from(e,"base64"))}catch(e){return(0,n.getAppLogger)().error("failed to decrypt CSA server password: %s",e),t||""}}},1172:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listFiles=t.exists=void 0;const r=s(1316),n=s(662),i=r.__importDefault(s(8864));t.exists=async function(e){try{return await n.promises.lstat(e),!0}catch{return!1}},t.listFiles=async function e(t,s){const r=[],o=await n.promises.readdir(t);for(const a of o){const o=i.default.join(t,a),c=await n.promises.lstat(o);c.isFile()?r.push(o):s>0&&c.isDirectory()&&r.push(...await e(o,s-1))}return r}},7812:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tailLogFile=t.getTailCommand=t.openLogFile=t.shutdownLoggers=t.getCSALogger=t.getUSILogger=t.getAppLogger=t.overrideLogDestinations=t.openLogsDirectory=void 0;const r=s(1316),n=r.__importDefault(s(8864)),i=r.__importDefault(s(1096)),o=s(3876),a=r.__importDefault(s(9340)),c=s(4488),l=s(7700),u=s(2640),h=s(2580),p=(0,u.getAppPath)("logs");t.openLogsDirectory=function(){o.shell.openPath(p)};const d=(0,l.getDateTimeString)().replaceAll(" ","_").replaceAll("/","").replaceAll(":",""),f=n.default.join(p,`app-${d}.log`),m=n.default.join(p,`usi-${d}.log`),g=n.default.join(p,`csa-${d}.log`),y={appenders:{stdout:{type:"stdout"},recording:{type:"recording"}},categories:{default:{appenders:["stdout"],level:"info"}}};function S(e){switch(e){case h.LogType.APP:return f;case h.LogType.USI:return m;case h.LogType.CSA:return g}}function E(e){return function(e,t){switch(e){case h.LogType.APP:return t.enableAppLog;case h.LogType.USI:return t.enableUSILog;case h.LogType.CSA:return t.enableCSALog}}(e,(0,c.loadAppSettingOnce)())?[e]:(0,u.isTest)()?["recording"]:["stdout"]}const v={[h.LogType.APP]:null,[h.LogType.USI]:null,[h.LogType.CSA]:null};function T(e){return v[e]||E(e)}t.overrideLogDestinations=function(e,t){v[e]=t.map((t=>"file"===t?e:t))};const b={};function A(e){if(b[e])return b[e];if(!y.appenders[e]){const t=(0,c.loadAppSettingOnce)();y.appenders[e]={type:"file",filename:S(e)},y.categories[e]={appenders:T(e),level:t.logLevel}}const t=a.default.configure(y).getLogger(e);return b[e]=t,t}function P(e){const t=S(e);return"win32"===process.platform?`Get-Content -Path "${t}" -Wait -Tail 10`:`tail -f "${t}"`}t.getAppLogger=function(){return A(h.LogType.APP)},t.getUSILogger=function(){return A(h.LogType.USI)},t.getCSALogger=function(){return A(h.LogType.CSA)},t.shutdownLoggers=function(){a.default.shutdown((e=>{console.error("failed to shutdown loggers:",e)}))},t.openLogFile=function(e){o.shell.openPath(S(e))},t.getTailCommand=P,t.tailLogFile=function(e){const t=P(e).replaceAll('"','\\"');switch(process.platform){case"win32":i.default.spawn("powershell.exe",["-Command",`start-process powershell '-NoExit','-Command "${t}"'`]);break;case"darwin":i.default.spawn("osascript",["-e",`tell app "Terminal" to do script "${t}"`,"-e",'tell app "Terminal" to activate'])}}},2640:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAppPath=t.getTempPathForTesting=t.getPortableExeDir=t.isPortable=t.isProduction=t.isTest=t.isPreview=t.isDevelopment=void 0;const r=s(1316),n=s(3876),i=r.__importDefault(s(662)),o=r.__importDefault(s(5672)),a=r.__importDefault(s(8864));function c(){return"electron:serve"===process.env.npm_lifecycle_event&&!0}function l(){return"electron:preview"===process.env.npm_lifecycle_event}function u(){return!1}let h;function p(){return h||(h=i.default.mkdtempSync(a.default.join(o.default.tmpdir(),"electron-shogi-test-"))),h}t.isDevelopment=c,t.isPreview=l,t.isTest=u,t.isProduction=function(){return!c()&&!l()&&!0},t.isPortable=function(){return void 0!==process.env.PORTABLE_EXECUTABLE_DIR},t.getPortableExeDir=function(){return process.env.PORTABLE_EXECUTABLE_DIR},t.getTempPathForTesting=p,t.getAppPath=function(e){if(n.app)return n.app.getPath(e);switch(e){case"logs":return a.default.join(process.cwd(),"logs");case"exe":return process.argv[1];default:return process.cwd()}}},4488:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadMateSearchSetting=t.saveMateSearchSetting=t.loadAnalysisSetting=t.saveAnalysisSetting=t.loadResearchSetting=t.saveResearchSetting=t.loadCSAGameSettingHistory=t.saveCSAGameSettingHistory=t.loadGameSetting=t.saveGameSetting=t.loadBatchConversionSetting=t.saveBatchConversionSetting=t.loadAppSetting=t.loadAppSettingOnce=t.saveAppSetting=t.loadUSIEngineSetting=t.saveUSIEngineSetting=t.loadWindowSetting=t.saveWindowSetting=t.openAutoSaveDirectory=t.openSettingsDirectory=void 0;const r=s(1316),n=r.__importDefault(s(662)),i=s(3876),o=r.__importDefault(s(8864)),a=s(5208),c=s(4680),l=s(188),u=s(9600),h=s(9672),p=s(3680),d=s(7812),f=s(3397),m=s(9248),g=s(2640),y=s(1460),S=s(6360),E=s(1172),v=(0,g.getAppPath)("userData"),T=(0,g.getPortableExeDir)()||v,b=o.default.join((0,g.getAppPath)("documents"),"ElectronShogi");t.openSettingsDirectory=function(){i.shell.openPath(T)},t.openAutoSaveDirectory=async function(){const e=await x();i.shell.openPath(e.autoSaveDirectory||b)};const A=o.default.join(v,"window.json");t.saveWindowSetting=function(e){try{n.default.writeFileSync(A,JSON.stringify(e,void 0,2),"utf8")}catch(e){(0,d.getAppLogger)().error("failed to write window setting: %s",e)}},t.loadWindowSetting=function(){try{return(0,l.normalizeWindowSetting)(JSON.parse(n.default.readFileSync(A,"utf8")))}catch(e){return(0,d.getAppLogger)().error("failed to read window setting: %s",e),(0,l.defaultWindowSetting)()}};const P=o.default.join(T,"usi_engine.json");t.saveUSIEngineSetting=async function(e){await n.default.promises.writeFile(P,e.jsonWithIndent,"utf8")},t.loadUSIEngineSetting=async function(){return await(0,E.exists)(P)?new a.USIEngineSettings(await n.default.promises.readFile(P,"utf8")):new a.USIEngineSettings};const I=o.default.join(v,"app_setting.json");t.saveAppSetting=async function(e){await n.default.promises.writeFile(I,JSON.stringify(e,void 0,2),"utf8")};const C="win32"===process.platform?"\r\n":"\n";function N(){return(0,c.defaultAppSetting)({returnCode:C,autoSaveDirectory:b})}function _(e){return(0,c.normalizeAppSetting)(JSON.parse(e),{returnCode:C,autoSaveDirectory:b})}let w;async function x(){return await(0,E.exists)(I)?_(await n.default.promises.readFile(I,"utf8")):N()}t.loadAppSettingOnce=function(){return w||(w=n.default.existsSync(I)?_(n.default.readFileSync(I,"utf8")):N()),w},t.loadAppSetting=x;const O=o.default.join(T,"batch_conversion_setting.json");t.saveBatchConversionSetting=async function(e){await n.default.promises.writeFile(O,JSON.stringify(e,void 0,2),"utf8")},t.loadBatchConversionSetting=async function(){return await(0,E.exists)(O)?(0,S.normalizeBatchConversionSetting)(JSON.parse(await n.default.promises.readFile(O,"utf8"))):(0,S.defaultBatchConversionSetting)()};const M=o.default.join(T,"game_setting.json");t.saveGameSetting=async function(e){await n.default.promises.writeFile(M,JSON.stringify(e,void 0,2),"utf8")},t.loadGameSetting=async function(){return await(0,E.exists)(M)?(0,u.normalizeGameSetting)(JSON.parse(await n.default.promises.readFile(M,"utf8"))):(0,u.defaultGameSetting)()};const k=o.default.join(T,"csa_game_setting_history.json");t.saveCSAGameSettingHistory=async function(e){const t=(0,f.encryptCSAGameSettingHistory)(e,(0,m.isEncryptionAvailable)()?m.EncryptString:void 0);await n.default.promises.writeFile(k,JSON.stringify(t,void 0,2),"utf8")},t.loadCSAGameSettingHistory=async function(){if(!await(0,E.exists)(k))return(0,f.defaultCSAGameSettingHistory)();const e=JSON.parse(await n.default.promises.readFile(k,"utf8"));return(0,f.decryptCSAGameSettingHistory)((0,f.normalizeSecureCSAGameSettingHistory)(e),(0,m.isEncryptionAvailable)()?m.DecryptString:void 0)};const L=o.default.join(T,"research_setting.json");t.saveResearchSetting=async function(e){await n.default.promises.writeFile(L,JSON.stringify(e,void 0,2),"utf8")},t.loadResearchSetting=async function(){return await(0,E.exists)(L)?(0,h.normalizeResearchSetting)(JSON.parse(await n.default.promises.readFile(L,"utf8"))):(0,h.defaultResearchSetting)()};const R=o.default.join(T,"analysis_setting.json");t.saveAnalysisSetting=async function(e){await n.default.promises.writeFile(R,JSON.stringify(e,void 0,2),"utf8")},t.loadAnalysisSetting=async function(){return await(0,E.exists)(R)?(0,p.normalizeAnalysisSetting)(JSON.parse(await n.default.promises.readFile(R,"utf8"))):(0,p.defaultAnalysisSetting)()};const D=o.default.join(T,"mate_search_setting.json");t.saveMateSearchSetting=async function(e){await n.default.promises.writeFile(D,JSON.stringify(e,void 0,2),"utf8")},t.loadMateSearchSetting=async function(){return await(0,E.exists)(D)?(0,y.normalizeMateSearchSetting)(JSON.parse(await n.default.promises.readFile(D,"utf8"))):(0,y.defaultMateSearchSetting)()}},4808:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EngineProcess=t.State=t.GameResult=void 0;const r=s(5208),n=s(7836),i=s(9952),o=s(8588);var a,c;function l(e){switch(e){case"+":case"+0":case"0":return+n.SCORE_MATE_INFINITE;case"-":case"-0":return-n.SCORE_MATE_INFINITE;default:return Number(e)}}function u(e){const t={},s=e.split(" ");for(let r=0;r<e.length;r+=1)switch(s[r]){case"depth":t.depth=Number(s[r+1]),r+=1;break;case"seldepth":t.seldepth=Number(s[r+1]),r+=1;break;case"time":t.timeMs=Number(s[r+1]),r+=1;break;case"nodes":t.nodes=Number(s[r+1]),r+=1;break;case"pv":t.pv=s.slice(r+1),r=s.length;break;case"multipv":t.multipv=Number(s[r+1]),r+=1;break;case"score":switch(s[r+1]){case"cp":t.scoreCP=Number(s[r+2]),r+=2;break;case"mate":t.scoreMate=l(s[r+2]),r+=2}break;case"lowerbound":t.lowerbound=!0;break;case"upperbound":t.upperbound=!0;break;case"currmove":t.currmove=s[r+1],r+=1;break;case"hashfull":t.hashfullPerMill=Number(s[r+1]),r+=1;break;case"nps":t.nps=Number(s[r+1]),r+=1;break;case"string":t.string=s.slice(r+1).join(" "),r=s.length}return t}function h(e){return e?`btime ${e.btime} wtime ${e.wtime} `+(0!==e.binc||0!==e.winc?`binc ${e.binc} winc ${e.winc}`:`byoyomi ${e.byoyomi}`):"infinite"}!function(e){e.WIN="win",e.LOSE="lose",e.DRAW="draw"}(a||(t.GameResult=a={})),function(e){e.WaitingForUSIOK="waitingForUSIOK",e.NotReady="notReady",e.WaitingForReadyOK="waitingForReadyOK",e.Ready="ready",e.WaitingForBestMove="waitingForBestMove",e.Ponder="ponder",e.WaitingForPonderBestMove="waitingForPonderBestMove",e.WaitingForCheckmate="waitingForCheckmate",e.WillQuit="willQuit"}(c||(t.State=c={}));t.EngineProcess=class{_path;sessionID;logger;option;process=null;_name="NO NAME";_author="";_engineOptions={};_state=c.WaitingForUSIOK;currentPosition="";invalidBestMoveCount=0;reservedGoCommand;launchTimeout;quitTimeout;_lastReceived;_lastSent;_commandHistory={discarded:0,commands:[]};timeoutCallback;errorCallback;usiOkCallback;readyCallback;bestMoveCallback;checkmateCallback;checkmateNotImplementedCallback;checkmateTimeoutCallback;noMateCallback;infoCallback;ponderInfoCallback;commandCallback;constructor(e,t,s,r){this._path=e,this.sessionID=t,this.logger=s,this.option=r}get path(){return this._path}get name(){return this._name}get author(){return this._author}get engineOptions(){return this._engineOptions}get state(){return this._state}get lastReceived(){return this._lastReceived}get lastSent(){return this._lastSent}get commandHistory(){return this._commandHistory}get pid(){return this.process?.pid}on(e,t){switch(e){case"timeout":this.timeoutCallback=t;break;case"error":this.errorCallback=t;break;case"usiok":this.usiOkCallback=t;break;case"ready":this.readyCallback=t;break;case"bestmove":this.bestMoveCallback=t;break;case"checkmate":this.checkmateCallback=t;break;case"checkmateNotImplemented":this.checkmateNotImplementedCallback=t;break;case"checkmateTimeout":this.checkmateTimeoutCallback=t;break;case"noMate":this.noMateCallback=t;break;case"info":this.infoCallback=t;break;case"ponderInfo":this.ponderInfoCallback=t;break;case"command":this.commandCallback=t}return this}launch(){this.logger.info("sid=%d: launch: %s",this.sessionID,this.path),this.setLaunchTimeout(),this.process=new i.ChildProcess(this.path),this.process.on("error",this.onError.bind(this)),this.process.on("close",this.onClose.bind(this)),this.process.on("receive",this.onReceive.bind(this)),this.send("usi")}quit(){this.state!==c.WillQuit&&(this._state=c.WillQuit,this.clearLaunchTimeout(),this.logger.info("sid=%d: quit USI engine",this.sessionID),this.process&&(this.setQuitTimeout(),this.send("quit")))}setOption(e,t){void 0!==t?this.send(`setoption name ${e} value ${t}`):this.send(`setoption name ${e}`)}ready(){if(this.state!==c.WaitingForReadyOK){if(this.state!==c.Ready&&this.state!==c.WaitingForBestMove&&this.state!==c.Ponder&&this.state!==c.WaitingForPonderBestMove&&this.state!==c.WaitingForCheckmate||this.gameover(a.DRAW),this.state!==c.NotReady)return this.logger.warn("sid=%d: ready: unexpected state: %s",this.sessionID,this.state),new Error("unexpected state");this.send("isready"),this._state=c.WaitingForReadyOK}}go(e,t){switch(this.reservedGoCommand={position:e,timeState:t},this.state){case c.Ready:this.sendReservedGoCommands();break;case c.WaitingForBestMove:case c.Ponder:case c.WaitingForCheckmate:this.stop()}}goPonder(e,t){switch(this.reservedGoCommand={position:e,timeState:this.option.enableEarlyPonder?void 0:t,ponder:!0},this.state){case c.Ready:this.sendReservedGoCommands();break;case c.WaitingForBestMove:case c.Ponder:case c.WaitingForCheckmate:this.stop()}}goMate(e){switch(this.reservedGoCommand={position:e,mate:!0},this.state){case c.Ready:this.sendReservedGoCommands();break;case c.WaitingForBestMove:case c.Ponder:case c.WaitingForCheckmate:this.stop()}}ponderHit(e){this.state===c.Ponder?(this.option.enableEarlyPonder?this.send("ponderhit "+h(e)):this.send("ponderhit"),this._state=c.WaitingForBestMove):this.logger.warn("sid=%d: ponderHit: unexpected state: %s",this.sessionID,this.state)}stop(){this.state===c.WaitingForBestMove||this.state===c.Ponder||this.state===c.WaitingForCheckmate?"stop"!==this.lastSent?.command&&(this.send("stop"),this.state===c.Ponder&&(this._state=c.WaitingForPonderBestMove)):this.logger.warn("sid=%d: stop: unexpected state: %s",this.sessionID,this.state)}gameover(e){switch(this.state){case c.WaitingForUSIOK:case c.NotReady:case c.WaitingForReadyOK:case c.WillQuit:return void this.logger.warn("sid=%d: gameover: unexpected state: %s",this.sessionID,this.state);case c.WaitingForBestMove:case c.Ponder:this.stop(),this.invalidBestMoveCount++;break;case c.WaitingForPonderBestMove:this.invalidBestMoveCount++;break;case c.WaitingForCheckmate:this.stop();case c.Ready:}this.send("gameover "+e),this._state=c.NotReady,this.reservedGoCommand=void 0}setLaunchTimeout(){this.launchTimeout=setTimeout((()=>{this.timeoutCallback&&this.timeoutCallback(),this.quit()}),this.option.timeout||1e4)}clearLaunchTimeout(){this.launchTimeout&&(clearTimeout(this.launchTimeout),this.launchTimeout=void 0)}setQuitTimeout(){this.quitTimeout=setTimeout((()=>{this.process&&(this.process.kill(),this.process=null)}),5e3)}clearQuitTimeout(){this.quitTimeout&&(clearTimeout(this.quitTimeout),this.quitTimeout=void 0)}onError(e){this.errorCallback&&this.errorCallback(e),this.quit()}onClose(e,t){this.logger.info("sid=%d: engine process closed: close=%s signal=%s",this.sessionID,e,t),this.state!==c.WillQuit&&this.errorCallback&&this.errorCallback(new Error("closed unexpectedly")),this.clearLaunchTimeout(),this.clearQuitTimeout(),this.process=null;const s=(0,o.newCommand)(o.CommandType.SYSTEM,`closed: close=${e} signal=${t}`);this.updateCommendHistory(s),this.commandCallback&&this.commandCallback(s)}sendReservedGoCommands(){if(!this.reservedGoCommand)return;this.send(this.reservedGoCommand.position);let e="",t="";var s;this.reservedGoCommand.ponder?(e="ponder",t=(s=this.reservedGoCommand.timeState)?h(s):""):this.reservedGoCommand.mate?(e="mate",t=h(this.reservedGoCommand.timeState)):t=h(this.reservedGoCommand.timeState),this.send("go"+(e?" "+e:"")+(t?" "+t:"")),this.currentPosition=this.reservedGoCommand.position,this._state=this.reservedGoCommand.ponder?c.Ponder:this.reservedGoCommand.mate?c.WaitingForCheckmate:c.WaitingForBestMove,this.reservedGoCommand=void 0}send(e){this.process&&(this.process.send(e),this._lastSent=(0,o.newCommand)(o.CommandType.SEND,e),this.updateCommendHistory(this._lastSent),this.commandCallback&&this.commandCallback(this._lastSent),this.logger.info("sid=%d: > %s",this.sessionID,e))}onReceive(e){this._lastReceived=(0,o.newCommand)(o.CommandType.RECEIVE,e),this.updateCommendHistory(this._lastReceived),this.commandCallback&&this.commandCallback(this._lastReceived),this.logger.info("sid=%d: < %s",this.sessionID,e),this.state!==c.WillQuit&&(e.startsWith("id name ")?this.onIDName(e.substring(8)):e.startsWith("id author ")?this.onIDAuthor(e.substring(10)):e.startsWith("option ")?this.onOption(e.substring(7)):"usiok"===e?this.onUSIOk():"readyok"===e?this.onReadyOk():e.startsWith("bestmove ")?this.onBestMove(e.substring(9)):e.startsWith("checkmate ")?this.onCheckmate(e.substring(10)):e.startsWith("info ")&&this.onInfo(e.substring(5)))}onIDName(e){this._name=e}onIDAuthor(e){this._author=e}onOption(e){const t=e.split(" ");if(t.length<4||"name"!==t[0]||"type"!==t[2])return void this.logger.error("sid=%d: invalid option command",this.sessionID);const s={name:t[1],type:t[3],order:100+Object.keys(this._engineOptions).length,vars:[]};for(let e=4;e+1<t.length;e+=1)switch(t[e]){case"default":s.default="spin"===s.type?Number(t[e+1]):t[e+1];break;case"min":s.min=Number(t[e+1]);break;case"max":s.max=Number(t[e+1]);break;case"var":s.vars.push(t[e+1])}this._engineOptions[s.name]=s}onUSIOk(){this.state===c.WaitingForUSIOK?(this.engineOptions[r.USIHash]||(this._engineOptions[r.USIHash]={name:r.USIHash,type:"spin",order:1,default:32,vars:[]}),this.engineOptions[r.USIPonder]||(this._engineOptions[r.USIPonder]={name:r.USIPonder,type:"check",order:2,default:"true",vars:[]}),this.option.engineOptions&&this.option.engineOptions.forEach((e=>{const t=(0,r.getUSIEngineOptionCurrentValue)(e);void 0!==t&&this.setOption(e.name,t)})),this.clearLaunchTimeout(),this._state=c.NotReady,this.usiOkCallback&&this.usiOkCallback()):this.logger.warn("sid=%d: onUSIOk: unexpected state: %s",this.sessionID,this.state)}onReadyOk(){this.state===c.WaitingForReadyOK?(this._state=c.Ready,this.readyCallback&&this.readyCallback(),this.send("usinewgame"),this.sendReservedGoCommands()):this.logger.warn("sid=%d: onReadyOk: unexpected state: %s",this.sessionID,this.state)}onBestMove(e){if(this.invalidBestMoveCount>0)return this.invalidBestMoveCount--,void this.logger.warn("sid=%d: onBestMove: ignore bestmove: %s",this.sessionID,e);if(this.state===c.WaitingForBestMove||this.state===c.WaitingForPonderBestMove){if(this.bestMoveCallback&&this.state===c.WaitingForBestMove){const t=e.split(" "),s=t[0],r=t.length>=3&&"ponder"===t[1]&&t[2]||void 0;this.bestMoveCallback(this.currentPosition,s,r)}this._state=c.Ready,this.currentPosition="",this.sendReservedGoCommands()}else this.logger.warn("sid=%d: onBestMove: unexpected state: %s",this.sessionID,this.state)}onCheckmate(e){this.state===c.WaitingForCheckmate?(this._state=c.Ready,"notimplemented"!==e.trim()?"timeout"!==e.trim()?"nomate"!==e.trim()?this.checkmateCallback&&this.checkmateCallback(this.currentPosition,e.trim().split(" ")):this.noMateCallback&&this.noMateCallback(this.currentPosition):this.checkmateTimeoutCallback&&this.checkmateTimeoutCallback(this.currentPosition):this.checkmateNotImplementedCallback&&this.checkmateNotImplementedCallback()):this.logger.warn("sid=%d: onCheckmate: unexpected state: %s",this.sessionID,this.state)}onInfo(e){switch(this.state){case c.WaitingForBestMove:case c.WaitingForCheckmate:this.infoCallback&&this.infoCallback(this.currentPosition,u(e));break;case c.Ponder:case c.WaitingForPonderBestMove:this.ponderInfoCallback&&this.ponderInfoCallback(this.currentPosition,u(e))}}invoke(e,t){switch(e){case o.CommandType.SEND:this.send(t);break;case o.CommandType.RECEIVE:this.onReceive(t)}}updateCommendHistory(e){(0,o.addCommand)(this._commandHistory,e,100,10)}}},612:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invokeCommand=t.getCommandHistory=t.collectSessionStates=t.quitAll=t.quit=t.gameover=t.stop=t.ponderHit=t.goMate=t.goInfinite=t.goPonder=t.go=t.ready=t.setupPlayer=t.sendSetOptionCommand=t.getUSIEngineInfo=t.setHandlers=void 0;const r=s(1316),n=s(5208),i=s(4808),o=r.__importStar(s(7808)),a=s(8984),c=s(6664),l=s(2448),u=s(7812);let h;function p(e){return new Error(c.t.noResponseFromEnginePleaseExtendTimeout(e))}t.setHandlers=function(e){if(h)throw new Error("handlers already set");h=e},t.getUSIEngineInfo=function(e,t){const s=f();return new Promise(((r,a)=>{const c=new i.EngineProcess((0,l.resolveEnginePath)(e),s,(0,u.getUSILogger)(),{timeout:1e3*t}).on("error",a).on("timeout",(()=>a(p(t)))).on("usiok",(()=>{r({...(0,n.emptyUSIEngineSetting)(),uri:o.issueEngineURI(),name:c.name,defaultName:c.name,author:c.author,path:e,options:c.engineOptions}),c.quit()})).on("command",(e=>{h.sendPromptCommand(s,e)}));c.launch()}))},t.sendSetOptionCommand=function(e,t,s){const r=f();return new Promise(((n,o)=>{const a=new i.EngineProcess((0,l.resolveEnginePath)(e),r,(0,u.getUSILogger)(),{timeout:1e3*s}).on("error",o).on("timeout",(()=>{o(p(s))})).on("usiok",(()=>{a.setOption(t),n(),a.quit()})).on("command",(e=>{h.sendPromptCommand(r,e)}));a.launch()}))};let d=0;function f(){return d+=1,d}const m=new Map;function g(e){const t=m.get(e);if(!t)throw new Error("No engine session: SessionID="+e);return t}function y(e,t,s){return{btime:t-1e3*e.increment,wtime:s-1e3*e.increment,byoyomi:1e3*e.byoyomi,binc:1e3*e.increment,winc:1e3*e.increment}}t.setupPlayer=function(e,t){const s=f(),r=new i.EngineProcess((0,l.resolveEnginePath)(e.path),s,(0,u.getUSILogger)(),{timeout:1e3*t,engineOptions:Object.values(e.options),enableEarlyPonder:e.enableEarlyPonder});return m.set(s,{process:r,setting:e,createdMs:Date.now()}),new Promise(((e,n)=>{r.on("error",n).on("timeout",(()=>n(p(t)))).on("bestmove",((e,t,r)=>h.onUSIBestMove(s,e,t,r))).on("checkmate",((e,t)=>{h.onUSICheckmate(s,e,t)})).on("checkmateNotImplemented",(()=>{h.onUSICheckmateNotImplemented(s)})).on("checkmateTimeout",(e=>{h.onUSICheckmateTimeout(s,e)})).on("noMate",(e=>{h.onUSINoMate(s,e)})).on("usiok",(()=>e(s))).on("command",(e=>{h.sendPromptCommand(s,e)})),r.launch()}))},t.ready=function(e){const t=g(e);return new Promise(((e,s)=>{t.process.on("ready",e).on("error",s);const r=t.process.ready();r&&s(r)}))},t.go=function(e,t,s,r,n){const i=g(e);i.process.go(t,y(s,r,n)),i.process.on("info",((t,s)=>h.onUSIInfo(e,t,s)))},t.goPonder=function(e,t,s,r,n){const i=g(e);i.process.goPonder(t,y(s,r,n)),i.process.on("ponderInfo",((t,s)=>{h.onUSIPonderInfo(e,t,s)}))},t.goInfinite=function(e,t){const s=g(e);s.process.go(t),s.process.on("info",((t,s)=>h.onUSIInfo(e,t,s)))},t.goMate=function(e,t){const s=g(e);s.process.goMate(t),s.process.on("info",((t,s)=>h.onUSIInfo(e,t,s)))},t.ponderHit=function(e,t,s,r){g(e).process.ponderHit(y(t,s,r))},t.stop=function(e){g(e).process.stop()},t.gameover=function(e,t){const s=g(e);switch(t){case a.GameResult.WIN:s.process.gameover(i.GameResult.WIN);break;case a.GameResult.LOSE:s.process.gameover(i.GameResult.LOSE);break;case a.GameResult.DRAW:s.process.gameover(i.GameResult.DRAW)}},t.quit=function(e){if(!function(e){return m.has(e)}(e))return;g(e).process.quit(),setTimeout((()=>{m.delete(e)}),1e4)},t.quitAll=function(){m.forEach((e=>{e.process.quit()})),m.clear()},t.collectSessionStates=function(){return Array.from(m.entries()).map((([e,t])=>({sessionID:e,uri:t.setting.uri,name:t.setting.name,path:t.setting.path,pid:t.process.pid,stateCode:t.process.state,createdMs:t.createdMs,lastReceived:t.process.lastReceived,lastSent:t.process.lastSent,updatedMs:Date.now(),closed:t.process.state===i.State.WillQuit}))).sort(((e,t)=>t.sessionID-e.sessionID))},t.getCommandHistory=function(e){return g(e).process.commandHistory},t.invokeCommand=function(e,t,s){g(e).process.invoke(t,s)}},2448:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRelativeEnginePath=t.resolveEnginePath=void 0;const r=s(1316).__importDefault(s(8864)),n=s(2640);t.resolveEnginePath=function(e){const t=(0,n.getPortableExeDir)();return t?r.default.resolve(t,e):e},t.getRelativeEnginePath=function(e){const t=(0,n.getPortableExeDir)();if(t){const s=r.default.relative(t,e);if(!s.startsWith(".."))return s}return e}},9952:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildProcess=void 0;const r=s(1316),n=s(1096),i=s(1520),o=r.__importDefault(s(8864));t.ChildProcess=class{handle;readline=null;constructor(e){this.handle=(0,n.spawn)(e,{cwd:o.default.dirname(e)}).on("close",this.onClose.bind(this))}get pid(){return this.handle.pid}on(e,t){switch(e){case"receive":null===this.readline&&(this.readline=(0,i.createInterface)(this.handle.stdout)),this.readline.on("line",t);break;case"close":this.handle.on("close",((e,s)=>{this.onClose(),t(e,s)}));break;default:this.handle.on(e,t)}return this}send(e){this.handle.stdin.write(e+"\n")}kill(){this.onClose(),this.handle.kill()}onClose(){null!==this.readline&&this.readline.close()}}},3492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentsParser=void 0;t.ArgumentsParser=class{valueKeys=[];numberKeys=[];numberRestrictions=new Map;flagKeys=[];values=new Map;numbers=new Map;flags=new Map;bareArgs=[];help;constructor(e,t){"string"==typeof t&&(t=[t]),this.help="Usage:\n";for(const s of t||[""])this.help+=` ${e} [options] ${s}\n`;this.help+="\nOPTIONS:\n"}value(e,t,s){const r="--"+e;return this.help+=` ${r} VALUE\n`,this.help+=` ${t}\n`,this.help+=` (default: ${s})\n`,this.valueKeys.push(r),()=>{const e=this.values.get(r);return void 0!==e?e:s}}valueOrNull(e,t){const s="--"+e;return this.help+=` ${s} VALUE\n`,this.help+=` ${t}\n`,this.valueKeys.push(s),()=>{const e=this.values.get(s);return void 0!==e?e:null}}number(e,t,s,r){const n="--"+e;return this.help+=` ${n} VALUE\n`,this.help+=` ${t}\n`,this.help+=` (default: ${s})\n`,this.numberKeys.push(n),r&&this.numberRestrictions.set(n,r),()=>{const e=this.numbers.get(n);return void 0!==e?e:s}}numberOrNull(e,t,s){const r="--"+e;return this.help+=` ${r} VALUE\n`,this.help+=` ${t}\n`,this.numberKeys.push(r),s&&this.numberRestrictions.set(r,s),()=>{const e=this.numbers.get(r);return void 0!==e?e:null}}flag(e,t){const s="--"+e;return this.help+=` ${s}\n`,this.help+=` ${t}\n`,this.flagKeys.push(s),()=>this.flags.get(s)||!1}parse(){let e=0;for(let t=2;t<process.argv.length;t++){const s=process.argv[t];if(t===e)this.bareArgs.push(s);else if(this.valueKeys.includes(s))this.values.set(s,process.argv[++t]);else if(this.numberKeys.includes(s)){const e=Number(process.argv[++t]);Number.isNaN(e)&&this.onError(`${s} option must be a number: ${process.argv[t]}`);const r=this.numberRestrictions.get(s);r&&(r.min&&e<r.min&&this.onError(`${s} option must be greater than or equal to ${r.min}`),r.max&&e>r.max&&this.onError(`${s} option must be less than or equal to ${r.max}`)),this.numbers.set(s,e)}else this.flagKeys.includes(s)?this.flags.set(s,!0):"--"===s?e=t+1:"--help"===s?(this.showHelp(),process.exit(0)):s.startsWith("-")?this.onError(`Unknown option: ${s}`):this.bareArgs.push(s)}}get args(){return this.bareArgs}showHelp(){console.log(this.help)}onError(e){console.error(e),process.exit(1)}}},7376:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preload=void 0;const r=s(7812),n=s(3660),i=s(612),o=s(2580);t.preload=function(e){const t=e.stdoutLog?["file","stdout"]:["file"],a=e.appLogFile?t:["stdout"],c=e.usiLogFile?t:["stdout"],l=e.csaLogFile?t:["stdout"];(0,r.overrideLogDestinations)(o.LogType.APP,a),(0,r.overrideLogDestinations)(o.LogType.USI,c),(0,r.overrideLogDestinations)(o.LogType.CSA,l);const u={fetchInitialRecordFileRequest:async()=>"null",updateAppState(){},openExplorer(){throw new Error("This feature is not available on command line tool")},openWebBrowser(){throw new Error("This feature is not available on command line tool")},async showOpenRecordDialog(){throw new Error("This feature is not available on command line tool")},async openRecord(){throw new Error("This feature is not available on command line tool")},async showSaveRecordDialog(){throw new Error("This feature is not available on command line tool")},async saveRecord(){throw new Error("This feature is not available on command line tool")},async showSelectFileDialog(){throw new Error("This feature is not available on command line tool")},async showSelectDirectoryDialog(){throw new Error("This feature is not available on command line tool")},async showSelectImageDialog(){throw new Error("This feature is not available on command line tool")},async showSaveMergedRecordDialog(){throw new Error("This feature is not available on command line tool")},async cropPieceImage(){throw new Error("This feature is not available on command line tool")},async exportCaptureAsPNG(){throw new Error("This feature is not available on command line tool")},async exportCaptureAsJPEG(){throw new Error("This feature is not available on command line tool")},async convertRecordFiles(){throw new Error("This feature is not available on command line tool")},async loadAppSetting(){throw new Error("This feature is not available on command line tool")},async saveAppSetting(){throw new Error("This feature is not available on command line tool")},async loadBatchConversionSetting(){throw new Error("This feature is not available on command line tool")},async saveBatchConversionSetting(){throw new Error("This feature is not available on command line tool")},async loadResearchSetting(){throw new Error("This feature is not available on command line tool")},async saveResearchSetting(){throw new Error("This feature is not available on command line tool")},async loadAnalysisSetting(){throw new Error("This feature is not available on command line tool")},async saveAnalysisSetting(){throw new Error("This feature is not available on command line tool")},async loadGameSetting(){throw new Error("This feature is not available on command line tool")},async saveGameSetting(){throw new Error("This feature is not available on command line tool")},async loadCSAGameSettingHistory(){throw new Error("This feature is not available on command line tool")},async saveCSAGameSettingHistory(){throw new Error("This feature is not available on command line tool")},async loadMateSearchSetting(){throw new Error("This feature is not available on command line tool")},async saveMateSearchSetting(){throw new Error("This feature is not available on command line tool")},async loadRecordFileHistory(){throw new Error("This feature is not available on command line tool")},addRecordFileHistory(){},async clearRecordFileHistory(){},async saveRecordFileBackup(){},async loadRecordFileBackup(){throw new Error("This feature is not available on command line tool")},async loadUSIEngineSetting(){throw new Error("This feature is not available on command line tool")},async saveUSIEngineSetting(){},async showSelectUSIEngineDialog(){throw new Error("This feature is not available on command line tool")},async getUSIEngineInfo(){throw new Error("This feature is not available on command line tool")},async sendUSISetOption(){},async usiLaunch(e,t){const s=JSON.parse(e);return await(0,i.setupPlayer)(s,t)},usiReady:async e=>await(0,i.ready)(e),async usiGo(e,t,s,r,n){(0,i.go)(e,t,JSON.parse(s),r,n)},async usiGoPonder(e,t,s,r,n){(0,i.goPonder)(e,t,JSON.parse(s),r,n)},async usiPonderHit(e,t,s,r){(0,i.ponderHit)(e,JSON.parse(t),s,r)},async usiGoInfinite(e,t){(0,i.goInfinite)(e,t)},async usiGoMate(e,t){(0,i.goMate)(e,t)},async usiStop(e){(0,i.stop)(e)},async usiGameover(e,t){(0,i.gameover)(e,t)},async usiQuit(e){(0,i.quit)(e)},csaLogin:async e=>(0,n.login)(JSON.parse(e)),async csaLogout(e){(0,n.logout)(e)},async csaAgree(e,t){(0,n.agree)(e,t)},async csaMove(e,t,s,r){(0,n.doMove)(e,t,s,r)},async csaResign(e){(0,n.resign)(e)},async csaWin(e){(0,n.win)(e)},async csaStop(e){(0,n.stop)(e)},async collectSessionStates(){throw new Error("This feature is not available on command line tool")},async setupPrompt(){throw new Error("This feature is not available on command line tool")},async openPrompt(){throw new Error("This feature is not available on command line tool")},invokePromptCommand(){throw new Error("This feature is not available on command line tool")},isEncryptionAvailable:async()=>!1,async getVersionStatus(){throw new Error("This feature is not available on command line tool")},sendTestNotification(){throw new Error("This feature is not available on command line tool")},openLogFile(){},log(e,t){switch(e){case o.LogLevel.DEBUG:console.debug(t);break;case o.LogLevel.INFO:console.log(t);break;case o.LogLevel.WARN:console.warn(t);break;case o.LogLevel.ERROR:console.error(t)}},onClosable(){},onClose(){},onSendError(){},onMenuEvent(){},updateAppSetting(){},onOpenRecord(){},onUSIBestMove(){},onUSICheckmate(){},onUSICheckmateNotImplemented(){},onUSICheckmateTimeout(){},onUSINoMate(){},onUSIInfo(){},onUSIPonderInfo(){},onCSAGameSummary(){},onCSAReject(){},onCSAStart(){},onCSAMove(){},onCSAGameResult(){},onCSAClose(){},onPromptCommand(){}};global.window={...global,electronShogiAPI:u};const h=s(2044);(0,i.setHandlers)({onUSIBestMove:h.onUSIBestMove,onUSICheckmate:h.onUSICheckmate,onUSICheckmateNotImplemented:h.onUSICheckmateNotImplemented,onUSICheckmateTimeout:h.onUSICheckmateTimeout,onUSINoMate:h.onUSINoMate,onUSIInfo:h.onUSIInfo,onUSIPonderInfo:h.onUSIPonderInfo,sendPromptCommand:()=>{}});const p=s(7820);(0,n.setHandlers)({onCSAGameSummary:p.onCSAGameSummary,onCSAReject:p.onCSAReject,onCSAStart:p.onCSAStart,onCSAMove:p.onCSAMove,onCSAGameResult:p.onCSAGameResult,onCSAClose:p.onCSAClose,sendPromptCommand:()=>{},sendError:e=>{(0,r.getAppLogger)().error(e)}}),process.on("uncaughtException",((e,t)=>{(0,r.getAppLogger)().error(new Error(`${t} ${e}`))}))}},8616:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=s(1316),n=new(s(3492).ArgumentsParser)("usi-csa-bridge",["path/to/csa_game_config.yaml","path/to/csa_game_config.json","--base64 <base64>"]),i=n.valueOrNull("base64","Base64 of gzip compressed JSON config."),o=n.number("engine-timeout","Maximum time[seconds] of USI engine execution.",180,{min:1}),a=n.valueOrNull("protocol-version","Overwrite server.protocolVersion setting."),c=n.valueOrNull("host","Overwrite server.host setting."),l=n.numberOrNull("port","Overwrite server.port setting.",{min:1024,max:49151}),u=n.valueOrNull("id","Overwrite server.id setting."),h=n.valueOrNull("password","Overwrite server.password setting."),p=n.flag("save-record","Save record file after game end."),d=n.value("record-dir","Directory to save records.","records"),f=n.valueOrNull("record-file-name-template","Overwrite recordFileNameTemplate setting."),m=n.valueOrNull("record-file-format","Overwrite recordFileFormat setting."),g=n.numberOrNull("repeat","Overwrite repeat setting.",{min:1}),y=n.flag("app-log-file","Enable application log file."),S=n.flag("usi-log-file","Enable USI log file."),E=n.flag("csa-log-file","Enable CSA log file."),v=n.flag("all-log-file","Enable all log files."),T=n.flag("disable-stdout-log","Disable stdout log. Should be used with --XXX-log-file.");n.parse();(0,s(7376).preload)({appLogFile:y()||v(),usiLogFile:S()||v(),csaLogFile:E()||v(),stdoutLog:!T()});const b=r.__importDefault(s(662)),A=r.__importDefault(s(8864)),P=r.__importDefault(s(6056)),I=s(3397),C=s(8800),N=s(9404),_=s(7820),w=s(5155),x=s(7812),O=s(9224),M=s(1220),k=s(6416);!async function(){let e;const t=i();if(t)e=await(0,I.decompressCSAGameSettingForCLI)(t);else{const t=n.args[0];t||((0,x.getAppLogger)().error("config file is not specified."),n.showHelp(),process.exit(1)),e=t.endsWith(".json")?JSON.parse(b.default.readFileSync(t,"utf-8")):P.default.parse(b.default.readFileSync(t,"utf-8"))}e.server.protocolVersion=a()||e.server.protocolVersion,e.server.host=c()||e.server.host,e.server.port=l()||e.server.port,e.server.id=u()||e.server.id,e.server.password=h()||e.server.password,e.saveRecordFile=p()||e.saveRecordFile,e.repeat=g()||e.repeat;const s=(0,I.importCSAGameSettingForCLI)(e),r=(0,I.validateCSAGameSetting)(s);r&&((0,x.getAppLogger)().error(r),process.exit(1));const y=new N.RecordManager,S=new C.Clock,E=new C.Clock,v=new _.CSAGameManager(y,S,E),T=(0,w.defaultPlayerBuilder)(o());v.on("gameNext",(function(){(0,x.getAppLogger)().info("waiting for new game...")})).on("newGame",(function(e){(0,x.getAppLogger)().info(`${(0,k.ordinal)(e)} game started.`)})).on("gameEnd",(function(){(0,x.getAppLogger)().info("completed. will exit after some seconds...")})).on("saveRecord",(function(){const t=(0,O.generateRecordFileName)(y.record.metadata,f()||e.recordFileNameTemplate||O.defaultRecordFileNameTemplate,m()||e.recordFileFormat||M.RecordFileFormat.KIF),s=d(),r=A.default.join(s,t);b.default.promises.mkdir(s,{recursive:!0}).then((()=>{const e=y.exportRecordAsBuffer(r,{returnCode:"\n"});if(!(e instanceof Error))return b.default.promises.writeFile(r,e.data);(0,x.getAppLogger)().error(e)})).then((()=>{(0,x.getAppLogger)().info("record saved: %s",r)})).catch((e=>{(0,x.getAppLogger)().error(e)}))})).on("loginRetry",(function(){(0,x.getAppLogger)().warn(`Retry login after ${_.loginRetryIntervalSeconds} seconds...`)})).on("error",(function(e){(0,x.getAppLogger)().error(e)})).login(s,T).catch((function(e){(0,x.getAppLogger)().error(e),process.exit(1)}))}()},8588:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addCommand=t.newCommand=t.CommandType=void 0;const r=s(7700);var n;!function(e){e.SEND="send",e.RECEIVE="receive",e.SYSTEM="system"}(n||(t.CommandType=n={})),t.newCommand=function(e,t){const s=new Date;return{type:e,command:t,dateTime:(0,r.getDateTimeStringMs)(s),timeMs:s.getTime()}},t.addCommand=function(e,t,s,r){Array.isArray(t)||(t=[t]);for(const s of t)e.commands.push(s);if(e.commands.length>s){const t=Math.max(r,e.commands.length-s);e.discarded+=t,e.commands.splice(0,t)}}},5128:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AppState=void 0,function(e){e.NORMAL="normal",e.PASTE_DIALOG="pasteDialog",e.POSITION_EDITING="positionEditing",e.EXPORT_POSITION_IMAGE_DIALOG="exportBoardImageDialog",e.GAME_DIALOG="gameDialog",e.GAME="game",e.CSA_GAME_DIALOG="csaGameDialog",e.CSA_GAME="csaGame",e.RESEARCH="research",e.RESEARCH_DIALOG="researchDialog",e.ANALYSIS="analysis",e.ANALYSIS_DIALOG="analysisDialog",e.MATE_SEARCH="mateSearch",e.MATE_SEARCH_DIALOG="mateSearchDialog",e.USI_ENGINE_SETTING_DIALOG="usiEngineSettingDialog",e.RECORD_FILE_HISTORY_DIALOG="recordFileHistoryDialog",e.BATCH_CONVERSION_DIALOG="batchConversionDialog",e.LAUNCH_USI_ENGINE_DIALOG="launchUsiEngineDialog",e.CONNECT_TO_CSA_SERVER_DIALOG="connectToCsaServerDialog"}(s||(t.AppState=s={}))},112:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyHistory=t.HistoryClass=void 0,function(e){e.USER="user",e.BACKUP="backup"}(s||(t.HistoryClass=s={})),t.getEmptyHistory=function(){return{entries:[]}}},1220:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportRecordAsBuffer=t.importRecordFromBuffer=t.detectRecordFileFormatByPath=t.RecordFileFormat=void 0;const r=s(772),n=s(8596);var i;function o(e){switch(e){default:return"UTF8";case i.KIF:case i.KI2:return"SJIS"}}!function(e){e.KIF=".kif",e.KIFU=".kifu",e.KI2=".ki2",e.KI2U=".ki2u",e.CSA=".csa",e.SFEN=".sfen",e.JKF=".jkf"}(i||(t.RecordFileFormat=i={})),t.detectRecordFileFormatByPath=function(e){for(const t of Object.values(i))if(e.toLowerCase().endsWith(t))return t},t.importRecordFromBuffer=function(e,t,s){const a=(0,r.decodeText)(e,{encoding:o(t),autoDetect:s?.autoDetect});switch(t){case i.KIF:case i.KIFU:return(0,n.importKIF)(a);case i.KI2:case i.KI2U:return(0,n.importKI2)(a);case i.CSA:return(0,n.importCSA)(a);case i.SFEN:return new Error(".sfen file import is not supported");case i.JKF:return(0,n.importJKFString)(a)}},t.exportRecordAsBuffer=function(e,t,s){const a=o(t);let c;switch(t){case i.KIF:case i.KIFU:c=(0,n.exportKIF)(e,s);break;case i.KI2:case i.KI2U:c=(0,n.exportKI2)(e,s);break;case i.CSA:c=(0,n.exportCSA)(e,s);break;case i.SFEN:throw new Error(".sfen file export is not supported");case i.JKF:c=(0,n.exportJKFString)(e)}const l=(0,r.encodeText)(c,a);let u=!1;if("SJIS"===a&&s.detectGarbled){(0,r.decodeText)(l,{encoding:"SJIS"})!==c&&(u=!0)}return{data:l,garbled:u}}},6656:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CSAGameResult=t.CSASpecialMove=t.emptyCSAPlayerStates=t.emptyCSAGameSummary=void 0;const r=s(8596);var n,i;t.emptyCSAGameSummary=function(){return{id:"",myColor:r.Color.BLACK,toMove:r.Color.BLACK,position:"",timeUnitMs:1e3,totalTime:0,byoyomi:0,delay:0,increment:0}},t.emptyCSAPlayerStates=function(){return{black:{time:0},white:{time:0}}},function(e){e.UNKNOWN="unknown",e.RESIGN="resign",e.SENNICHITE="sennichite",e.OUTE_SENNICHITE="oute_sennichite",e.ILLEGAL_MOVE="illegal_move",e.ILLEGAL_ACTION="illegal_action",e.TIME_UP="time_up",e.JISHOGI="jishogi",e.MAX_MOVES="max_moves"}(n||(t.CSASpecialMove=n={})),function(e){e.WIN="win",e.LOSE="lose",e.DRAW="draw",e.CENSORED="censored",e.CHUDAN="chudan"}(i||(t.CSAGameResult=i={}))},8984:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.GameResult=void 0,function(e){e.WIN="win",e.LOSE="lose",e.DRAW="draw"}(s||(t.GameResult=s={}))},7836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUSIPV=t.SCORE_MATE_INFINITE=void 0,t.SCORE_MATE_INFINITE=1e4,t.parseUSIPV=function(e,t){const s=[],r=e.clone();for(const e of t){const t=r.createMoveByUSI(e);if(!t||!r.doMove(t))break;s.push(t)}return s}},7700:(e,t)=>{"use strict";function s(e=new Date){return e.toLocaleTimeString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}Object.defineProperty(t,"__esModule",{value:!0}),t.getDateTimeStringMs=t.getDateTimeString=t.getDateString=void 0,t.getDateString=function(e=new Date){return e.toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"})},t.getDateTimeString=s,t.getDateTimeStringMs=function(e=new Date){return s(e)+"."+String(e.getTime()%1e3).padStart(3,"0")}},772:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectTextEncoding=t.decodeText=t.encodeText=void 0;const r=s(2228);function n(e,t){const s=(0,r.detect)(e);return s||(t||"UTF8")}t.encodeText=function(e,t){return"ASCII"===t||"UTF8"===t?(new TextEncoder).encode(e):new Uint8Array((0,r.convert)(e,{type:"arraybuffer",from:"UNICODE",to:t}))},t.decodeText=function(e,t){const s=t?.autoDetect?n(e,t.encoding):t?.encoding;return"ASCII"===s||"UTF8"===s?(new TextDecoder).decode(e):(0,r.convert)(e,{type:"string",from:s,to:"UNICODE"})},t.detectTextEncoding=n},6416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=t.ordinal=t.formatPercentage=t.toString=void 0,t.toString=function(e){return e instanceof Error?e.message:e instanceof Object?JSON.stringify(e):String(e)},t.formatPercentage=function(e,t,s){return 0===t?"0%":(e/t*100).toFixed(s)+"%"},t.ordinal=function(e){switch(e%100){case 11:case 12:case 13:return e+"th"}switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}},t.filter=function(e,t){const s=e.toLowerCase();return t.every((e=>s.includes(e.toLowerCase())))}},6256:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localizeError=void 0;const r=s(8596),n=s(9552);t.localizeError=function(e){return e instanceof r.InvalidPieceNameError?new Error(`${n.t.invalidPieceName}: ${e.data}`):e instanceof r.InvalidTurnError?new Error(`${n.t.invalidTurn}: ${e.data}`):e instanceof r.InvalidMoveError?new Error(`${n.t.invalidMove}: ${e.data}`):e instanceof r.InvalidMoveNumberError?new Error(`${n.t.invalidMoveNumber}: ${e.data}`):e instanceof r.InvalidDestinationError?new Error(`${n.t.invalidDestination}: ${e.data}`):e instanceof r.PieceNotExistsError?new Error(`${n.t.pieceNotExists}: ${e.data}`):e instanceof r.InvalidLineError?new Error(`${n.t.invalidLine}: ${e.data}`):e instanceof r.InvalidBoardError?new Error(`${n.t.invalidBoard}: ${e.data}`):e instanceof r.InvalidHandPieceError?new Error(`${n.t.invalidHandPiece}: ${e.data}`):e instanceof r.InvalidUSIError?new Error(`${n.t.invalidUSI}: ${e.data}`):e}},6664:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLanguage=void 0;const r=s(1316),n=r.__importStar(s(9552)),i=r.__importStar(s(1672));r.__exportStar(s(3684),t),r.__exportStar(s(9552),t),r.__exportStar(s(6256),t),r.__exportStar(s(3772),t),r.__exportStar(s(1672),t),t.setLanguage=function(e){n.setLanguage(e),i.setLanguage(e)}},3684:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.Language=void 0,function(e){e.JA="ja",e.EN="en",e.ZH_TW="zh_tw"}(s||(t.Language=s={}))},5444:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0;const r=s(6416);t.en={electronShogi:"Electron Shogi",clear:"Clear",open:"Open",saveOverwrite:"Overwrite",newRecord:"New Record",openRecord:"Open Record",saveRecord:"Save Record",saveRecordAs:"Save Record As",openAutoSavingDirectory:"Open Auto-Saving Directory",exportPositionImage:"Export Position Image",positionImage:"Position Image",batchConversion:"Batch Conversion",recordFileBatchConversion:"Record File Batch Conversion",close:"Close",quit:"Quit",editing:"Edit",copyAsKIF:"Copy (KIF)",copyAsKI2:"Copy (KI2)",copyAsCSA:"Copy (CSA)",copyAsUSI:"Copy (USI)",copyAsSFEN:"Copy (SFEN)",copyAsJKF:"Copy (JKF)",copy:"Copy",cut:"Cut",paste:"Paste",copyRecord:"Copy Record",asKIF:"as KIF",asKI2:"as KI2",asCSA:"as CSA",asUSIUntilCurrentMove:"as USI (until current move)",asUSIAll:"as USI (all)",asJSONKifuFormat:"as JSON Kifu Format",copyPositionAsSFEN:"Copy Position (as SFEN)",pasteRecordOrPosition:"Paste Record/Position",appendSpecialMove:"Append Special Move",deleteMoves:"Delete Current Move and Following Moves",view:"View",toggleFullScreen:"Toggle Full Screen",defaultFontSize:"Default Font Size",largerFontSize:"Larger Font Size",smallerFontSize:"Smaller Font Size",settings:"Settings",config:"Config",debug:"Debug",toggleDevTools:"Toggle Developer Tools",logFile:"Log File",openAppLog:"Open App Log",openUSILog:"Open USI Log",openCSALog:"Open CSA Log",tailAppLog:"Tail App Log",tailUSILog:"Tail USI Log",tailCSALog:"Tail CSA Log",copyAppLogTailCommand:"Copy App Log Tail Command",copyUSILogTailCommand:"Copy USI Log Tail Command",copyCSALogTailCommand:"Copy CSA Log Tail Command",reloadCustomPieceImage:"Reload Custom Piece Image",launchUSIEngine:"Launch USI Engine",connectToCSAServer:"Connect to CSA Server",adminMode:"Admin Mode",inAdminModeYouShouldInvokeCommandsManuallyAtPrompt:"In admin mode, you should invoke commands manually at prompt.",setoptionAndPrecedingCommandsWillBeSentAutomatically:'"setoption" and preceding commands will be sent automatically.',serverMustSupportShogiServerX1ModeLogIn:"The server must support shogi-server's x1-mode log-in.",folders:"Folders",notification:"Notification",notificationTest:"Notification Test",thisIsTestNotification:"This is test notification.",app:"App",log:"Log",backup:"Backup",cache:"Cache",help:"Help",openWebSite:"Open Web Site",howToUse:"How to Use",openLatestReleasePage:"Open Latest Release Page",openStableReleasePage:"Open Stable Release Page",inputs:"Inputs",outputs:"Outputs",format:"Format",formats:"Formats",subdirectories:"Subdirectories",separately:"Separately",merge:"Merge",createSubdirectories:"Create Subdirectories",nameConflictAction:"Name Conflict Action",numberSuffix:"Number Suffix",skip:"Skip",convert:"Convert",openLogFile:"Open Log File",succeeded:"Succeeded",failed:"Failed",skipped:"Skipped",game:"Game",player:"Player",server:"Server",selectFromHistory:"Select from History",noHistory:"Empty",saveHistory:"Save History",version:"Version",gameProgress:"Game Progress",allGamesCompleted:"All Games Completed",gameEnded:"Game Ended",offlineGame:"Offline Game",csaOnlineGame:"CSA Online Game",csaProtocolOnlineGame:"Online Game (CSA Protocol)",csaProtocolV121:"CSA Protocol 1.2.1 Standard",csaProtocolV121WithPVComment:"CSA Protocol 1.2.1 with PV Comment",hostToConnect:"Hostname",portNumber:"Port",password:"Password",showPassword:"Show Password",keepaliveInitialDelay:"Keepalive Initial Delay",blankLinePing:"Blank Line Ping",blankLinePingInitialDelay:"Blank Line Ping Initial Delay",blankLinePingInterval:"Blank Line Ping Interval",logout:"Logout",calculateJishogiPoints:"Calculate Jishogi Points",jishogiPoints:"Jishogi Points",displayGameResults:"Display Results",interrupt:"Stop",stopGame:"Stop",resign:"Resign",draw:"Draw",impass:"Impass",repetitionDraw:"Repetition Draw",mate:"Mate",noMate:"No Mate",mateSearch:"Mate Search",startMateSearch:"Start Mate Search",stopMateSearch:"Stop Mate Search",noMateFound:"No mate.",timeout:"Timeout",foulWin:"Foul Win",foulLose:"Foul Lose",enteringOfKing:"Entering of King",winByDefault:"Win by Default",loseByDefault:"Lose by Default",winByDeclaration:"Win by Declaration",declareWinning:"Declare Winning",research:"Research",startResearch:"Start Research",endResearch:"End Research",recordAnalysis:"Record Analysis",analysis:"Analyze",analyze:"Analyze",stopAnalysis:"Stop Analysis",setupPosition:"Setup Position",startPositionSetup:"Start Position Setup",completePositionSetup:"Complete Setup",changeTurn:"Change Turn",initializePosition:"Initialize Position",appSettings:"Preferences",language:"Languages",theme:"Theme",standard:"Standard",green:"Green",cherryBlossom:"Cherry Blossom",customImage:"Custom Image",autumn:"Autumn",snow:"Snow",darkGreen:"Dark Green",dark:"Dark",piece:"Piece",singleKanjiPiece:"Single Kanji",singleKanjiGothicPiece:"Single Kanji (Gothic)",singleKanjiDarkPiece:"Single Kanji (Dark)",singleKanjiGothicDarkPiece:"Single Kanji (Gothic, Dark)",imageHasMarginsRemoveToDisplayLarger:"The image has margins (remove it to display larger)",backgroundImage:"Background Image",board:"Board Image",pieceStand:"Piece Stand",lightWoodyTexture:"Woody Texture (Light)",warmWoodTexture:"Woody Texture (Warm)",regin:"Regin",transparent:"Transparent",boardOpacity:"Board Opacity",pieceStandOpacity:"Piece Stand Opacity",recordOpacity:"Record Opacity",displayFileAndRank:"Display File & Rank",displayLeftControls:"Display Left Controls",displayRightControls:"Display Right Controls",tabViewStyle:"Tab View Style",oneColumn:"1 Column",twoColumns:"2 Columns",sounds:"Sounds",pieceLoudness:"Piece Loudness",clockLoudness:"Clock Loudness",clockPitch:"Clock Pitch",clockSoundTarget:"Clock Sound Target",anyTurn:"Any",onlyHumanTurn:"Human",defaultRecordFileFormat:"Default Record Format",textEncoding:"Text Encoding",strict:"Strict",autoDetect:"Auto Detect",newlineCharacter:"Newline Character",old90sMac:"90's Mac",autoSaving:"Auto-Saving",autoSavingDirectory:"Auto-Saving Directory",recordFileName:"Record File Name",select:"Select",positionOfUSIOutput:"Position of USI Output",movesOfUSIOutput:"Moves of USI Output",onlySFEN:"Only SFEN",usiProtocol:"USI Protocol",translateOptionName:"Translate Option Name",functionalOnJapaneseOnly:"Functional on Japanese Only",maxStartupTime:"Max Startup Time",forDevelopers:"For Developers",enableAppLog:"Enable App Log",enableUSILog:"Enable USI Log",enableCSALog:"Enable CSA Log",logLevel:"Log Level",engineSettings:"Engine Settings",flipBoard:"Flip Board",file:"File",recordFile:"Record File",executableFile:"Executable",imageFile:"Image",unsaved:"Unsaved",remove:"Remove",deleteMove:"Delete Move",recordProperties:"Record Properties",comments:"Comments",commentsAndBookmarks:"Comments & Bookmarks",branches:"Branches",bookmark:"Bookmark",bookmarkList:"Bookmarks",useBookmarkAsHeader:"Use Bookmark as Header",moveComments:"Move Comments",searchLog:"Search Log",pv:"PV",mateShort:"M",displayPVShort:"Play",evaluation:"Evaluation",eval:"Eval",estimatedWinRate:"Estimated Win Rate",evaluationAndEstimatedWinRate:"Evaluation & Estimated Win Rate",swapEachTurnChange:"Swap Each Turn Change",alwaysSenteIsPositive:"Always Sente is Positive",signOfEvaluation:"Sign of Evaluation",winRateCoefficient:"Win Rate Coefficient",monitor:"Monitor",hideTabView:"Hide",expandTabView:"Expand Tab View",sente:"Sente",senteOrShitate:"Sente (Shitate)",shitate:"Shitate",gote:"Gote",goteOrUwate:"Gote (Uwate)",uwate:"Uwate",swapSenteGote:"Swap Sente/Gote",currentPosition:"Current Position",enableEngineTimeout:"Enable Engine Timeout",setDifferentTimeForGote:"Set different time for Gote",nextTurn:"Next Move",elapsedTime:"Elapsed Time",elapsed:"Elapsed",rank:"Rank",depth:"Depth",searchEngine:"Search Engine",ponder:"Ponder",numberOfThreads:"Threads",multiPV:"Multi PV",startPosition:"Position",maxMoves:"Max Moves",gameRepetition:"Repeat",jishogi:"Jishogi",rule24:"24-point rule",rule27:"27-point rule",tryRule:"TRY rule",autoRelogin:"Auto Re-Login",restartItEveryGame:"Restart it Every Game",swapTurnWhenGameRepetition:"Swap Turns When Repeat",outputComments:"Output Comments",saveRecordAutomatically:"Save Record Automatically",adjustBoardToHumanPlayer:"Adjust Board to Human Player",adjustBoardAutomatically:"Adjust Board Automatically",command:"Command",startGame:"Start Game",cancelGame:"Cancel Game",allottedTime:"Allotted Time",byoyomi:"Byoyomi",increments:"Increments",startEndCriteria:"Start/End Criteria",endCriteria1Move:"End Criteria for 1 Move",outputSettings:"Output Settings",noOutputs:"No Outputs",insertCommentToTop:"Insert to Top",appendCommentToBottom:"Append to Bottom",insertToComment:"Ins. to Comment",insertToRecord:"Ins. to Record",overwrite:"Overwrite",fromPrefix:"from",fromSuffix:"",toPrefix:"to",toSuffix:"",plyPrefix:"",plySuffix:"th move",hoursSuffix:"h",minutesSuffix:"min",secondsSuffix:"sec",engineManagement:"Engine Management",engineName:"Engine Name",author:"Author",earlyPonder:"Early Ponder",enginePath:"Engine Path",openDirectory:"Open Directory",displayName:"Display Name",invoke:"Invoke",resetToEngineDefaultValues:"Reset to default values",defaultValue:"Default Value",noEngineRegistered:"No engine",duplicate:"Copy",add:"Add",recommended:"Recommended",import:"Import",saveAndClose:"Save & Close",save:"Save",saveAs:"Save As",history:"History",clearHistory:"Clear History",userFile:"User File",automaticBackup:"Automatic Backup",restore:"Restore",cancel:"Cancel",back:"Back",name:"Name",prediction:"Prediction",best:"Best",nodes:"Nodes",hashUsage:"Hash Usage",stop:"Stop",resume:"Resume",nonHandicap:"Non-Handicap",lanceHandicap:"Lance Handicap",rightLanceHandicap:"Right Lance Handicap",bishopHandicap:"Bishop Handicap",rookHandicap:"Rook Handicap",rookLanceHandicap:"Rook-Lance Handicap",twoPiecesHandicap:"2 Pieces Handicap",fourPiecesHandicap:"4 Pieces Handicap",sixPiecesHandicap:"6 Pieces Handicap",eightPiecesHandicap:"8 Pieces Handicap",tenPiecesHandicap:"10 Pieces Handicap",tsumeShogi:"Tsume Shogi",doubleKingTsumeShogi:"2-Kings Tsume Shogi",startDateTime:"Start",endDateTime:"End",gameDate:"Date",tournament:"Tournament",strategy:"Strategy",gameTitle:"Title",timeLimit:"Time Limit",place:"Place",postedOn:"Posted On",note:"Note",senteShortName:"Sente(short)",goteShortName:"Gote(short)",opusNo:"Opus No.",opusName:"Opus Name",publishedBy:"Published By",publishedOn:"Published On",source:"Source",numberOfMoves:"Number of Moves",integrity:"Integrity",recordCategory:"Category",award:"Award",filterByOptionName:"Filter by Option Name",filterByEngineName:"Filter by Engine Name",bookStyle:"Book Style",gameStyle:"Game Style",thin:"Thin",bold:"Bold",extraBold:"Extra Bold",playerName:"Player Name",typeface:"Typeface",weight:"Weight",handLabel:"Hand Label",header:"Header",vertical:"Vertical",size:"Size",none:"None",bgCover:"Cover",bgContain:"Contain",bgTile:"Tile",inaccuracy:"Inaccuracy",dubious:"Dubious",mistake:"Mistake",blunder:"Blunder",inaccuracyThreshold:"Inaccuracy Threshold",dubiousThreshold:"Dubious Threshold",mistakeThreshold:"Mistake Threshold",blunderThreshold:"Blunder Threshold",gothic:"Gothic",mincho:"Mincho",appVersion:"App Version",installed:"Installed",stable:"Stable",latest:"Latest",updatedAt:"Updated At",createdAt:"Created At",lastSent:"Last Sent",lastReceived:"Last Received",protocolVersion:"Protocol Version",prompt:"Prompt",openPrompt:"Open Prompt",forceQuit:"Force Quit",forceClose:"Force Close",blankLine:"Blank Line",autoScroll:"Auto Scroll",showTimestamp:"Show Timestamp",highlightByPartialMatch:"Highlight by Partial Match",csaServer:"CSA Server",usiEngine:"USI Engine",noRunningUSIEngine:"No running USI engine.",noConnectedCSAServer:"No connected CSA server.",willBeRemovedFromTheListSoon:"This session is closed, will be removed from the list soon.",typeCommandHereAndPressEnter:"Type command here and press Enter.",allowBlankLine:"Allow Blank Line",removeSpaceFromBothEnds:"Remove Space from Both Ends",collapseSequentialSpaces:"Collapse Sequential Spaces",typeCustomTitleHere:"Type custom title here",displayEmptyElements:"Display Empty Elements",waitingForNewGame:"Waiting for new game.",waitingForPlayerSetup:"Waiting for player setup.",insertedComment:"Inserted comment.",conversionCompleted:"Conversion completed.",tryingToConnectAndLoginToCSAServer:"Trying to connect and login to CSA server.",inBrowserLogsOutputToConsoleAndIgnoreThisSetting:"*In web browser version, it will output logs to console and ignore this setting.",shouldRestartToApplyLogSettings:"*You should restart this app to apply log settings.",canOpenLogDirectoryFromMenu:'*You can open log directory from "Debug" - "Open Log Directory" menu.',hasNoOldLogCleanUpFeature:"*This app has no clean-up feature. Please remove old logs manually.",processingPleaseWait:"Processing, please wait.",importingFollowingRecordOrPosition:"Importing the following record(or position).",supportsKIF_KI2_CSA_USI_JKF:"*Supports KIF, KI2, CSA, USI, and JKF.",plesePasteRecordIntoTextArea:"*Please paste record data into the text area.",desktopVersionPastesAutomatically:"*In desktop version, it will paste automatically from clipboard.",earlyPonderFeatureSendsPonderhitCommandWithYaneuraOusNonStandardOptions:'Early ponder feature sends "ponderhit" command with YaneuraOu\'s non-standard options.',ifYourEngineNotSupportTheOptionsItMayCauseUnexpectedBehavior:"If your engine does not support the options, it may cause unexpected behavior.",someLogsDisabled:"Some log settings are disabled.",logsRecommendedForCSAProtocol:"Log settings are recommended for CSA protocol.",pleaseEnableLogsAndRestart:"Please enable log settings and restart this app.",notSendPVOnStandardCSAProtocol:"Client do not send PV on standard CSA protocol.",csaProtocolSendPlaintextPassword:"On CSA protocol, client send plaintext password.",passwordWillSavedPlaintextBecauseOSSideEncryptionNotAvailable:"Password will saved as plaintext because OS side encryption is not available.",pleaseUncheckSaveHistoryIfNotWantSave:"Please uncheck Save History, if you don't want to save.",csaProtocolSendPlaintextPasswordRegardlessOfHistory:"On CSA protocol, client send plaintext password regardless of history.",whenNewVersionIsAvailableItWillBeNotified:"When new version is available, it will be notified.",pleaseCheckMessageThisIsTestNotificationByAboveButton:'Please check the message "This is test notification." by above button.',ifNotWorkYouShouldAllowNotificationOnOSSetting:"If it does not work, you should allow notification on OS setting.",areYouSureWantToResign:"Are you sure you want to resign?",areYouSureWantToDoDeclaration:"Are you sure you want to do declaration?",areYouSureWantToQuitGames:"Are you sure you want to quit games?",areYouSureWantToRequestQuit:"You have possibility to be loser. Are you sure you want to request quit?",areYouSureWantToClearRecord:"Are you sure you want to clear record?",areYouSureWantToDiscardPosition:"Are you sure you want to discard the position?",areYouSureWantToOpenFileInsteadOfCurrentRecord:"Are you sure you want to open the file instead of current record?",areYouSureWantToClearHistory:"Are you sure you want to clear history?",yamlFormatSettingCopiedToClipboard:"YAML format setting copied to clipboard.",jsonFormatSettingCopiedToClipboard:"JSON format setting copied to clipboard.",usiCsaBridgeCommandCopiedToClipboard:"usi-csa-bridge command copied to clipboard.",youCanNotCloseAppWhileCSAOnlineGame:"You can not close app while CSA online game.",fileExtensionNotSupported:"File extension is not supported.",errorOccuredWhileDisconnectingFromCSAServer:"An error occured while disconnecting from CSA server.",failedToConnectToCSAServer:"Failed to connect to CSA server.",errorOccuredWhileLogoutFromCSAServer:"An error occured while logout from CSA server.",disconnectedFromCSAServer:"Disconnected from CSA server.",csaServerLoginDenied:"CSA server login denied.",thisFeatureNotAvailableOnWebApp:"This feature is not available on web app.",failedToStartNewGame:"Failed to start new game.",errorOccuredWhileEndingGame:"An error occured while ending game.",failedToSendGoCommand:"Failed to send go-command.",failedToSendPonderCommand:"Failed to send ponder-command.",failedToSendStopCommand:"Failed to send stop-command.",failedToShutdownEngines:"Failed to shutdown engines.",failedToCheckUpdates:"Failed to check updates.",failedToSaveRecord:"Failed to save record.",failedToParseSFEN:"Failed to parse SFEN.",failedToDetectRecordFormat:"Failed to detect record format.",unknown:"Unknown",unknownFileExtension:"Unknown file extension.",emptyRecordInput:"Empty record input.",invalidPieceName:"Invalid piece name",invalidTurn:"Invalid turn",invalidMove:"Invalid move",invalidMoveNumber:"Invalid move number",invalidDestination:"Invalid destination",pieceNotExists:"Piece not exists",invalidLine:"Invalid line",invalidBoard:"Invalid board",invalidHandPiece:"Invalid hand piece",invalidUSI:"Invalid USI",backgroundImageFileNotSelected:"Background image file is not selected.",pieceImageFileNotSelected:"Piece image File is not selected.",boardImageFileNotSelected:"Board image file is not selected.",pieceStandImageFileNotSelected:"Piece stand image file is not selected.",pieceVolumeMustBe0To100Percent:"Piece volume must be 0% to 100%.",clockVolumeMustBe0To100Percent:"Clock volume must be 0% to 100%.",clockPitchMustBe220To880Hz:"Clock pitch must be 220Hz to 880Hz.",engineTimeoutMustBe1To300Seconds:"Engine timeout must be 1 to 300 seconds.",coefficientInSigmoidMustBeGreaterThan0:"Coefficient in sigmoid must be greater than 0.",inaccuracyThresholdMustBe1To100Percent:"Inaccuracy must be 1% to 100%.",dubiousThresholdMustBe1To100Percent:"Dubious threshold must be 1% to 100%.",mistakeThresholdMustBe1To100Percent:"Mistake threshold must be 1% to 100%.",blunderThresholdMustBe1To100Percent:"Blunder threshold must be 1% to 100%.",recordSavedWithGarbledCharacters:"The record has saved with some garbled characters.",pleaseConsiderToUseKIFU:"Please consider to use KIFU(UTF-8).",youCanChangeDefaultRecordFileFormatFromAppSettings:"You can change default record file format from App Settings.",inaccuracyThresholdMustBeLessThanDubiousThreshold:"Inaccuracy threshold must be less than dubious threshold.",dubiousThresholdMustBeLessThanMistakeThreshold:"Dubious threshold must be less than mistake threshold.",mistakeThresholdMustBeLessThanBlunderThreshold:"Mistake threshold must be less than blunder threshold.",thisEngineNotSupportsMateSearch:"This engine does not support mate search.",pleaseEndActiveFeaturesBeforeOpenRecord:"Please end active features before open record.",bothTimeLimitAndByoyomiAreNotSet:"Both time limit and byoyomi are not set.",canNotUseByoyomiWithFischer:"You can not use Byoyomi with Fischer.",protocolVersionNotSelected:"Protocol version is not selected.",hostNameIsEmpty:"Host name is empty.",invalidPortNumber:"Invalid port number.",idIsEmpty:"ID is empty.",idContainsSpace:"ID contains space.",passwordContainsSpace:"Password contains space.",tcpKeepaliveInitialDelayMustBePositive:"TCP keepalive initial delay must be positive.",blankLinePingInitialDelayMustBeGreaterThanOrEqualTo30:"Blank line ping initial delay must be >=30.",blankLinePingIntervalMustBeGreaterThanOrEqualTo30:"Blank line ping interval must be >=30.",engineNotSelected:"Engine is not selected.",forExportingConversionLogPleaseEnableAppLogsAndSetLogLevelDebugAndRestart:"For exporting conversion log, please enable app logs, set log level to DEBUG and restart this app.",sourceDirectoryNotSpecified:"Source directory is not specified.",sourceFormatsNotSpecified:"Source formats are not specified.",destinationDirectoryNotSpecified:"Destination directory is not specified.",destinationFileNotSpecified:"Destination file is not specified.",totalNumber:e=>`Total: ${e}`,number:e=>""+e,tryToReloginToCSAServerNSecondsLater:e=>`Try to relogin to CSA server ${e} seconds later.`,mateInNPlyDoYouWantToDisplay:e=>`Mate in ${e} ply. Do you want to display?`,insertedNMovesToRecord:e=>`Inserted ${e} moves to the record.`,errorsOccurred:e=>e>=2?`${e} errors have occurred.`:`${e} error has occurred.`,between:(e,t)=>`between ${e} and ${t}`,addNthEngine:e=>`Add ${(0,r.ordinal)(e)} engine`,copyOf:e=>`${e} (copy)`,keepLatest:e=>`keep latest ${e}`,followingDataNotSavedBecauseNotSupporetedBy:e=>`Following data not saved because not supporeted by "${e}".`,areYouSureWantToDeleteFollowingMove:e=>`Are you sure you want to delete ${e}th move and the following move?`,failedToOpenDirectory:e=>`Failed to open directory of the file: ${e}`,unexpectedEventSenderPleaseReport:e=>`Unexpected event sender. Please report this error message to developer. [${e}]`,unexpectedHTTPMethodPleaseReport:e=>`Unexpected HTTP method. Please report this error message to developer. [${e}]`,unexpectedRequestURLPleaseReport:e=>`Unexpected request URL. Please report this error message to developer. [${e}]`,noResponseFromEnginePleaseExtendTimeout:e=>`No response from engine while ${e} seconds. Please extend timeout at app settings, if your engine is slow.`,stableVersionReleased:e=>`Stable version ${e} released!`,latestVersionReleased:e=>`Latest version ${e} released!`}},7048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ja=void 0,t.ja={electronShogi:"Electron将棋",clear:"初期化",open:"開く",saveOverwrite:"上書き保存",newRecord:"新規棋譜",openRecord:"棋譜を開く",saveRecord:"棋譜を上書き保存",saveRecordAs:"棋譜を名前を付けて保存",openAutoSavingDirectory:"自動保存先を開く",exportPositionImage:"局面図を出力",positionImage:"局面図",batchConversion:"一括変換",recordFileBatchConversion:"棋譜ファイル一括変換",close:"閉じる",quit:"終了",editing:"編集",copyAsKIF:"コピー・KIF",copyAsKI2:"コピー・KI2",copyAsCSA:"コピー・CSA",copyAsUSI:"コピー・USI",copyAsSFEN:"コピー・SFEN",copyAsJKF:"コピー・JKF",copy:"コピー",cut:"切り取り",paste:"貼り付け",copyRecord:"棋譜コピー",asKIF:"KIF形式",asKI2:"KI2形式",asCSA:"CSA形式",asUSIUntilCurrentMove:"USI形式(現在の指し手まで)",asUSIAll:"USI形式(全て)",asJSONKifuFormat:"JSON棋譜フォーマット",copyPositionAsSFEN:"局面コピー(SFEN形式)",pasteRecordOrPosition:"棋譜・局面貼り付け",appendSpecialMove:"特殊な指し手",deleteMoves:"現在の位置から棋譜を削除",view:"表示",toggleFullScreen:"全画面表示切り替え",defaultFontSize:"標準の文字サイズ",largerFontSize:"文字を拡大",smallerFontSize:"文字を縮小",settings:"設定",config:"設定",debug:"デバッグ",toggleDevTools:"開発者ツール表示切り替え",logFile:"ログファイル",openAppLog:"アプリログを開く",openUSILog:"USI通信ログを開く",openCSALog:"CSA通信ログを開く",tailAppLog:"アプリログをTailする",tailUSILog:"USI通信ログをTailする",tailCSALog:"CSA通信ログをTailする",copyAppLogTailCommand:"アプリログのTailコマンドをコピー",copyUSILogTailCommand:"USI通信ログのTailコマンドをコピー",copyCSALogTailCommand:"CSA通信ログのTailコマンドをコピー",reloadCustomPieceImage:"カスタム駒画像をリロード",launchUSIEngine:"USIエンジンを起動",connectToCSAServer:"CSAサーバーに接続",adminMode:"管理モード",inAdminModeYouShouldInvokeCommandsManuallyAtPrompt:"管理モードではプロンプトから手動でコマンドを実行する必要があります。",setoptionAndPrecedingCommandsWillBeSentAutomatically:"setoptionコマンドまでのコマンドは自動で送信されます。",serverMustSupportShogiServerX1ModeLogIn:"サーバーは shogi-server の拡張モード (x1) ログインをサポートしている必要があります。",folders:"各種フォルダ",notification:"通知",notificationTest:"通知テスト",thisIsTestNotification:"これは通知のテストです。",app:"アプリ",log:"ログ",backup:"バックアップ",cache:"キャッシュ",help:"ヘルプ",openWebSite:"Webサイトを開く",howToUse:"使い方を開く",openLatestReleasePage:"最新版リリースページを開く",openStableReleasePage:"安定版リリースページを開く",inputs:"入力",outputs:"出力",format:"フォーマット",formats:"フォーマット",subdirectories:"サブディレクトリ",separately:"個別",merge:"マージ",createSubdirectories:"サブディレクトリ作成",nameConflictAction:"名前衝突時の動作",numberSuffix:"番号付与",skip:"スキップ",convert:"変換",openLogFile:"ログファイルを開く",succeeded:"成功",failed:"失敗",skipped:"スキップ",game:"対局",player:"プレイヤー",server:"サーバー",selectFromHistory:"履歴から選ぶ",noHistory:"履歴がありません",saveHistory:"履歴に保存する",version:"バージョン",gameProgress:"対局の経過",allGamesCompleted:"連続対局終了",gameEnded:"対局終了",offlineGame:"ローカル対局",csaOnlineGame:"通信対局(CSA)",csaProtocolOnlineGame:"通信対局(CSAプロトコル)",csaProtocolV121:"CSAプロトコル1.2.1 標準",csaProtocolV121WithPVComment:"CSAプロトコル1.2.1 読み筋コメント付き",hostToConnect:"接続先ホスト",portNumber:"ポート番号",password:"パスワード",showPassword:"パスワードを表示する",keepaliveInitialDelay:"Keepalive初期遅延",blankLinePing:"空行Ping",blankLinePingInitialDelay:"空行Ping初期遅延",blankLinePingInterval:"空行Ping間隔",logout:"ログアウト",calculateJishogiPoints:"持将棋の点数を計算",jishogiPoints:"持将棋の点数",displayGameResults:"戦績確認",interrupt:"中断",stopGame:"対局中断",resign:"投了",draw:"引き分け",impass:"持将棋",repetitionDraw:"千日手",mate:"詰み",noMate:"不詰",mateSearch:"詰み探索",startMateSearch:"詰み探索開始",stopMateSearch:"詰み探索終了",noMateFound:"詰みが見つかりませんでした。",timeout:"時間切れ",foulWin:"反則勝ち",foulLose:"反則負け",enteringOfKing:"入玉勝ち",winByDefault:"不戦勝",loseByDefault:"不戦敗",winByDeclaration:"宣言勝ち",declareWinning:"勝ち宣言",research:"検討",startResearch:"検討開始",endResearch:"検討終了",recordAnalysis:"棋譜解析",analysis:"解析",analyze:"解析開始",stopAnalysis:"解析中断",setupPosition:"局面編集",startPositionSetup:"局面編集開始",completePositionSetup:"局面編集終了",changeTurn:"手番変更",initializePosition:"局面の初期化",appSettings:"アプリ設定",language:"言語",theme:"テーマ",standard:"標準",green:"緑",cherryBlossom:"桜",customImage:"カスタム画像",autumn:"紅葉",snow:"雪",darkGreen:"深緑",dark:"ダーク",piece:"駒",singleKanjiPiece:"一文字駒",singleKanjiGothicPiece:"一文字駒(ゴシック体)",singleKanjiDarkPiece:"一文字駒(ダーク)",singleKanjiGothicDarkPiece:"一文字駒(ゴシック体・ダーク)",imageHasMarginsRemoveToDisplayLarger:"画像に余白が含まれている(除去して大きく表示)",backgroundImage:"背景画像",board:"盤",pieceStand:"駒台",lightWoodyTexture:"木目(明るい)",warmWoodTexture:"木目(暖かい)",regin:"樹脂",transparent:"透過表示",boardOpacity:"盤の不透明度",pieceStandOpacity:"駒台の不透明度",recordOpacity:"棋譜の不透明度",displayFileAndRank:"段・筋を表示",displayLeftControls:"左側操作ボタンを表示",displayRightControls:"右側操作ボタンを表示",tabViewStyle:"タブビューの形式",oneColumn:"1列",twoColumns:"2列",sounds:"音",pieceLoudness:"駒音の大きさ",clockLoudness:"時計音の大きさ",clockPitch:"時計音の高さ",clockSoundTarget:"時計音の対象",anyTurn:"全ての手番",onlyHumanTurn:"人間の手番のみ",defaultRecordFileFormat:"デフォルトの保存形式",textEncoding:"文字コード",strict:"厳格",autoDetect:"自動判定",newlineCharacter:"改行文字",old90sMac:"90年代Mac",autoSaving:"自動保存",autoSavingDirectory:"棋譜の自動保存先",recordFileName:"棋譜ファイル名",select:"選択",positionOfUSIOutput:"USI の局面表記",movesOfUSIOutput:"USI の指し手表記",onlySFEN:"SFEN のみ",usiProtocol:"USIプロトコル",translateOptionName:"オプション名を翻訳",functionalOnJapaneseOnly:"日本語選択時のみ有効",maxStartupTime:"最大起動待ち時間",forDevelopers:"開発者向け",enableAppLog:"アプリログを出力",enableUSILog:"USI通信ログを出力",enableCSALog:"CSA通信ログを出力",logLevel:"ログレベル",engineSettings:"エンジン設定",flipBoard:"盤面反転",file:"ファイル",recordFile:"棋譜ファイル",executableFile:"実行可能ファイル",imageFile:"画像ファイル",unsaved:"未保存",remove:"削除",deleteMove:"指し手削除",recordProperties:"棋譜情報",comments:"コメント",commentsAndBookmarks:"コメント・しおり",branches:"分岐",bookmark:"しおり",bookmarkList:"しおり一覧",useBookmarkAsHeader:"しおりを見出しに使う",moveComments:"指し手コメント",searchLog:"思考",pv:"読み筋",mateShort:"詰",displayPVShort:"再現",evaluation:"評価値",eval:"評価値",estimatedWinRate:"期待勝率",evaluationAndEstimatedWinRate:"評価値・期待勝率",swapEachTurnChange:"手番側有利がプラスの値",alwaysSenteIsPositive:"先手有利がプラスの値",signOfEvaluation:"評価値の符号",winRateCoefficient:"勝率換算係数",monitor:"監視",hideTabView:"最小化",expandTabView:"タブビューを再表示",sente:"先手",senteOrShitate:"先手(下手)",shitate:"下手",gote:"後手",goteOrUwate:"後手(上手)",uwate:"上手",swapSenteGote:"先後入れ替え",currentPosition:"現在の局面",enableEngineTimeout:"エンジンの時間切れあり",setDifferentTimeForGote:"後手に異なる時間を設定",nextTurn:"次の手番",elapsedTime:"消費時間",elapsed:"経過時間",rank:"順位",depth:"深さ",searchEngine:"エンジン",ponder:"先読み(Ponder)",numberOfThreads:"スレッド数",multiPV:"マルチPV",startPosition:"開始局面",maxMoves:"最大手数",gameRepetition:"連続対局",jishogi:"持将棋",rule24:"24点法",rule27:"27点法",tryRule:"トライルール",autoRelogin:"自動で再ログインする",restartItEveryGame:"1局ごとに再起動する",swapTurnWhenGameRepetition:"1局ごとに手番を入れ替える",outputComments:"コメントを出力する",saveRecordAutomatically:"棋譜を自動で保存する",adjustBoardToHumanPlayer:"人を手前に表示する",adjustBoardAutomatically:"盤面の向きを自動調整",command:"コマンド",startGame:"対局開始",cancelGame:"対局をキャンセル",allottedTime:"持ち時間",byoyomi:"秒読み",increments:"増加",startEndCriteria:"開始・終了条件",endCriteria1Move:"局面ごとの終了条件",outputSettings:"出力設定",noOutputs:"出力しない",insertCommentToTop:"前方に加筆する",appendCommentToBottom:"末尾に加筆する",insertToComment:"コメントに挿入",insertToRecord:"棋譜に挿入",overwrite:"上書きする",fromPrefix:"",fromSuffix:"から",toPrefix:"",toSuffix:"まで",plyPrefix:"",plySuffix:"手目",hoursSuffix:"時間",minutesSuffix:"分",secondsSuffix:"秒",engineManagement:"エンジン管理",engineName:"エンジン名",author:"作者",earlyPonder:"早期Ponder",enginePath:"場所",openDirectory:"フォルダを開く",displayName:"表示名",invoke:"実行",resetToEngineDefaultValues:"エンジンの既定値に戻す",defaultValue:"既定値",noEngineRegistered:"エンジンが登録されていません。",duplicate:"複製",add:"追加",recommended:"推奨",import:"取り込む",saveAndClose:"保存して閉じる",save:"保存",saveAs:"保存",history:"履歴",clearHistory:"履歴をクリア",userFile:"ユーザーのファイル",automaticBackup:"自動バックアップ",restore:"復元",cancel:"キャンセル",back:"戻る",name:"名前",prediction:"予想",best:"最善",nodes:"Node数",hashUsage:"Hash使用率",stop:"停止",resume:"再開",nonHandicap:"平手",lanceHandicap:"香落ち",rightLanceHandicap:"右香落ち",bishopHandicap:"角落ち",rookHandicap:"飛車落ち",rookLanceHandicap:"飛車香落ち",twoPiecesHandicap:"二枚落ち",fourPiecesHandicap:"四枚落ち",sixPiecesHandicap:"六枚落ち",eightPiecesHandicap:"八枚落ち",tenPiecesHandicap:"十枚落ち",tsumeShogi:"詰将棋",doubleKingTsumeShogi:"双玉詰将棋",startDateTime:"開始日時",endDateTime:"終了日時",gameDate:"対局日",tournament:"棋戦",strategy:"戦型",gameTitle:"表題",timeLimit:"持ち時間",place:"場所",postedOn:"掲載",note:"備考",senteShortName:"先手省略名",goteShortName:"後手省略名",opusNo:"作品番号",opusName:"作品名",publishedBy:"発表誌",publishedOn:"発表年月",source:"出典",numberOfMoves:"手数",integrity:"完全性",recordCategory:"分類",award:"受賞",filterByOptionName:"オプション名で検索",filterByEngineName:"エンジン名で検索",bookStyle:"書籍風",gameStyle:"対局画面風",thin:"細",bold:"太",extraBold:"極太",playerName:"対局者名",typeface:"書体",weight:"太さ",handLabel:"持ち駒ラベル",header:"見出し",vertical:"垂直方向",size:"サイズ",none:"なし",bgCover:"1枚で表示",bgContain:"拡大して表示",bgTile:"タイル状に表示",inaccuracy:"緩手",dubious:"疑問手",mistake:"悪手",blunder:"大悪手",inaccuracyThreshold:"緩手の閾値",dubiousThreshold:"疑問手の閾値",mistakeThreshold:"悪手の閾値",blunderThreshold:"大悪手の閾値",gothic:"ゴシック体",mincho:"明朝体",appVersion:"アプリバージョン",installed:"インストール済み",stable:"安定版",latest:"最新版",updatedAt:"更新日時",createdAt:"作成日時",lastSent:"最終送信",lastReceived:"最終受信",protocolVersion:"プロトコルバージョン",prompt:"プロンプト",openPrompt:"プロンプトを開く",forceQuit:"強制Quit",forceClose:"強制Close",blankLine:"空行",autoScroll:"自動スクロール",showTimestamp:"タイムスタンプを表示",highlightByPartialMatch:"部分一致でハイライト",csaServer:"CSAサーバー",usiEngine:"USIエンジン",noRunningUSIEngine:"稼働中のUSIエンジンはありません。",noConnectedCSAServer:"接続中のCSAサーバーはありません。",willBeRemovedFromTheListSoon:"セッションが終了したため、まもなく一覧から削除されます。",typeCommandHereAndPressEnter:"コマンドを入力してEnter",allowBlankLine:"空行を許可",removeSpaceFromBothEnds:"両端の空白を削除",collapseSequentialSpaces:"連続する空白をまとめる",typeCustomTitleHere:"ここに見出しを入力",displayEmptyElements:"未入力の項目を表示",waitingForNewGame:"対局開始を待っています。",waitingForPlayerSetup:"対局者の準備を待っています。",insertedComment:"コメントを挿入しました。",conversionCompleted:"変換が完了しました。",tryingToConnectAndLoginToCSAServer:"CSAサーバーへの接続とログインを試みています。",inBrowserLogsOutputToConsoleAndIgnoreThisSetting:"※ブラウザ版ではログがコンソールに出力され、ここでの設定は無視されます。",shouldRestartToApplyLogSettings:"※ログ設定の変更を反映するにはアプリの再起動が必要です。",canOpenLogDirectoryFromMenu:"※ログの出力先は「デバッグ」-「ログファイルの場所を開く」で開きます。",hasNoOldLogCleanUpFeature:"※現在、古いログファイルの自動削除機能はありません。",processingPleaseWait:"処理中です。お待ちください。",importingFollowingRecordOrPosition:"以下の棋譜(または局面)を取り込みます。",supportsKIF_KI2_CSA_USI_JKF:"※KIF形式/KI2形式/CSA形式/SFEN/JKFに対応しています。",plesePasteRecordIntoTextArea:"※テキストエリアに棋譜を貼り付けてください。",desktopVersionPastesAutomatically:"※インストールアプリ版では自動的に貼り付けられます。",earlyPonderFeatureSendsPonderhitCommandWithYaneuraOusNonStandardOptions:"早期Ponder機能は、やねうら王の独自オプションでponderhitコマンドを送信します。",ifYourEngineNotSupportTheOptionsItMayCauseUnexpectedBehavior:"エンジンがこのオプションに対応していない場合、予期しない動作を引き起こす可能性があります。",someLogsDisabled:"一部のログが無効になっています。",logsRecommendedForCSAProtocol:"CSAプロトコルを使用した対局では各種ログの出力を推奨します。",pleaseEnableLogsAndRestart:"アプリ設定からログを有効にしてアプリを再起動してください。",notSendPVOnStandardCSAProtocol:"標準のCSAプロトコルでは評価値や読み筋が送信されません。",csaProtocolSendPlaintextPassword:"CSAプロトコルの規格上パスワードは平文で送信されます。",passwordWillSavedPlaintextBecauseOSSideEncryptionNotAvailable:"OSの暗号化機能が利用できないため、入力したパスワードは平文で保存されます。",pleaseUncheckSaveHistoryIfNotWantSave:"保存したくない場合は「履歴に保存する」のチェックを外してください。",csaProtocolSendPlaintextPasswordRegardlessOfHistory:"なお、履歴の保存に関係なくCSAプロトコルの規格上パスワードは平文で送信されます。",whenNewVersionIsAvailableItWillBeNotified:"新しいバージョンが利用可能になると通知されます。",pleaseCheckMessageThisIsTestNotificationByAboveButton:"上のボタンで「これは通知のテストです。」というメッセージを確認してください。",ifNotWorkYouShouldAllowNotificationOnOSSetting:"表示されない場合はOSの設定で通知を許可してください。",areYouSureWantToResign:"投了しますか?",areYouSureWantToDoDeclaration:"宣言しますか?",areYouSureWantToQuitGames:"連続対局を中断しますか?",areYouSureWantToRequestQuit:"中断を要求すると負けになる可能性があります。よろしいですか?",areYouSureWantToClearRecord:"現在の棋譜は削除されます。よろしいですか?",areYouSureWantToDiscardPosition:"現在の局面は破棄されます。よろしいですか?",areYouSureWantToOpenFileInsteadOfCurrentRecord:"現在の棋譜を閉じて別のファイルを開きます。よろしいですか?",areYouSureWantToClearHistory:"履歴をクリアします。よろしいですか?",yamlFormatSettingCopiedToClipboard:"YAML形式の設定をクリップボードにコピーしました。",jsonFormatSettingCopiedToClipboard:"JSON形式の設定をクリップボードにコピーしました。",usiCsaBridgeCommandCopiedToClipboard:"usi-csa-bridge コマンドをクリップボードにコピーしました。",youCanNotCloseAppWhileCSAOnlineGame:"CSAプロトコル使用中はアプリを終了できません。",fileExtensionNotSupported:"取り扱いできないファイル拡張子です。",errorOccuredWhileDisconnectingFromCSAServer:"CSAサーバーからの切断中にエラーが発生しました。",failedToConnectToCSAServer:"CSAサーバーに接続できませんでした。",errorOccuredWhileLogoutFromCSAServer:"CSAサーバーからのログアウト中にエラーが発生しました。",disconnectedFromCSAServer:"CSAサーバーへの接続が切れました。",csaServerLoginDenied:"CSAサーバーへのログインが拒否されました。",thisFeatureNotAvailableOnWebApp:"Web版では利用できない機能です。",failedToStartNewGame:"対局の開始に失敗しました。",errorOccuredWhileEndingGame:"対局の終了中にエラーが発生しました。",failedToSendGoCommand:"goコマンドを送信できませんでした。",failedToSendPonderCommand:"ponderコマンドを送信できませんでした。",failedToSendStopCommand:"stopコマンドを送信できませんでした。",failedToShutdownEngines:"エンジンを正常に終了できませんでした。",failedToCheckUpdates:"アップデートの確認ができませんでした。",failedToSaveRecord:"棋譜の保存に失敗しました。",failedToParseSFEN:"SFENの読み込みに失敗しました。",failedToDetectRecordFormat:"棋譜形式を判別できませんでした。",unknown:"不明",unknownFileExtension:"不明なファイル形式です。",emptyRecordInput:"棋譜が入力されていません。",invalidPieceName:"不正な駒",invalidTurn:"不正な手番",invalidMove:"不正な指し手",invalidMoveNumber:"不正な手数",invalidDestination:"不正な移動先",pieceNotExists:"存在しない駒",invalidLine:"不正な行",invalidBoard:"不正な盤面",invalidHandPiece:"不正な持ち駒",invalidUSI:"不正なUSI",backgroundImageFileNotSelected:"背景画像のファイルが選択されていません。",pieceImageFileNotSelected:"駒画像のファイルが選択されていません。",boardImageFileNotSelected:"盤面画像のファイルが選択されていません。",pieceStandImageFileNotSelected:"駒台画像のファイルが選択されていません。",pieceVolumeMustBe0To100Percent:"駒音の大きさには0%~100%の値を指定してください。",clockVolumeMustBe0To100Percent:"時計音の大きさには0%~100%の値を指定してください。",clockPitchMustBe220To880Hz:"時計音の高さには220Hz~880Hzの値を指定してください。",engineTimeoutMustBe1To300Seconds:"エンジンのタイムアウト時間には1秒~300秒の値を指定してください。",coefficientInSigmoidMustBeGreaterThan0:"勝率換算係数には0より大きい値を指定してください。",inaccuracyThresholdMustBe1To100Percent:"緩手には1%~100%の値を指定してください。",dubiousThresholdMustBe1To100Percent:"疑問手には1%~100%の値を指定してください。",mistakeThresholdMustBe1To100Percent:"悪手には1%~100%の閾値を指定してください。",blunderThresholdMustBe1To100Percent:"大悪手には1%~100%の値を指定してください。",recordSavedWithGarbledCharacters:"保存した棋譜の一部が文字化けしている可能性があります。",pleaseConsiderToUseKIFU:"KIFU形式(UTF-8)で保存することをお勧めします。",youCanChangeDefaultRecordFileFormatFromAppSettings:"デフォルトの棋譜形式はアプリ設定で変更可能です。",inaccuracyThresholdMustBeLessThanDubiousThreshold:"緩手には疑問手より小さい値を指定してください。",dubiousThresholdMustBeLessThanMistakeThreshold:"疑問手には悪手より小さい値を指定してください。",mistakeThresholdMustBeLessThanBlunderThreshold:"悪手には大悪手より小さい値を指定してください。",thisEngineNotSupportsMateSearch:"このエンジンは詰将棋探索をサポートしていません。",pleaseEndActiveFeaturesBeforeOpenRecord:"棋譜を開くには現在利用している機能を終了してください。",bothTimeLimitAndByoyomiAreNotSet:"持ち時間と秒読みが両方とも0です。",canNotUseByoyomiWithFischer:"秒読みとフィッシャールールは併用できません。",protocolVersionNotSelected:"プロトコルのバージョンを選択してください。",hostNameIsEmpty:"ホスト名が空です。",invalidPortNumber:"無効なポート番号です。",idIsEmpty:"IDが空です。",idContainsSpace:"IDに空白が含まれています。",passwordContainsSpace:"パスワードに空白が含まれています。",tcpKeepaliveInitialDelayMustBePositive:"TCP Keepaliveの初期遅延時間には正の値を指定してください。",blankLinePingInitialDelayMustBeGreaterThanOrEqualTo30:"空行送信の初期遅延時間には30秒以上を指定してください。",blankLinePingIntervalMustBeGreaterThanOrEqualTo30:"空行送信の間隔には30秒以上を指定してください。",engineNotSelected:"エンジンが選択されていません。",forExportingConversionLogPleaseEnableAppLogsAndSetLogLevelDebugAndRestart:"変換ログを出力するにはアプリログを有効にし、ログレベルをデバッグに設定してアプリを再起動してください。",sourceDirectoryNotSpecified:"入力ディレクトリが指定されていません。",sourceFormatsNotSpecified:"入力の対象フォーマットが指定されていません。",destinationDirectoryNotSpecified:"出力ディレクトリが指定されていません。",destinationFileNotSpecified:"出力ファイルが指定されていません。",totalNumber:e=>`合計 ${e} 件`,number:e=>`${e} 件`,tryToReloginToCSAServerNSecondsLater:e=>`CSAサーバーへのログインを${e}秒後に再試行します。`,mateInNPlyDoYouWantToDisplay:e=>`${e}手で詰みました。再生画面を表示しますか?`,insertedNMovesToRecord:e=>`${e}手を棋譜に挿入しました。`,errorsOccurred:e=>`${e} 種類のエラーが発生しました。`,between:(e,t)=>`${e} から ${t} まで`,addNthEngine:e=>`${e} 個目のエンジンを追加`,copyOf:e=>`${e} のコピー`,keepLatest:e=>`最新${e}件まで`,followingDataNotSavedBecauseNotSupporetedBy:e=>`以下の情報は ${e} 形式では対応していないため保存されませんでした。`,areYouSureWantToDeleteFollowingMove:e=>`${e}手目以降を削除します。よろしいですか?`,failedToOpenDirectory:e=>`ファイルの場所を開けませんでした: ${e}`,unexpectedEventSenderPleaseReport:e=>`予期せぬイベントの送信元です。このエラーメッセージを開発者に報告してください。 [${e}]`,unexpectedHTTPMethodPleaseReport:e=>`予期せぬHTTPメソッドです。このエラーメッセージを開発者に報告してください。 [${e}]`,unexpectedRequestURLPleaseReport:e=>`予期せぬURLへのリクエストです。このエラーメッセージを開発者に報告してください。 [${e}]`,noResponseFromEnginePleaseExtendTimeout:e=>`${e}秒以内にエンジンから応答がありませんでした。エンジンの起動が重い場合はアプリ設定で待ち時間を延長してください。`,stableVersionReleased:e=>`安定版 ${e} がリリースされました!`,latestVersionReleased:e=>`最新版 ${e} がリリースされました!`}},9184:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zh_tw=void 0,t.zh_tw={electronShogi:"Electron將棋",clear:"清除",open:"開啟",saveOverwrite:"覆蓋檔案",newRecord:"新棋譜",openRecord:"打開棋譜",saveRecord:"保存棋譜",saveRecordAs:"另存棋譜",openAutoSavingDirectory:"打開自動保存目錄",exportPositionImage:"輸出局面圖",positionImage:"局面圖",batchConversion:"棋譜大量轉換",recordFileBatchConversion:"棋譜大量轉換",close:"關閉",quit:"離開",editing:"編輯",copyAsKIF:"複製KIF棋譜",copyAsKI2:"複製KI2棋譜",copyAsCSA:"複製CSA棋譜",copyAsUSI:"複製USI棋譜",copyAsSFEN:"複製SFEN局面",copyAsJKF:"複製JKF棋譜",copy:"拷貝",cut:"剪下",paste:"貼上",copyRecord:"複製棋譜",asKIF:"KIF形式",asKI2:"KI2形式",asCSA:"CSA形式",asUSIUntilCurrentMove:"USI形式(到目前手數為止)",asUSIAll:"USI形式(全部)",asJSONKifuFormat:"JSON Kifu Format",copyPositionAsSFEN:"複製局面(SFEN形式)",pasteRecordOrPosition:"貼上棋譜、局面",appendSpecialMove:"特殊手",deleteMoves:"刪除現在位置後的棋譜",view:"表示",toggleFullScreen:"切換全螢幕",defaultFontSize:"預設字體尺寸",largerFontSize:"增加字體尺寸",smallerFontSize:"縮小字體尺寸",settings:"設定",config:"設定",debug:"偵錯",toggleDevTools:"打開/關閉開發者工具顯示",logFile:"紀錄檔",openAppLog:"開啟程式紀錄檔",openUSILog:"開啟USI通訊紀錄檔",openCSALog:"開啟CSA通訊紀錄檔",tailAppLog:"即時顯示程式紀錄",tailUSILog:"即時顯示USI通訊紀錄",tailCSALog:"即時顯示CSA通訊紀錄",copyAppLogTailCommand:"複製即時顯示程式紀錄指令",copyUSILogTailCommand:"複製即時顯示USI通訊紀錄指令",copyCSALogTailCommand:"複製即時顯示CSA通訊紀錄指令",reloadCustomPieceImage:"重整自訂棋駒圖片",launchUSIEngine:"啟動USI引擎",connectToCSAServer:"連接CSA伺服器",adminMode:"管理模式",inAdminModeYouShouldInvokeCommandsManuallyAtPrompt:"在管理模式下,您需要手動輸入指令方可執行。",setoptionAndPrecedingCommandsWillBeSentAutomatically:"setoption 之前的指令將會被自動發送。",serverMustSupportShogiServerX1ModeLogIn:"對應的 shogi-server 必須支援擴展 (x1) 登入模式。",folders:"資料夾",notification:"通知",notificationTest:"通知測試",thisIsTestNotification:"這是測試用的通知。",app:"軟體",log:"紀錄檔",backup:"備份",cache:"快取",help:"協助",openWebSite:"官方網站",howToUse:"使用教學",openLatestReleasePage:"前往最新版發布頁面",openStableReleasePage:"前往安定版發布頁面",inputs:"輸入目錄",outputs:"輸出目錄",format:"格式",formats:"格式",subdirectories:"子目錄",separately:"個別",merge:"合併",createSubdirectories:"建立子目錄",nameConflictAction:"名稱衝突處理方式",numberSuffix:"附加編號",skip:"跳過該檔案",convert:"開始轉換",openLogFile:"打開記錄檔案",succeeded:"成功",failed:"失敗",skipped:"跳過",game:"對局",player:"玩家",server:"伺服器",selectFromHistory:"從紀錄選取",noHistory:"目前沒有紀錄",saveHistory:"保存紀錄",version:"版本",gameProgress:"對局過程",allGamesCompleted:"連續對局結束",gameEnded:"對局結束",offlineGame:"本地(單機)對局",csaOnlineGame:"通訊對局(CSA)",csaProtocolOnlineGame:"通訊對局(CSA協定)",csaProtocolV121:"CSA協定 1.2.1 標準",csaProtocolV121WithPVComment:"CSA協定 1.2.1 +思考註解",hostToConnect:"連接之伺服器",portNumber:"連接埠號碼",password:"密碼",showPassword:"顯示密碼",keepaliveInitialDelay:"Keepalive初始延遲",blankLinePing:"空行Ping",blankLinePingInitialDelay:"空行Ping初始延遲",blankLinePingInterval:"空行Ping間隔",logout:"登出",calculateJishogiPoints:"計算持將棋點數",jishogiPoints:"持將棋點數",displayGameResults:"確認戰績",interrupt:"中斷",stopGame:"對局中斷",resign:"投了",draw:"平手",impass:"持將棋",repetitionDraw:"千日手",mate:"詰死",noMate:"無詰",mateSearch:"詰搜尋",startMateSearch:"開始詰搜尋",stopMateSearch:"結束詰搜尋",noMateFound:"在目前的盤面中找不到詰。",timeout:"時間耗盡",foulWin:"反則勝利",foulLose:"反則敗北",enteringOfKing:"入玉勝利",winByDefault:"不戰勝",loseByDefault:"不戰敗",winByDeclaration:"勝利宣言",declareWinning:"勝利宣言",research:"檢討",startResearch:"檢討開始",endResearch:"結束檢討",recordAnalysis:"棋譜解析",analysis:"解析",analyze:"解析開始",stopAnalysis:"中斷解析",setupPosition:"編輯局面",startPositionSetup:"開始編輯局面",completePositionSetup:"結束編輯局面",changeTurn:"變更手番",initializePosition:"初始化局面",appSettings:"程式設定",language:"語言",theme:"主題",standard:"標準",green:"綠色",cherryBlossom:"櫻花",customImage:"自定義圖片",autumn:"紅葉",snow:"雪",darkGreen:"深綠",dark:"深色主題",piece:"棋駒",singleKanjiPiece:"一文字駒",singleKanjiGothicPiece:"一文字駒(黑體)",singleKanjiDarkPiece:"一文字駒(深色)",singleKanjiGothicDarkPiece:"一文字駒(黑體・深色)",imageHasMarginsRemoveToDisplayLarger:"圖片含有透明邊界(去除後圖片會略為放大)",backgroundImage:"背景圖片",board:"棋盤",pieceStand:"駒台",lightWoodyTexture:"木目(亮色)",warmWoodTexture:"木目(暖色)",regin:"樹脂",transparent:"透明",boardOpacity:"盤面不透明度",pieceStandOpacity:"駒台不透明度",recordOpacity:"棋譜不透明度",displayFileAndRank:"顯示段・筋",displayLeftControls:"顯示左側操作按鈕",displayRightControls:"顯示右側操作按鈕",tabViewStyle:"分頁顯示形式",oneColumn:"1列",twoColumns:"2列",sounds:"音效",pieceLoudness:"棋駒音效",clockLoudness:"棋鐘音效大小",clockPitch:"棋鐘音效頻率",clockSoundTarget:"棋鐘音效對象",anyTurn:"所有手番",onlyHumanTurn:"只有玩家手番",defaultRecordFileFormat:"預設保存格式",textEncoding:"文字編碼",strict:"檔案原始編碼",autoDetect:"自動判定",newlineCharacter:"換行符號",old90sMac:"90年代Mac",autoSaving:"自動保存",autoSavingDirectory:"棋譜自動保存地點",recordFileName:"棋譜檔案名稱",select:"選擇",positionOfUSIOutput:"USI 局面紀錄格式",movesOfUSIOutput:"USI 棋譜紀錄格式",onlySFEN:"只有 SFEN",usiProtocol:"USI協定",translateOptionName:"選項名稱翻譯",functionalOnJapaneseOnly:"只有在日文選擇時有效",maxStartupTime:"最大起動等待時間",forDevelopers:"開發者用",enableAppLog:"輸出程式紀錄",enableUSILog:"輸出USI通訊紀錄",enableCSALog:"輸出CSA通訊紀錄",logLevel:"紀錄等級",engineSettings:"引擎設定",flipBoard:"盤面反轉",file:"檔案",recordFile:"棋譜檔案",executableFile:"可執行檔案",imageFile:"圖片檔案",unsaved:"未保存",remove:"刪除",deleteMove:"刪除該手",recordProperties:"棋譜情報",comments:"備註",commentsAndBookmarks:"備註・書籤",branches:"分支",bookmark:"書籤",bookmarkList:"書籤一覽",useBookmarkAsHeader:"將書籤名稱作為標題",moveComments:"棋步備註",searchLog:"思考",pv:"預測手順",mateShort:"詰",displayPVShort:"再現",evaluation:"評價值",eval:"評價値",estimatedWinRate:"期待勝率",evaluationAndEstimatedWinRate:"評價値・期待勝率",swapEachTurnChange:"手番側有利時為正值",alwaysSenteIsPositive:"先手有利時為正值",signOfEvaluation:"評價值符號",winRateCoefficient:"勝率換算係數",monitor:"監視",hideTabView:"最小化",expandTabView:"展開分頁",sente:"先手",senteOrShitate:"先手(下手)",shitate:"下手",gote:"後手",goteOrUwate:"後手(上手)",uwate:"上手",swapSenteGote:"先後交換",currentPosition:"現在局面",enableEngineTimeout:"開啟引擎時間限制",setDifferentTimeForGote:"先後手時間不相同",nextTurn:"手番",elapsedTime:"消費時間",elapsed:"經過時間",rank:"順位",depth:"深度",searchEngine:"引擎",ponder:"對方手番時運算(Ponder)",numberOfThreads:"執行緒數",multiPV:"多重PV",startPosition:"開始局面",maxMoves:"最大手數",gameRepetition:"連續對局",jishogi:"持將棋",rule24:"24點法",rule27:"27點法",tryRule:"Try Rule",autoRelogin:"自動重新登入",restartItEveryGame:"每局重新啟動",swapTurnWhenGameRepetition:"每局交換手番",outputComments:"輸出備註",saveRecordAutomatically:"自動保存棋譜",adjustBoardToHumanPlayer:"調整到玩家所在方向",adjustBoardAutomatically:"自動調整盤面方向",command:"Command",startGame:"對局開始",cancelGame:"取消對局",allottedTime:"持時間",byoyomi:"讀秒",increments:"增秒",startEndCriteria:"開始・結束條件",endCriteria1Move:"局面結束條件",outputSettings:"輸出設定",noOutputs:"不輸出",insertCommentToTop:"加入到前方",appendCommentToBottom:"在後方新增",insertToComment:"加入到備註欄",insertToRecord:"加入到棋譜",overwrite:"覆寫原檔案",fromPrefix:"從",fromSuffix:"",toPrefix:"到",toSuffix:"",plyPrefix:"第",plySuffix:"手",hoursSuffix:"時間",minutesSuffix:"分",secondsSuffix:"秒",engineManagement:"引擎管理",engineName:"引擎名稱",author:"作者",earlyPonder:"早期Ponder",enginePath:"場所",openDirectory:"開啟資料夾",displayName:"表示名稱",invoke:"執行",resetToEngineDefaultValues:"回復至引擎預設設定",defaultValue:"預設値",noEngineRegistered:"尚未登錄引擎。",duplicate:"複製",add:"追加",recommended:"推薦",import:"匯入",saveAndClose:"保存並關閉",save:"保存",saveAs:"另存為",history:"歷史紀錄",clearHistory:"清除歷史紀錄",userFile:"使用者檔案",automaticBackup:"自動備份",restore:"復原",cancel:"取消",back:"返回",name:"名稱",prediction:"預測",best:"最善",nodes:"Node數",hashUsage:"Hash使用率",stop:"停止",resume:"重新開始",nonHandicap:"平手",lanceHandicap:"香落",rightLanceHandicap:"右香落",bishopHandicap:"角落",rookHandicap:"飛車落",rookLanceHandicap:"飛車香落",twoPiecesHandicap:"二枚落",fourPiecesHandicap:"四枚落",sixPiecesHandicap:"六枚落",eightPiecesHandicap:"八枚落",tenPiecesHandicap:"十枚落",tsumeShogi:"詰將棋",doubleKingTsumeShogi:"雙玉詰將棋",startDateTime:"開始日時",endDateTime:"結束日時",gameDate:"對局日",tournament:"棋戰",strategy:"戰型",gameTitle:"標題",timeLimit:"持時間",place:"場所",postedOn:"登錄於",note:"備註",senteShortName:"先手省略名",goteShortName:"後手省略名",opusNo:"作品編號",opusName:"作品名",publishedBy:"發表於",publishedOn:"發表年月",source:"來源",numberOfMoves:"手數",integrity:"完全性",recordCategory:"分類",award:"受賞",filterByOptionName:"搜尋設定名稱",filterByEngineName:"搜尋引擎名稱",bookStyle:"書籍風",gameStyle:"對局畫面風",thin:"細",bold:"太",extraBold:"極太",playerName:"對局者名稱",typeface:"字體",weight:"字體粗細",handLabel:"持駒標題",header:"標題",vertical:"垂直調整",size:"大小",none:"無",bgCover:"圖片置中",bgContain:"擴大表示",bgTile:"磁磚狀表示",inaccuracy:"緩手",dubious:"疑問手",mistake:"惡手",blunder:"大惡手",inaccuracyThreshold:"緩手閾値",dubiousThreshold:"疑問手閾値",mistakeThreshold:"惡手閾値",blunderThreshold:"大惡手閾値",gothic:"黑體",mincho:"明體",appVersion:"軟體版本",installed:"已安裝",stable:"安定版",latest:"最新版",updatedAt:"更新時間",createdAt:"建立時間",lastSent:"最後送出",lastReceived:"最後接收",protocolVersion:"協定版本",prompt:"指令",openPrompt:"打開指令視窗",forceQuit:"強制退出",forceClose:"強制關閉",blankLine:"空行",autoScroll:"自動捲動",showTimestamp:"顯示時間戳章",highlightByPartialMatch:"反白部分一致部分",csaServer:"CSA伺服器",usiEngine:"USI引擎",noRunningUSIEngine:"目前沒有啟動中的USI引擎。",noConnectedCSAServer:"尚未連接CSA伺服器。",willBeRemovedFromTheListSoon:"由於 Session 結束,將會自一覽清除。",typeCommandHereAndPressEnter:"輸入指令後按下 Enter 以發送",allowBlankLine:"允許空行",removeSpaceFromBothEnds:"消除前後空白",collapseSequentialSpaces:"整理連續空白",typeCustomTitleHere:"輸入自定義標題",displayEmptyElements:"顯示未定義資料",waitingForNewGame:"正在等待下一場對局開始。",waitingForPlayerSetup:"正在等待對局者準備。",insertedComment:"已加入備註。",conversionCompleted:"轉換完成。",tryingToConnectAndLoginToCSAServer:"正在連接並登入CSA伺服器。",inBrowserLogsOutputToConsoleAndIgnoreThisSetting:"※在瀏覽器版本中紀錄會於 console 中顯示,並無視此處的設定。",shouldRestartToApplyLogSettings:"※您需要重新啟動本程式以使用變更後的紀錄設定。",canOpenLogDirectoryFromMenu:"※紀錄的輸出檔案可以在「偵錯」-「開啟紀錄檔案資料夾」開啟。",hasNoOldLogCleanUpFeature:"※現在並沒有舊紀錄的自動刪除機制。",processingPleaseWait:"現在處理中。請稍待一會。",importingFollowingRecordOrPosition:"將匯入以下棋譜(局面)。",supportsKIF_KI2_CSA_USI_JKF:"※支援KIF/KI2/CSA/SFEN/JKF形式。",plesePasteRecordIntoTextArea:"※請在文字輸入區域貼上您的棋譜。",desktopVersionPastesAutomatically:"※安裝程式版將會自動貼上棋譜。",earlyPonderFeatureSendsPonderhitCommandWithYaneuraOusNonStandardOptions:"早期Ponder機能は、やねうら王の独自オプションでponderhitコマンドを送信します。",ifYourEngineNotSupportTheOptionsItMayCauseUnexpectedBehavior:"エンジンがこのオプションに対応していない場合、予期しない動作を引き起こす可能性があります。",someLogsDisabled:"部份 log 已被無效化。",logsRecommendedForCSAProtocol:"若使用CSA協定對局,建議輸出各項紀錄。",pleaseEnableLogsAndRestart:"請在程式設定中開啟紀錄並重新啟動本程式。",notSendPVOnStandardCSAProtocol:"在標準的CSA協定中不會送出評價值以及思考棋步。",csaProtocolSendPlaintextPassword:"在CSA協定中,密碼為明文傳輸。",passwordWillSavedPlaintextBecauseOSSideEncryptionNotAvailable:"由於無法使用系統的加密機能,輸入的密碼將會以明文保存。",pleaseUncheckSaveHistoryIfNotWantSave:"若不想保存密碼,請不要將「保存紀錄」勾選。",csaProtocolSendPlaintextPasswordRegardlessOfHistory:"不過,CSA協定仍會以明文傳輸您的密碼。",whenNewVersionIsAvailableItWillBeNotified:"將會在新版本發布時進行通知。",pleaseCheckMessageThisIsTestNotificationByAboveButton:"上方按鈕會發送「這是測試用的通知。」的通知訊息。",ifNotWorkYouShouldAllowNotificationOnOSSetting:"若無法顯示,請在使用的作業系統中許可本程式的通知。",areYouSureWantToResign:"確定要投了嗎?",areYouSureWantToDoDeclaration:"確定要進行勝利宣言嗎?",areYouSureWantToQuitGames:"要中斷連續對局嗎?",areYouSureWantToRequestQuit:"若提出中斷要求,可能會被判負。請問您要繼續嗎?",areYouSureWantToClearRecord:"將會刪除現在的棋譜。請問您要繼續嗎?",areYouSureWantToDiscardPosition:"將不會保存現在的局面。請問您要繼續嗎?",areYouSureWantToOpenFileInsteadOfCurrentRecord:"會將現在的棋譜關閉並開啟別的檔案,請問您要繼續嗎?",areYouSureWantToClearHistory:"將清除紀錄。請問您要繼續嗎?",yamlFormatSettingCopiedToClipboard:"YAML形式の設定をクリップボードにコピーしました。",jsonFormatSettingCopiedToClipboard:"JSON形式の設定をクリップボードにコピーしました。",usiCsaBridgeCommandCopiedToClipboard:"usi-csa-bridge コマンドをクリップボードにコピーしました。",youCanNotCloseAppWhileCSAOnlineGame:"由於CSA協定正在使用中,本程式無法被關閉。",fileExtensionNotSupported:"無法支援的副檔名。",errorOccuredWhileDisconnectingFromCSAServer:"在與CSA伺服器中斷連線時發生錯誤。",failedToConnectToCSAServer:"無法連接CSA伺服器。",errorOccuredWhileLogoutFromCSAServer:"在登出 CSA 伺服器時發生錯誤。",disconnectedFromCSAServer:"與CSA伺服器的連接結束。",csaServerLoginDenied:"您對CSA伺服器的登入被拒絕。",thisFeatureNotAvailableOnWebApp:"Web版無法使用本機能",failedToStartNewGame:"對局開始失敗。",errorOccuredWhileEndingGame:"在對局結束時發生錯誤。",failedToSendGoCommand:"無法送出go指令。",failedToSendPonderCommand:"無法送出ponder指令。",failedToSendStopCommand:"無法送出stop指令。",failedToShutdownEngines:"引擎無法正常結束。",failedToCheckUpdates:"無法確認更新。",failedToSaveRecord:"棋譜保存失敗。",failedToParseSFEN:"SFEN讀取失敗。",failedToDetectRecordFormat:"無法判別棋譜形式。",unknown:"不明",unknownFileExtension:"未知的檔案形式。",emptyRecordInput:"您尚未輸入棋譜。",invalidPieceName:"不合法的棋駒",invalidTurn:"不合法的手番",invalidMove:"不合法的棋步",invalidMoveNumber:"不合法的手數",invalidDestination:"不合法的移動目的地",pieceNotExists:"不存在的棋駒",invalidLine:"不存在的行",invalidBoard:"不合法的盤面",invalidHandPiece:"不合法的持駒",invalidUSI:"不合法的USI",backgroundImageFileNotSelected:"尚未選取背景圖片。",pieceImageFileNotSelected:"尚未選取棋駒圖片。",boardImageFileNotSelected:"尚未選取盤面圖片。",pieceStandImageFileNotSelected:"尚未選取駒台圖片。",pieceVolumeMustBe0To100Percent:"請在0%~100%之間指定棋駒音效大小。",clockVolumeMustBe0To100Percent:"請在0%~100%之間指定棋鐘音效大小。",clockPitchMustBe220To880Hz:"請在220Hz~880Hz之間指定棋鐘音效頻率。",engineTimeoutMustBe1To300Seconds:"請在1秒~300秒之間指定引擎執行最長時間。",coefficientInSigmoidMustBeGreaterThan0:"請將勝率換算係數填為大於0之值。",inaccuracyThresholdMustBe1To100Percent:"請在0%~100%之間指定緩手門檻。",dubiousThresholdMustBe1To100Percent:"請在0%~100%之間指定疑問手門檻。",mistakeThresholdMustBe1To100Percent:"請在0%~100%之間指定惡手門檻。",blunderThresholdMustBe1To100Percent:"請在0%~100%之間指定大惡手門檻。",recordSavedWithGarbledCharacters:"保存的棋譜有部分可能會造成亂碼。",pleaseConsiderToUseKIFU:"建議您使用KIFU形式(UTF-8)儲存您的棋譜。",youCanChangeDefaultRecordFileFormatFromAppSettings:"預設棋譜檔案格式可以在程式設定中進行更動。",inaccuracyThresholdMustBeLessThanDubiousThreshold:"緩手門檻應小於疑問手門檻。",dubiousThresholdMustBeLessThanMistakeThreshold:"疑問手門檻應小於惡手門檻。",mistakeThresholdMustBeLessThanBlunderThreshold:"惡手門檻應小於大惡手門檻。",thisEngineNotSupportsMateSearch:"這個引擎不支援詰將棋搜索。",pleaseEndActiveFeaturesBeforeOpenRecord:"請關閉現正運行的功能再開啟棋譜。",bothTimeLimitAndByoyomiAreNotSet:"持時間與讀秒尚未設置。",canNotUseByoyomiWithFischer:"讀秒與 Fischer 選項無法同時併用。",protocolVersionNotSelected:"請選擇協定版本。",hostNameIsEmpty:"主機名稱為空。",invalidPortNumber:"不可用的連接埠號碼。",idIsEmpty:"ID 為空。",idContainsSpace:"ID contains space.",passwordContainsSpace:"Password contains space.",tcpKeepaliveInitialDelayMustBePositive:"請輸入正確的TCP Keepalive初始延遲時間。",blankLinePingInitialDelayMustBeGreaterThanOrEqualTo30:"請輸入正確的空行輸出初始延遲時間。",blankLinePingIntervalMustBeGreaterThanOrEqualTo30:"請輸入正確的空行輸出間隔時間。",engineNotSelected:"尚未選擇引擎。",forExportingConversionLogPleaseEnableAppLogsAndSetLogLevelDebugAndRestart:"如要監看轉換紀錄,請在程式設定內設定 log level 到 Debug 並重新啟動本程式。",sourceDirectoryNotSpecified:"輸入目錄尚未被指定。",sourceFormatsNotSpecified:"輸入格式尚未被指定。",destinationDirectoryNotSpecified:"輸出格式尚未被指定。",destinationFileNotSpecified:"輸出檔案尚未被指定。",totalNumber:e=>`總計 ${e} 筆`,number:e=>`${e} 筆`,tryToReloginToCSAServerNSecondsLater:e=>`請在${e}秒後再次嘗試登入 CSA 伺服器。`,mateInNPlyDoYouWantToDisplay:e=>`尋找到${e}手詰。要顯示結果嗎?`,insertedNMovesToRecord:e=>`已加入${e}手到棋譜。`,errorsOccurred:e=>`發生 ${e} 種類的錯誤。`,between:(e,t)=>`自 ${e} 到 ${t} `,addNthEngine:e=>`追加第 ${e} 個引擎`,copyOf:e=>`${e} 的拷貝`,keepLatest:e=>`到最新${e}件`,followingDataNotSavedBecauseNotSupporetedBy:e=>`以下的資料由於 ${e} 格式無法支援的原因無法保存。`,areYouSureWantToDeleteFollowingMove:e=>`將會刪除${e}手目以後的棋譜。請問您要繼續嗎?`,failedToOpenDirectory:e=>`無法開啟檔案目錄:${e}`,unexpectedEventSenderPleaseReport:e=>`無法預期的事件發送方已發生。請將該錯誤訊息告知開發者,謝謝。 [${e}]`,unexpectedHTTPMethodPleaseReport:e=>`無法預期的 HTTP 方法。請將該錯誤訊息告知開發者,謝謝。 [${e}]`,unexpectedRequestURLPleaseReport:e=>`無法從 URL 獲取資訊。請將該錯誤訊息告知開發者,謝謝。 [${e}]`,noResponseFromEnginePleaseExtendTimeout:e=>`引擎在${e}秒内沒有回應。若引擎的啟動時間稍長,請在設定中調整引擎最長等待時間。`,stableVersionReleased:e=>`安定版 ${e} 已經發布!`,latestVersionReleased:e=>`最新版 ${e} 已經發布!`}},3772:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRecordMetadataName=void 0;const r=s(8596),n=s(9552);t.getRecordMetadataName=function(e){switch(e){case r.RecordMetadataKey.BLACK_NAME:return n.t.sente;case r.RecordMetadataKey.WHITE_NAME:return n.t.gote;case r.RecordMetadataKey.SHITATE_NAME:return n.t.shitate;case r.RecordMetadataKey.UWATE_NAME:return n.t.uwate;case r.RecordMetadataKey.START_DATETIME:return n.t.startDateTime;case r.RecordMetadataKey.END_DATETIME:return n.t.endDateTime;case r.RecordMetadataKey.DATE:return n.t.gameDate;case r.RecordMetadataKey.TOURNAMENT:return n.t.tournament;case r.RecordMetadataKey.STRATEGY:return n.t.strategy;case r.RecordMetadataKey.TITLE:return n.t.gameTitle;case r.RecordMetadataKey.TIME_LIMIT:return n.t.timeLimit;case r.RecordMetadataKey.BYOYOMI:return n.t.byoyomi;case r.RecordMetadataKey.TIME_SPENT:return n.t.elapsedTime;case r.RecordMetadataKey.PLACE:return n.t.place;case r.RecordMetadataKey.POSTED_ON:return n.t.postedOn;case r.RecordMetadataKey.NOTE:return n.t.note;case r.RecordMetadataKey.BLACK_SHORT_NAME:return n.t.senteShortName;case r.RecordMetadataKey.WHITE_SHORT_NAME:return n.t.goteShortName;case r.RecordMetadataKey.OPUS_NO:return n.t.opusNo;case r.RecordMetadataKey.OPUS_NAME:return n.t.opusName;case r.RecordMetadataKey.AUTHOR:return n.t.author;case r.RecordMetadataKey.PUBLISHED_BY:return n.t.publishedBy;case r.RecordMetadataKey.PUBLISHED_AT:return n.t.publishedOn;case r.RecordMetadataKey.SOURCE:return n.t.source;case r.RecordMetadataKey.LENGTH:return n.t.numberOfMoves;case r.RecordMetadataKey.INTEGRITY:return n.t.integrity;case r.RecordMetadataKey.CATEGORY:return n.t.recordCategory;case r.RecordMetadataKey.AWARD:return n.t.award}}},9552:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLanguage=t.t=void 0;const r=s(3684),n=s(5444),i=s(7048),o=s(9184);t.t=i.ja,t.setLanguage=function(e){Object.entries(function(e){switch(e){case r.Language.JA:return i.ja;case r.Language.EN:return n.en;case r.Language.ZH_TW:return o.zh_tw;default:return i.ja}}(e)).forEach((([e,s])=>{t.t[e]=s}))}},1672:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLanguage=t.usiOptionNameMap=void 0;const r=s(3684),n={USI_Ponder:"相手番思考",Ponder:"相手番思考",USI_Hash:"ハッシュ",Hash:"ハッシュ",Clear_Hash:"ハッシュクリア",Threads:"スレッド",NumberOfThreads:"スレッド数",thread_num_per_gpu:"GPUあたりのスレッド数",ThreadIdOffset:"スレッドIDオフセット",MultiPV:"マルチPV",BookFile:"定跡ファイル",Book_File:"定跡ファイル",Book_Enable:"定跡あり",BookEvalDiff:"定跡の評価値差",book_file_name:"定跡ファイル名",use_book:"定跡を使用",BookPvMoves:"定跡PV手数",TinyBook:"小さい定跡",BookMoves:"定跡利用手数",BookMaxPly:"定跡最大手数",BookIgnoreRate:"定跡不使用率",RandomBookSelect:"ランダム定跡選択",IgnoreBookPly:"定跡の手数を無視",DepthLimit:"最大深さ",NarrowBook:"定跡手を限定",WriteDebugLog:"デバッグログ出力",Write_Debug_Log:"デバッグログ出力",ResignValue:"投了基準値",ResignScore:"投了基準値",PvInterval:"PV出力間隔",NodesLimit:"最大ノード数",USI_OwnBook:"定跡を使用",OwnBook:"定跡を使用",EvalDir:"評価関数のフォルダ",Eval_Dir:"評価関数のフォルダ",EvalFile:"評価関数ファイル",EvalHash:"評価値ハッシュ",Eval_Hash:"評価値ハッシュ",EvalSaveDir:"評価関数保存フォルダ",EvalShare:"評価値共有",BookDir:"定跡ファイルのフォルダ",Stochastic_Ponder:"相手番思考(確率的)",MinimumThinkingTime:"最小思考時間",Minimum_Thinking_Time:"最小思考時間",MinThinkingTime:"最小思考時間",MaxMovesToDraw:"強制引き分け手数",SlowMover:"長考",Slow_Mover:"長考",OutputFailLHPV:"Fail Low/Highを出力",NetworkDelay:"通信遅延",NetworkDelay2:"通信遅延2",FV_SCALE:"評価値スケール",UseBook:"定跡を使用",MaxDepth:"最大深さ",MarginMs:"マージン(ミリ秒)",Time_Margin:"時間マージン",ByoyomiMargin:"秒読みマージン",Byoyomi_Margin:"秒読みマージン",byoyomi_margin:"秒読みマージン",Move_Overhead:"着手オーバーヘッド",FischerMargin:"フィッシャーマージン",SuddenDeathMargin:"切れ負けマージン",Snappy:"素早く指す",EnteringKingRule:"入玉ルール",Do_YoTsume_Search:"余詰めを探索",gpu_num:"GPU数",ConsiderationMode:"検討モード",ConsiderBookMoveCount:"定跡出現率を使用",GenerateAllLegalMoves:"全合法手を生成",DrawScore:"引き分けのスコア",DrawValue:"引き分けの値",DrawValueBlack:"引き分けの値(先手)",DrawValueWhite:"引き分けの値(後手)",LargePageEnable:"LargePageを使用",SkillLevel:"スキルレベル",Skill_Level:"スキルレベル"};t.usiOptionNameMap={},t.setLanguage=function(e){Object.keys(t.usiOptionNameMap).forEach((e=>{delete t.usiOptionNameMap[e]})),Object.entries(function(e){switch(e){case r.Language.JA:return n;case r.Language.EN:default:return{}}}(e)).forEach((([e,s])=>{t.usiOptionNameMap[e]=s}))}},2580:(e,t)=>{"use strict";var s,r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=t.LogType=void 0,function(e){e.APP="app",e.USI="usi",e.CSA="csa"}(s||(t.LogType=s={})),function(e){e.DEBUG="debug",e.INFO="info",e.WARN="warn",e.ERROR="error"}(r||(t.LogLevel=r={}))},3680:(e,t)=>{"use strict";var s;function r(){return{startCriteria:{enableNumber:!1,number:20},endCriteria:{enableNumber:!1,number:100},perMoveCriteria:{maxSeconds:5},commentBehavior:s.INSERT}}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeAnalysisSetting=t.defaultAnalysisSetting=t.CommentBehavior=void 0,function(e){e.NONE="none",e.INSERT="insert",e.APPEND="append",e.OVERWRITE="overwrite"}(s||(t.CommentBehavior=s={})),t.defaultAnalysisSetting=r,t.normalizeAnalysisSetting=function(e){return{...r(),...e,startCriteria:{enableNumber:!1,number:20,...e.startCriteria},endCriteria:{enableNumber:!1,number:100,...e.endCriteria},perMoveCriteria:{maxSeconds:5,...e.perMoveCriteria}}}},4680:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPieceImageURLTemplate=t.validateAppSetting=t.normalizeAppSetting=t.defaultAppSetting=t.buildUpdatedAppSetting=t.PositionImageFontWeight=t.PositionImageHandLabelType=t.PositionImageTypeface=t.PositionImageStyle=t.ClockSoundTarget=t.EvaluationViewFrom=t.TextDecodingRule=t.Tab=t.TabPaneType=t.RightSideControlType=t.LeftSideControlType=t.BoardLabelType=t.PieceStandImageType=t.BoardImageType=t.KingPieceType=t.PieceImageType=t.BackgroundImageType=t.Thema=void 0;const r=s(6664),n=s(2580),i=s(1220),o=s(9224);var a,c,l,u,h,p,d,f,m,g,y,S,E,v,T,b,A,P;function I(e){return{language:r.Language.JA,thema:a.STANDARD,backgroundImageType:c.NONE,pieceImage:l.HITOMOJI,kingPieceType:u.GYOKU_AND_OSHO,deletePieceImageMargin:!1,boardImage:h.RESIN2,pieceStandImage:p.STANDARD,enableTransparent:!1,boardOpacity:1,pieceStandOpacity:1,recordOpacity:1,boardLabelType:d.STANDARD,leftSideControlType:f.STANDARD,rightSideControlType:m.STANDARD,pieceVolume:30,clockVolume:30,clockPitch:500,clockSoundTarget:v.ONLY_USER,boardFlipping:!1,tabPaneType:g.DOUBLE,tab:y.RECORD_INFO,tab2:y.COMMENT,topPaneHeightPercentage:60,topPanePreviousHeightPercentage:60,bottomLeftPaneWidthPercentage:60,defaultRecordFileFormat:i.RecordFileFormat.KIF,textDecodingRule:S.AUTO_DETECT,returnCode:e?.returnCode||"\r\n",autoSaveDirectory:e?.autoSaveDirectory||"",recordFileNameTemplate:o.defaultRecordFileNameTemplate,enableUSIFileStartpos:!0,enableUSIFileResign:!1,translateEngineOptionName:!0,engineTimeoutSeconds:10,evaluationViewFrom:E.EACH,coefficientInSigmoid:600,badMoveLevelThreshold1:5,badMoveLevelThreshold2:10,badMoveLevelThreshold3:20,badMoveLevelThreshold4:50,showElapsedTimeInRecordView:!0,showCommentInRecordView:!0,enableAppLog:!1,enableUSILog:!1,enableCSALog:!1,logLevel:n.LogLevel.INFO,positionImageStyle:T.BOOK,positionImageSize:500,positionImageTypeface:b.GOTHIC,positionImageHandLabelType:A.PLAYER_NAME,useBookmarkAsPositionImageHeader:!1,positionImageHeader:"",positionImageCharacterY:0,positionImageFontScale:1,positionImageFontWeight:P.W400X,lastRecordFilePath:"",lastUSIEngineFilePath:"",lastImageExportFilePath:"",lastOtherFilePath:"",emptyRecordInfoVisibility:!0}}function C(e){return e.backgroundImageType===c.NONE||e.backgroundImageFileURL?e.pieceImage!==l.CUSTOM_IMAGE||e.pieceImageFileURL&&e.croppedPieceImageBaseURL?e.boardImage!==h.CUSTOM_IMAGE||e.boardImageFileURL?e.pieceStandImage!==p.CUSTOM_IMAGE||e.pieceStandImageFileURL?e.pieceVolume<0||e.pieceVolume>100?new Error(r.t.pieceVolumeMustBe0To100Percent):e.clockVolume<0||e.clockVolume>100?new Error(r.t.clockVolumeMustBe0To100Percent):e.clockPitch<220||e.clockPitch>880?new Error(r.t.clockPitchMustBe220To880Hz):e.engineTimeoutSeconds<1||e.engineTimeoutSeconds>300?new Error(r.t.engineTimeoutMustBe1To300Seconds):e.coefficientInSigmoid<=0?new Error(r.t.coefficientInSigmoidMustBeGreaterThan0):e.badMoveLevelThreshold1<1||e.badMoveLevelThreshold1>100?new Error(r.t.inaccuracyThresholdMustBe1To100Percent):e.badMoveLevelThreshold2<1||e.badMoveLevelThreshold2>100?new Error(r.t.dubiousThresholdMustBe1To100Percent):e.badMoveLevelThreshold3<1||e.badMoveLevelThreshold3>100?new Error(r.t.mistakeThresholdMustBe1To100Percent):e.badMoveLevelThreshold4<1||e.badMoveLevelThreshold4>100?new Error(r.t.blunderThresholdMustBe1To100Percent):e.badMoveLevelThreshold1>=e.badMoveLevelThreshold2?new Error(r.t.inaccuracyThresholdMustBeLessThanDubiousThreshold):e.badMoveLevelThreshold2>=e.badMoveLevelThreshold3?new Error(r.t.dubiousThresholdMustBeLessThanMistakeThreshold):e.badMoveLevelThreshold3>=e.badMoveLevelThreshold4?new Error(r.t.mistakeThresholdMustBeLessThanBlunderThreshold):void 0:new Error(r.t.pieceStandImageFileNotSelected):new Error(r.t.boardImageFileNotSelected):new Error(r.t.pieceImageFileNotSelected):new Error(r.t.backgroundImageFileNotSelected)}!function(e){e.STANDARD="standard",e.CHERRY_BLOSSOM="cherry-blossom",e.AUTUMN="autumn",e.SNOW="snow",e.DARK_GREEN="dark-green",e.DARK="dark"}(a||(t.Thema=a={})),function(e){e.NONE="none",e.COVER="cover",e.CONTAIN="contain",e.TILE="tile"}(c||(t.BackgroundImageType=c={})),function(e){e.HITOMOJI="hitomoji",e.HITOMOJI_DARK="hitomojiDark",e.HITOMOJI_GOTHIC="hitomojiGothic",e.HITOMOJI_GOTHIC_DARK="hitomojiGothicDark",e.CUSTOM_IMAGE="custom-image"}(l||(t.PieceImageType=l={})),function(e){e.GYOKU_AND_OSHO="gyokuAndOsho",e.GYOKU_AND_GYOKU="gyokuAndGyoku"}(u||(t.KingPieceType=u={})),function(e){e.LIGHT="light",e.WARM="warm",e.RESIN="resin",e.RESIN2="resin2",e.RESIN3="resin3",e.GREEN="green",e.CHERRY_BLOSSOM="cherry-blossom",e.AUTUMN="autumn",e.SNOW="snow",e.DARK_GREEN="dark-green",e.DARK="dark",e.CUSTOM_IMAGE="custom-image"}(h||(t.BoardImageType=h={})),function(e){e.STANDARD="standard",e.GREEN="green",e.CHERRY_BLOSSOM="cherry-blossom",e.AUTUMN="autumn",e.SNOW="snow",e.DARK_GREEN="dark-green",e.DARK="dark",e.CUSTOM_IMAGE="custom-image"}(p||(t.PieceStandImageType=p={})),function(e){e.NONE="none",e.STANDARD="standard"}(d||(t.BoardLabelType=d={})),function(e){e.NONE="none",e.STANDARD="standard"}(f||(t.LeftSideControlType=f={})),function(e){e.NONE="none",e.STANDARD="standard"}(m||(t.RightSideControlType=m={})),function(e){e.SINGLE="single",e.DOUBLE="double"}(g||(t.TabPaneType=g={})),function(e){e.RECORD_INFO="recordInfo",e.COMMENT="comment",e.SEARCH="search",e.PV="pv",e.CHART="chart",e.PERCENTAGE_CHART="percentageChart",e.MONITOR="monitor",e.INVISIBLE="invisible"}(y||(t.Tab=y={})),function(e){e.STRICT="strict",e.AUTO_DETECT="autoDetect"}(S||(t.TextDecodingRule=S={})),function(e){e.BLACK="black",e.EACH="each"}(E||(t.EvaluationViewFrom=E={})),function(e){e.ALL="all",e.ONLY_USER="onlyUser"}(v||(t.ClockSoundTarget=v={})),function(e){e.BOOK="book",e.GAME="game"}(T||(t.PositionImageStyle=T={})),function(e){e.GOTHIC="gothic",e.MINCHO="mincho"}(b||(t.PositionImageTypeface=b={})),function(e){e.PLAYER_NAME="playerName",e.SENTE_GOTE="senteGote",e.MOCHIGOMA="mochigoma",e.TSUME_SHOGI="tsumeShogi",e.NONE="none"}(A||(t.PositionImageHandLabelType=A={})),function(e){e.W400="400",e.W400X="400+",e.W700X="700+"}(P||(t.PositionImageFontWeight=P={})),t.buildUpdatedAppSetting=function(e,t){const s={...e,...t};if(s.tabPaneType===g.DOUBLE)switch(s.tab){case y.COMMENT:s.tab=y.RECORD_INFO;break;case y.CHART:case y.PERCENTAGE_CHART:s.tab=y.PV}return 0!==e.topPaneHeightPercentage&&100!==e.topPaneHeightPercentage&&(s.topPanePreviousHeightPercentage=e.topPaneHeightPercentage),C(s)||s},t.defaultAppSetting=I,t.normalizeAppSetting=function(e,t){const s={...I(t),...e};if((s.autoSaveDirectory.endsWith("\\")||s.autoSaveDirectory.endsWith("/"))&&(s.autoSaveDirectory=s.autoSaveDirectory.slice(0,-1)),!e.pieceStandImage)switch(e.boardImage){default:s.pieceStandImage=p.STANDARD;break;case h.DARK:s.pieceStandImage=p.DARK;break;case h.GREEN:s.pieceStandImage=p.GREEN;break;case h.CHERRY_BLOSSOM:s.pieceStandImage=p.CHERRY_BLOSSOM}if(s.tab===y.INVISIBLE&&(s.tab=y.RECORD_INFO),!e.positionImageFontWeight)if(e.positionImageTypeface===b.MINCHO)s.positionImageFontWeight=P.W700X;else s.positionImageFontWeight=P.W400X;return s},t.validateAppSetting=C,t.getPieceImageURLTemplate=function(e){switch(e.pieceImage){case l.HITOMOJI_DARK:return"./piece/hitomoji_dark/${piece}.png";case l.HITOMOJI_GOTHIC:return"./piece/hitomoji_gothic/${piece}.png";case l.HITOMOJI_GOTHIC_DARK:return"./piece/hitomoji_gothic_dark/${piece}.png";case l.CUSTOM_IMAGE:if(e.croppedPieceImageBaseURL){const t=e.croppedPieceImageQuery?`?${e.croppedPieceImageQuery}`:"";return e.croppedPieceImageBaseURL+"/${piece}.png"+t}}return"./piece/hitomoji/${piece}.png"}},6360:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBatchConversionSetting=t.normalizeBatchConversionSetting=t.defaultBatchConversionSetting=t.FileNameConflictAction=t.DestinationType=void 0;const r=s(1220),n=s(6664);var i,o;function a(){return{source:"",sourceFormats:[r.RecordFileFormat.KIF,r.RecordFileFormat.KIFU,r.RecordFileFormat.KI2,r.RecordFileFormat.KI2U,r.RecordFileFormat.CSA,r.RecordFileFormat.JKF],subdirectories:!0,destinationType:i.DIRECTORY,destination:"",createSubdirectories:!0,destinationFormat:r.RecordFileFormat.KIF,fileNameConflictAction:o.NUMBER_SUFFIX,singleFileDestination:""}}!function(e){e.DIRECTORY="directory",e.SINGLE_FILE="singleFile"}(i||(t.DestinationType=i={})),function(e){e.OVERWRITE="overwrite",e.NUMBER_SUFFIX="numberSuffix",e.SKIP="skip"}(o||(t.FileNameConflictAction=o={})),t.defaultBatchConversionSetting=a,t.normalizeBatchConversionSetting=function(e){return{...a(),...e}},t.validateBatchConversionSetting=function(e){if(!e.source)return new Error(n.t.sourceDirectoryNotSpecified);if(0===e.sourceFormats.length)return new Error(n.t.sourceFormatsNotSpecified);switch(e.destinationType){case i.DIRECTORY:if(!e.destination)return new Error(n.t.destinationDirectoryNotSpecified);break;case i.SINGLE_FILE:if(!e.singleFileDestination)return new Error(n.t.destinationFileNotSpecified);break;default:return new Error("Invalid destination type.")}}},3397:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decompressCSAGameSettingForCLI=t.compressCSAGameSettingForCLI=t.importCSAGameSettingForCLI=t.exportCSAGameSettingForCLI=t.decryptCSAGameSettingHistory=t.encryptCSAGameSettingHistory=t.normalizeSecureCSAGameSettingHistory=t.defaultSecureCSAGameSettingHistory=t.emptySecureCSAServerSetting=t.appendCSAGameSettingHistory=t.maxServerHistoryLength=t.buildCSAGameSettingByHistory=t.defaultCSAGameSettingHistory=t.validateCSAGameSetting=t.validateCSAServerSetting=t.defaultCSAGameSetting=t.defaultCSAServerSetting=t.CSAProtocolVersion=void 0;const r=s(1316).__importStar(s(7808)),n=s(5300),i=s(6664),o=s(5208),a=s(2228);var c;function l(){return{protocolVersion:c.V121,host:"localhost",port:4081,id:"",password:"",tcpKeepalive:{initialDelay:10}}}function u(e){if(e.protocolVersion!==c.V121&&e.protocolVersion!==c.V121_FLOODGATE&&e.protocolVersion!==c.V121_X1)return new Error(i.t.protocolVersionNotSelected);if(""===e.host)return new Error(i.t.hostNameIsEmpty);if(e.port<0||e.port>65535)return new Error(i.t.invalidPortNumber);if(""===e.id)return new Error(i.t.idIsEmpty);if(e.id.indexOf(" ")>=0)return new Error(i.t.idContainsSpace);if(e.password.indexOf(" ")>=0)return new Error(i.t.passwordContainsSpace);if(e.tcpKeepalive.initialDelay<=0)return new Error(i.t.tcpKeepaliveInitialDelayMustBePositive);if(e.blankLinePing){if(e.blankLinePing.initialDelay<30)return new Error(i.t.blankLinePingInitialDelayMustBeGreaterThanOrEqualTo30);if(e.blankLinePing.interval<30)return new Error(i.t.blankLinePingIntervalMustBeGreaterThanOrEqualTo30)}}function h(){return{protocolVersion:c.V121,host:"",port:0,id:"",tcpKeepalive:{initialDelay:10}}}function p(){return{player:{name:"人",uri:r.ES_HUMAN},serverHistory:[],autoFlip:!0,enableComment:!0,enableAutoSave:!0,repeat:1,autoRelogin:!0,restartPlayerEveryGame:!1}}!function(e){e.V121="v121",e.V121_FLOODGATE="v121_floodgate",e.V121_X1="v121_x1"}(c||(t.CSAProtocolVersion=c={})),t.defaultCSAServerSetting=l,t.defaultCSAGameSetting=function(){return{player:{name:"人",uri:r.ES_HUMAN},server:l(),autoFlip:!0,enableComment:!0,enableAutoSave:!0,repeat:1,autoRelogin:!0,restartPlayerEveryGame:!1}},t.validateCSAServerSetting=u,t.validateCSAGameSetting=function(e){const t=(0,n.validatePlayerSetting)(e.player);if(t)return t;const s=u(e.server);return s||(e.server.protocolVersion!==c.V121&&e.server.protocolVersion!==c.V121_FLOODGATE?new Error("protocolVersion must be v121 or v121_floodgate"):!Number.isInteger(e.repeat)||e.repeat<1?new Error("repeat must be a positive integer"):void 0)},t.defaultCSAGameSettingHistory=function(){return{player:{name:"人",uri:r.ES_HUMAN},serverHistory:[],autoFlip:!0,enableComment:!0,enableAutoSave:!0,repeat:1,autoRelogin:!0,restartPlayerEveryGame:!1}},t.buildCSAGameSettingByHistory=function(e,t){return{player:e.player,server:e.serverHistory?.length>t?e.serverHistory[t]:l(),autoFlip:e.autoFlip,enableComment:e.enableComment,enableAutoSave:e.enableAutoSave,repeat:e.repeat,autoRelogin:e.autoRelogin,restartPlayerEveryGame:e.restartPlayerEveryGame}},t.maxServerHistoryLength=10,t.appendCSAGameSettingHistory=function(e,s){const r=[s.server];for(const n of e.serverHistory)if(n.protocolVersion===s.server.protocolVersion&&n.host===s.server.host&&n.port===s.server.port&&n.id===s.server.id&&n.password===s.server.password&&n.tcpKeepalive.initialDelay===s.server.tcpKeepalive.initialDelay&&!n.blankLinePing==!s.server.blankLinePing&&n.blankLinePing?.initialDelay===s.server.blankLinePing?.initialDelay&&n.blankLinePing?.interval===s.server.blankLinePing?.interval||r.push(n),r.length===t.maxServerHistoryLength)break;return{player:s.player,serverHistory:r,autoFlip:s.autoFlip,enableComment:s.enableComment,enableAutoSave:s.enableAutoSave,repeat:s.repeat,autoRelogin:s.autoRelogin,restartPlayerEveryGame:s.restartPlayerEveryGame}},t.emptySecureCSAServerSetting=h,t.defaultSecureCSAGameSettingHistory=p,t.normalizeSecureCSAGameSettingHistory=function(e){const t=[];for(const s of e.serverHistory)t.push({...h(),...s});return{...p(),...e,player:{...(0,n.defaultPlayerSetting)(),...e.player},serverHistory:t}},t.encryptCSAGameSettingHistory=function(e,t){const s=[];for(const r of e.serverHistory){const e={protocolVersion:r.protocolVersion,host:r.host,port:r.port,id:r.id,tcpKeepalive:r.tcpKeepalive};r.blankLinePing&&(e.blankLinePing=r.blankLinePing),t?e.encryptedPassword=t(r.password):e.password=r.password,s.push(e)}return{player:e.player,serverHistory:s,autoFlip:e.autoFlip,enableComment:e.enableComment,enableAutoSave:e.enableAutoSave,repeat:e.repeat,autoRelogin:e.autoRelogin,restartPlayerEveryGame:e.restartPlayerEveryGame}},t.decryptCSAGameSettingHistory=function(e,t){const s=[];for(const r of e.serverHistory){const e={protocolVersion:r.protocolVersion,host:r.host,port:r.port,id:r.id,password:t&&r.encryptedPassword?t(r.encryptedPassword):r.password||"",tcpKeepalive:r.tcpKeepalive};r.blankLinePing&&(e.blankLinePing=r.blankLinePing),s.push(e)}return{player:e.player,serverHistory:s,autoFlip:e.autoFlip,enableComment:e.enableComment,enableAutoSave:e.enableAutoSave,repeat:e.repeat,autoRelogin:e.autoRelogin,restartPlayerEveryGame:e.restartPlayerEveryGame}},t.exportCSAGameSettingForCLI=function(e,t){return r.isUSIEngine(e.player.uri)&&e.player.usi?{usi:(0,o.exportUSIEngineSettingForCLI)(e.player.usi),server:e.server,saveRecordFile:e.enableAutoSave,enableComment:e.enableComment,recordFileNameTemplate:t.recordFileNameTemplate,recordFileFormat:t.defaultRecordFileFormat,repeat:e.repeat,autoRelogin:e.autoRelogin,restartPlayerEveryGame:e.restartPlayerEveryGame}:new Error("player must be USI engine.")},t.importCSAGameSettingForCLI=function(e,t){const s=(0,o.importUSIEngineSettingForCLI)(e.usi,t);return{player:{name:e.usi.name,uri:s.uri,usi:s},server:e.server,autoFlip:!0,enableComment:e.enableComment,enableAutoSave:e.saveRecordFile,repeat:e.repeat,autoRelogin:e.autoRelogin,restartPlayerEveryGame:e.restartPlayerEveryGame}},t.compressCSAGameSettingForCLI=async function(e){const t=JSON.stringify(e),s=new CompressionStream("gzip");new Blob([t]).stream().pipeThrough(s);const r=await new Response(s.readable).arrayBuffer();return(0,a.base64Encode)(new Uint8Array(r))},t.decompressCSAGameSettingForCLI=async function(e){const t=new Uint8Array((0,a.base64Decode)(e)),s=new DecompressionStream("gzip");return new Blob([t]).stream().pipeThrough(s),JSON.parse(await new Response(s.readable).text())}},9600:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateGameSettingForWeb=t.validateGameSetting=t.normalizeGameSetting=t.defaultGameSetting=t.DeclarableJishogiRules=t.JishogiRule=t.defaultTimeLimitSetting=void 0;const r=s(5300),n=s(6664);function i(){return{timeSeconds:0,byoyomi:30,increment:0}}var o;function a(){return{black:(0,r.defaultPlayerSetting)(),white:(0,r.defaultPlayerSetting)(),timeLimit:{timeSeconds:0,byoyomi:30,increment:0},enableEngineTimeout:!1,humanIsFront:!0,enableComment:!0,enableAutoSave:!0,repeat:1,swapPlayers:!1,maxMoves:1e3,jishogiRule:o.GENERAL27}}function c(e){return 0===e.timeLimit.timeSeconds&&0===e.timeLimit.byoyomi?new Error(n.t.bothTimeLimitAndByoyomiAreNotSet):0!==e.timeLimit.byoyomi&&0!==e.timeLimit.increment?new Error(n.t.canNotUseByoyomiWithFischer):e.whiteTimeLimit&&0===e.whiteTimeLimit.timeSeconds&&0===e.whiteTimeLimit.byoyomi?new Error(n.t.bothTimeLimitAndByoyomiAreNotSet):e.whiteTimeLimit&&0!==e.whiteTimeLimit.byoyomi&&0!==e.whiteTimeLimit.increment?new Error(n.t.canNotUseByoyomiWithFischer):void 0}t.defaultTimeLimitSetting=i,function(e){e.NONE="none",e.GENERAL24="general24",e.GENERAL27="general27",e.TRY="try"}(o||(t.JishogiRule=o={})),t.DeclarableJishogiRules=[o.GENERAL24,o.GENERAL27],t.defaultGameSetting=a,t.normalizeGameSetting=function(e){return{...a(),...e,black:{...(0,r.defaultPlayerSetting)(),...e.black},white:{...(0,r.defaultPlayerSetting)(),...e.white},timeLimit:{timeSeconds:0,byoyomi:30,increment:0,...e.timeLimit}}},t.validateGameSetting=c,t.validateGameSettingForWeb=function(e){const t=c(e);return t||(e.enableAutoSave?new Error("自動保存はWeb版で利用できません。"):void 0)}},1460:(e,t)=>{"use strict";function s(){return{}}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeMateSearchSetting=t.defaultMateSearchSetting=void 0,t.defaultMateSearchSetting=s,t.normalizeMateSearchSetting=function(e){return{...e}}},5300:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePlayerSetting=t.defaultPlayerSetting=void 0;const r=s(1316),n=s(5208),i=r.__importStar(s(7808));t.defaultPlayerSetting=function(){return{name:"人",uri:i.ES_HUMAN}},t.validatePlayerSetting=function(e){if(!e.name)return new Error("player name is required");if(!e.uri)return new Error("player URI is required");if(i.isUSIEngine(e.uri)){if(!e.usi)return new Error("USI is required");const t=(0,n.validateUSIEngineSetting)(e.usi);if(t)return t}}},9672:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateResearchSetting=t.normalizeResearchSetting=t.defaultResearchSetting=void 0;const r=s(6664);function n(){return{enableMaxSeconds:!1,maxSeconds:10}}t.defaultResearchSetting=n,t.normalizeResearchSetting=function(e){return{enableMaxSeconds:!1,maxSeconds:10,...e,secondaries:e.secondaries?.filter((e=>!!e.usi))}},t.validateResearchSetting=function(e){if(!e.usi)return new Error(r.t.engineNotSelected);for(const t of e.secondaries||[])if(!t.usi)return new Error(r.t.engineNotSelected)}},5208:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importUSIEngineSettingForCLI=t.exportUSIEngineSettingForCLI=t.USIEngineSettings=t.validateUSIEngineSetting=t.mergeUSIEngineSetting=t.duplicateEngineSetting=t.emptyUSIEngineSetting=t.USIEngineLabel=t.getUSIEngineOptionCurrentValue=t.MultiPV=t.NumberOfThreads=t.Threads=t.USIMultiPV=t.USIHash=t.USIPonder=void 0;const r=s(1316),n=s(7808),i=r.__importStar(s(7808)),o=s(6664);function a(e){if(e)return void 0!==e.value?e.value:void 0!==e.default?"string"!==e.type&&"filename"!==e.type||"<empty>"!==e.default?e.default:"":void 0}var c;function l(){return{uri:"",name:"",defaultName:"",author:"",path:"",options:{},labels:{game:!0,research:!0,mate:!0},enableEarlyPonder:!1}}function u(e){const t=a(e);switch(e.type){case"check":if("true"!==t&&"false"!==t)return!1;break;case"spin":if("number"!=typeof t)return!1;if(void 0!==e.min&&t<e.min)return!1;if(void 0!==e.max&&t>e.max)return!1;break;case"combo":case"string":case"filename":if("string"!=typeof t)return!1;break;case"button":if(void 0!==t)return!1}return!0}t.USIPonder="USI_Ponder",t.USIHash="USI_Hash",t.USIMultiPV="USI_MultiPV",t.Threads="Threads",t.NumberOfThreads="NumberOfThreads",t.MultiPV="MultiPV",t.getUSIEngineOptionCurrentValue=a,function(e){e.GAME="game",e.RESEARCH="research",e.MATE="mate"}(c||(t.USIEngineLabel=c={})),t.emptyUSIEngineSetting=l,t.duplicateEngineSetting=function(e){const t=JSON.parse(JSON.stringify(e));return t.uri=(0,n.issueEngineURI)(),t.name=o.t.copyOf(t.name),t},t.mergeUSIEngineSetting=function(e,t){e.uri=t.uri,e.name=t.name,Object.keys(t.options).forEach((s=>{e.options[s]&&(e.options[s].value=t.options[s].value)})),e.labels=t.labels,e.enableEarlyPonder=t.enableEarlyPonder},t.validateUSIEngineSetting=function(e){if(!i.isUSIEngine(e.uri))return new Error("invalid engine URI");if(!e.name&&!e.defaultName)return new Error("engine name is required");if(!e.path)return new Error("engine path is required");for(const t in e.options){const s=e.options[t];if(!["check","spin","combo","button","string","filename"].includes(s.type))return new Error(`invalid option type: name=[${t}] type=[${s.type}]`);if(!u(s))return new Error(`invalid option value: name=[${t}] type=[${s.type}] value=[${s.value}]`)}};class h{engines={};constructor(e){if(e){const t=JSON.parse(e);for(const e in t.engines)if(i.isUSIEngine(e)){const s={uri:"",name:"",defaultName:"",author:"",path:"",options:{},labels:{game:!0,research:!0,mate:!0},enableEarlyPonder:!1},r=t.engines[e];this.engines[e]={...s,...r,uri:e,labels:{...s.labels,...r.labels}}}}}hasEngine(e){return!!this.engines[e]}addEngine(e){this.engines[e.uri]=e}updateEngine(e){return!!this.engines[e.uri]&&(this.engines[e.uri]=e,!0)}removeEngine(e){return!!this.engines[e]&&(delete this.engines[e],!0)}getEngine(e){return this.engines[e]}get engineList(){return Object.values(this.engines).sort(((e,t)=>e.name!==t.name?e.name>t.name?1:-1:e.defaultName!==t.defaultName?e.defaultName>t.defaultName?1:-1:e.uri>t.uri?1:-1))}get json(){return JSON.stringify(this)}get jsonWithIndent(){return JSON.stringify(this,void 0,2)}getClone(){return new h(this.json)}filterByLabel(e){const t=new h;for(const s of this.engineList)s.labels&&s.labels[e]&&t.addEngine(s);return t}}t.USIEngineSettings=h,t.exportUSIEngineSettingForCLI=function(e){const t={};for(const s of Object.values(e.options)){const e=a(s);if(void 0!==e)if("check"===s.type)t[s.name]={type:s.type,value:"true"===e};else t[s.name]={type:s.type,value:e}}return{name:e.name,path:e.path,options:t,enableEarlyPonder:e.enableEarlyPonder}},t.importUSIEngineSettingForCLI=function(e,t){const s={};for(const t in e.options){const r=e.options[t];s[t]={name:t,type:r.type,order:0,value:!0===r.value?"true":!1===r.value?"false":r.value,vars:[]}}return{uri:t||(0,n.issueEngineURI)(),name:e.name,defaultName:e.name,author:"",path:e.path,options:s,enableEarlyPonder:e.enableEarlyPonder,labels:{}}}},188:(e,t)=>{"use strict";function s(){return{width:1e3,height:800,maximized:!1,fullscreen:!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.buildWindowSetting=t.normalizeWindowSetting=t.defaultWindowSetting=void 0,t.defaultWindowSetting=s,t.normalizeWindowSetting=function(e){return{width:1e3,height:800,maximized:!1,fullscreen:!1,...e}},t.buildWindowSetting=function(e,t){const s=!t.isMaximized()&&!t.isFullScreen();return{height:s?t.getBounds().height:e.height,width:s?t.getBounds().width:e.width,maximized:t.isMaximized(),fullscreen:t.isFullScreen()}}},7808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.issueEngineURI=t.isUSIEngine=t.ES_USI_ENGINE=t.ES_HUMAN=void 0,t.ES_HUMAN="es://human",t.ES_USI_ENGINE="es://usi-engine/",t.isUSIEngine=function(e){return e.startsWith(t.ES_USI_ENGINE)},t.issueEngineURI=function(){const e=Date.now(),s=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16);return t.ES_USI_ENGINE+`${e}/${s}`}},9795:(e,t)=>{"use strict";let s,r;function n(e){if(s)return;const t=e?.type||"sine",r=e?.frequency||440,n=e?.volume||2,i=new AudioContext,o=i.createOscillator(),a=i.createGain();o.connect(a),a.connect(i.destination),o.type=t,o.frequency.value=r,a.gain.value=.005*n,o.onended=()=>{a.disconnect(i.destination),o.disconnect(a)},o.start(i.currentTime),e?.time&&o.stop(i.currentTime+e.time),e?.time||(s=o)}Object.defineProperty(t,"__esModule",{value:!0}),t.playPieceBeat=t.stopBeep=t.beepUnlimited=t.beepShort=void 0,t.beepShort=function(e){n({type:"sine",frequency:e.frequency,time:.1,volume:e.volume})},t.beepUnlimited=function(e){n({type:"sine",frequency:e.frequency,volume:e.volume})},t.stopBeep=function(){s&&(s.stop(),s=void 0)},t.playPieceBeat=function(e){const t=Date.now();if(r&&t<r+200)return;const s=new Audio("sound/piece.mp3");s.volume=.01*e,s.play(),r=t}},244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lazy=void 0;t.Lazy=class{func;timeout;after(e,t){this.func=e,this.timeout||(this.timeout=setTimeout(this.invoke.bind(this),t))}invoke(){this.func&&this.func(),this.clear()}clear(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0),this.func=void 0}}},9224:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRecordFileName=t.defaultRecordFileNameTemplate=t.join=t.dirname=void 0;const r=s(8596),n=s(7700);function i(e){return e.endsWith("/")||e.endsWith("\\")?e.substring(0,e.length-1):e}function o(e){return e.replaceAll(/[<>:"/\\|?*]/g,"_")}t.dirname=function(e){return e.substring(0,Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\")))},t.join=function(e,...t){const s=function(e){return e.indexOf("/")>=0?"/":"\\"}(e);let r=i(e);for(const e of t)r+=e.startsWith("/")||e.startsWith("\\")?e:s+e,r=i(r);return r},t.defaultRecordFileNameTemplate="{datetime}{_title}{_sente}{_gote}",t.generateRecordFileName=function(e,s,i){const a={datetime:function(e){const t=e.getStandardMetadata(r.RecordMetadataKey.START_DATETIME)||e.getStandardMetadata(r.RecordMetadataKey.DATE);return t?t.trim().replaceAll(" ","_").replaceAll("/","").replaceAll(":",""):(0,n.getDateString)().replaceAll("/","")}(e),title:e.getStandardMetadata(r.RecordMetadataKey.TITLE)||e.getStandardMetadata(r.RecordMetadataKey.TOURNAMENT)||e.getStandardMetadata(r.RecordMetadataKey.OPUS_NAME)||e.getStandardMetadata(r.RecordMetadataKey.OPUS_NO)||e.getStandardMetadata(r.RecordMetadataKey.PLACE)||e.getStandardMetadata(r.RecordMetadataKey.POSTED_ON)||e.getStandardMetadata(r.RecordMetadataKey.AUTHOR)||"",sente:(0,r.getBlackPlayerName)(e)||"",gote:(0,r.getWhitePlayerName)(e)||"",hex5:Math.floor(1048576*Math.random()).toString(16).toUpperCase().padStart(5,"0")};for(const e in a){const t=a[e];a["_"+e]=t?"_"+t:"",a[e+"_"]=t?t+"_":""}let c=s||t.defaultRecordFileNameTemplate;c=o(c);for(const e in a){const t=a[e];c=o(c.replaceAll("{"+e+"}",t))}return c=c.trim(),c+=i?i.startsWith(".")?i:"."+i:".kif",c}},3112:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectUnsupportedRecordProperties=void 0;const r=s(1220);t.detectUnsupportedRecordProperties=function(e,t){const s={branch:!1,comment:!1,bookmark:!1,time:!1};if(t===r.RecordFileFormat.KIF||t===r.RecordFileFormat.KIFU)return s;switch(e.forEach((e=>{e.branch&&(s.branch=!0),e.comment&&(s.comment=!0),e.bookmark&&(s.bookmark=!0),e.elapsedMs&&(s.time=!0)})),t){case r.RecordFileFormat.KI2:case r.RecordFileFormat.KI2U:s.branch=!1,s.comment=!1,s.bookmark=!1;break;case r.RecordFileFormat.CSA:s.comment=!1,s.time=!1;break;case r.RecordFileFormat.SFEN:break;case r.RecordFileFormat.JKF:s.branch=!1,s.comment=!1,s.time=!1}return s}},7008:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNative=t.bridge=t.appInfo=void 0;const r=s(5208),n=s(443);function i(){return window}t.appInfo=i().electronShogi||{},t.bridge=i().electronShogiAPI||n.webAPI;const o={...t.bridge,fetchInitialRecordFileRequest:async()=>JSON.parse(await t.bridge.fetchInitialRecordFileRequest()),exportCaptureAsPNG:e=>t.bridge.exportCaptureAsPNG(e.json),exportCaptureAsJPEG:e=>t.bridge.exportCaptureAsJPEG(e.json),convertRecordFiles:async e=>JSON.parse(await t.bridge.convertRecordFiles(JSON.stringify(e))),loadAppSetting:async()=>JSON.parse(await t.bridge.loadAppSetting()),saveAppSetting:e=>t.bridge.saveAppSetting(JSON.stringify(e)),loadBatchConversionSetting:async()=>JSON.parse(await t.bridge.loadBatchConversionSetting()),saveBatchConversionSetting:e=>t.bridge.saveBatchConversionSetting(JSON.stringify(e)),loadResearchSetting:async()=>JSON.parse(await t.bridge.loadResearchSetting()),saveResearchSetting:e=>t.bridge.saveResearchSetting(JSON.stringify(e)),loadAnalysisSetting:async()=>JSON.parse(await t.bridge.loadAnalysisSetting()),saveAnalysisSetting:e=>t.bridge.saveAnalysisSetting(JSON.stringify(e)),loadGameSetting:async()=>JSON.parse(await t.bridge.loadGameSetting()),saveGameSetting:e=>t.bridge.saveGameSetting(JSON.stringify(e)),loadCSAGameSettingHistory:async()=>JSON.parse(await t.bridge.loadCSAGameSettingHistory()),saveCSAGameSettingHistory:e=>t.bridge.saveCSAGameSettingHistory(JSON.stringify(e)),loadMateSearchSetting:async()=>JSON.parse(await t.bridge.loadMateSearchSetting()),saveMateSearchSetting:e=>t.bridge.saveMateSearchSetting(JSON.stringify(e)),loadRecordFileHistory:async()=>JSON.parse(await t.bridge.loadRecordFileHistory()),loadUSIEngineSetting:async()=>new r.USIEngineSettings(await t.bridge.loadUSIEngineSetting()),saveUSIEngineSetting:e=>t.bridge.saveUSIEngineSetting(e.json),getUSIEngineInfo:async(e,s)=>JSON.parse(await t.bridge.getUSIEngineInfo(e,s)),usiLaunch:(e,s)=>t.bridge.usiLaunch(JSON.stringify(e),s),usiReady:e=>t.bridge.usiReady(e),usiGo:(e,s,r,n,i)=>t.bridge.usiGo(e,s,JSON.stringify(r),n,i),usiGoPonder:(e,s,r,n,i)=>t.bridge.usiGoPonder(e,s,JSON.stringify(r),n,i),usiPonderHit:(e,s,r,n)=>t.bridge.usiPonderHit(e,JSON.stringify(s),r,n),csaLogin:e=>t.bridge.csaLogin(JSON.stringify(e)),collectSessionStates:async()=>JSON.parse(await t.bridge.collectSessionStates()),setupPrompt:async(e,s)=>JSON.parse(await t.bridge.setupPrompt(e,s)),getVersionStatus:async()=>JSON.parse(await t.bridge.getVersionStatus())};t.default=o,t.isNative=function(){return!!i().electronShogiAPI}},443:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webAPI=void 0;const r=s(3680),n=s(4680),i=s(9600),o=s(9672),a=s(5208),c=s(2580),l=s(6664),u=s(3397),h=s(1460),p=s(6360),d=s(112);var f;!function(e){e.APP_SETTING="appSetting",e.RESEARCH_SETTING="researchSetting",e.BATCH_CONVERSION_SETTING="batchConversionSetting",e.ANALYSIS_SETTING="analysisSetting",e.GAME_SETTING="gameSetting",e.MATE_SEARCH_SETTING="mateSearchSetting",e.CSA_GAME_SETTING_HISTORY="csaGameSettingHistory"}(f||(f={})),t.webAPI={fetchInitialRecordFileRequest:async()=>"null",updateAppState(){},openExplorer(){},openWebBrowser(e){window.open(e,"_blank")},async showOpenRecordDialog(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async openRecord(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async showSaveRecordDialog(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async saveRecord(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async showSelectFileDialog(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async showSelectDirectoryDialog(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async showSelectImageDialog(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async showSaveMergedRecordDialog(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async cropPieceImage(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async exportCaptureAsPNG(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async exportCaptureAsJPEG(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async convertRecordFiles(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async loadAppSetting(){const e=localStorage.getItem(f.APP_SETTING);return e?JSON.stringify({...(0,n.defaultAppSetting)(),...JSON.parse(e)}):JSON.stringify((0,n.defaultAppSetting)())},async saveAppSetting(e){localStorage.setItem(f.APP_SETTING,e)},async loadBatchConversionSetting(){const e=localStorage.getItem(f.BATCH_CONVERSION_SETTING);return e?JSON.stringify({...(0,p.defaultBatchConversionSetting)(),...JSON.parse(e)}):JSON.stringify((0,p.defaultBatchConversionSetting)())},async saveBatchConversionSetting(e){localStorage.setItem(f.BATCH_CONVERSION_SETTING,e)},async loadResearchSetting(){const e=localStorage.getItem(f.RESEARCH_SETTING);return e?JSON.stringify({...(0,o.defaultResearchSetting)(),...JSON.parse(e)}):JSON.stringify((0,o.defaultResearchSetting)())},async saveResearchSetting(e){localStorage.setItem(f.RESEARCH_SETTING,e)},async loadAnalysisSetting(){const e=localStorage.getItem(f.ANALYSIS_SETTING);return e?JSON.stringify({...(0,r.defaultAnalysisSetting)(),...JSON.parse(e)}):JSON.stringify((0,r.defaultAnalysisSetting)())},async saveAnalysisSetting(e){localStorage.setItem(f.ANALYSIS_SETTING,e)},async loadGameSetting(){const e=localStorage.getItem(f.GAME_SETTING);return e?JSON.stringify({...(0,i.defaultGameSetting)(),...JSON.parse(e)}):JSON.stringify((0,i.defaultGameSetting)())},async saveGameSetting(e){localStorage.setItem(f.GAME_SETTING,e)},async loadCSAGameSettingHistory(){const e=localStorage.getItem(f.CSA_GAME_SETTING_HISTORY);return e?JSON.stringify({...(0,u.defaultCSAGameSettingHistory)(),...JSON.parse(e)}):JSON.stringify((0,u.defaultCSAGameSettingHistory)())},async saveCSAGameSettingHistory(e){localStorage.setItem(f.CSA_GAME_SETTING_HISTORY,e)},async loadMateSearchSetting(){const e=localStorage.getItem(f.MATE_SEARCH_SETTING);return e?JSON.stringify({...(0,h.defaultMateSearchSetting)(),...JSON.parse(e)}):JSON.stringify((0,h.defaultMateSearchSetting)())},async saveMateSearchSetting(e){localStorage.setItem(f.MATE_SEARCH_SETTING,e)},loadRecordFileHistory:async()=>JSON.stringify((0,d.getEmptyHistory)()),addRecordFileHistory(){},async clearRecordFileHistory(){},async saveRecordFileBackup(){},async loadRecordFileBackup(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},loadUSIEngineSetting:async()=>(new a.USIEngineSettings).json,async saveUSIEngineSetting(){},async showSelectUSIEngineDialog(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async getUSIEngineInfo(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async sendUSISetOption(){},async usiLaunch(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async usiReady(){},async usiGo(){},async usiGoPonder(){},async usiPonderHit(){},async usiGoInfinite(){},async usiGoMate(){},async usiStop(){},async usiGameover(){},async usiQuit(){},async csaLogin(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async csaLogout(){},async csaAgree(){},async csaMove(){},async csaResign(){},async csaWin(){},async csaStop(){},collectSessionStates:async()=>JSON.stringify({usiSessions:[],csaSessions:[]}),async setupPrompt(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},async openPrompt(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},invokePromptCommand(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},isEncryptionAvailable:async()=>!1,getVersionStatus:async()=>JSON.stringify({}),sendTestNotification(){throw new Error(l.t.thisFeatureNotAvailableOnWebApp)},openLogFile(){},log(e,t){switch(e){case c.LogLevel.DEBUG:console.debug(t);break;case c.LogLevel.INFO:console.log(t);break;case c.LogLevel.WARN:console.warn(t);break;case c.LogLevel.ERROR:console.error(t)}},onClosable(){},onClose(){},onSendError(){},onMenuEvent(){},updateAppSetting(){},onOpenRecord(){},onUSIBestMove(){},onUSICheckmate(){},onUSICheckmateNotImplemented(){},onUSICheckmateTimeout(){},onUSINoMate(){},onUSIInfo(){},onUSIPonderInfo(){},onCSAGameSummary(){},onCSAReject(){},onCSAStart(){},onCSAMove(){},onCSAGameResult(){},onCSAClose(){},onPromptCommand(){}}},5155:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPlayerBuilder=void 0;const r=s(1316),n=s(9336),i=s(2044),o=r.__importStar(s(7808));t.defaultPlayerBuilder=function(e){return{async build(t,s){if(t.uri===o.ES_HUMAN)return n.humanPlayer;if(o.isUSIEngine(t.uri)&&t.usi){const r=new i.USIPlayer(t.usi,e??10,s);return await r.launch(),r}throw new Error("defaultPlayerBuilder#build: 予期せぬプレイヤーURIです: "+t.uri)}}}},9336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanPlayer=t.HumanPlayer=void 0;class s{searchHandler;isEngine(){return!1}async readyNewGame(){}async startSearch(e,t,s,r,n,i){this.searchHandler=i}async startPonder(){}async startMateSearch(){}async stop(){}async gameover(){}async close(){this.searchHandler=void 0}doMove(e){const t=this.searchHandler;this.searchHandler=void 0,t&&t.onMove(e)}resign(){const e=this.searchHandler;this.searchHandler=void 0,e&&e.onResign()}win(){const e=this.searchHandler;this.searchHandler=void 0,e&&e.onWin()}}t.HumanPlayer=s,t.humanPlayer=new s},2044:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onUSIPonderInfo=t.onUSIInfo=t.onUSINoMate=t.onUSICheckmateTimeout=t.onUSICheckmateNotImplemented=t.onUSICheckmate=t.onUSIBestMove=t.USIPlayer=void 0;const r=s(1316).__importDefault(s(7008)),n=s(7836),i=s(5208),o=s(8596),a=s(8508);t.USIPlayer=class{setting;timeoutSeconds;onSearchInfo;_sessionID=0;usi;position;searchHandler;mateHandler;ponder;inPonder=!1;info;usiInfoTimeout;constructor(e,t,s){this.setting=e,this.timeoutSeconds=t,this.onSearchInfo=s}get name(){return this.setting.name}get sessionID(){return this._sessionID}async launch(){this._sessionID=await r.default.usiLaunch(this.setting,this.timeoutSeconds),c[this.sessionID]=this}isEngine(){return!0}async readyNewGame(){await r.default.usiReady(this.sessionID)}async startSearch(e,t,s,n,i,o){this.clearHandlers(),this.searchHandler=o,this.usi=t,this.position=e.clone(),this.inPonder&&this.ponder===this.usi?r.default.usiPonderHit(this.sessionID,s,n,i):(this.info=void 0,await r.default.usiGo(this.sessionID,this.usi,s,n,i)),this.inPonder=!1,this.ponder=void 0}async startPonder(e,t,s,n,o){if("true"!==(0,i.getUSIEngineOptionCurrentValue)(this.setting.options[i.USIPonder]))return;if(this.inPonder)return;const a=t;if(!this.ponder||!this.ponder.startsWith(a))return;const c=e.createMoveByUSI(this.ponder.slice(a.length+1));c&&e.isValidMove(c)&&(this.clearHandlers(),this.usi=this.ponder,this.position=e.clone(),this.position.doMove(c),this.info=void 0,this.inPonder=!0,await r.default.usiGoPonder(this.sessionID,this.ponder,s,n,o))}async startMateSearch(e,t,s){this.clearHandlers(),this.usi=t,this.info=void 0,this.position=e.clone(),this.mateHandler=s,await r.default.usiGoMate(this.sessionID,this.usi)}async startResearch(e,t){this.clearHandlers(),this.usi=t,this.info=void 0,this.position=e.clone(),await r.default.usiGoInfinite(this.sessionID,t)}async stop(){await r.default.usiStop(this.sessionID)}async gameover(e){await r.default.usiGameover(this.sessionID,e)}async close(){this.clearHandlers(),await r.default.usiQuit(this.sessionID),delete c[this.sessionID]}clearHandlers(){this.searchHandler=void 0,this.mateHandler=void 0}onBestMove(e,t,s){const r=this.searchHandler;if(this.clearHandlers(),!r||!this.position)return;if(e!==this.usi)return;if("resign"===t)return void r.onResign();if("win"===t)return void r.onWin();const n=this.position.createMoveByUSI(t);if(!n)return r.onError("エンジンから不明な指し手を受信しました:"+t),void r.onResign();if(this.ponder=s&&`${e} ${t} ${s}`,this.flushUSIInfo(),this.info&&this.info.pv&&this.info.pv.length>=1&&this.info.pv[0].equals(n)){const e={...this.info,pv:this.info.pv.slice(1)};r.onMove(n,e)}else r.onMove(n)}onCheckmate(e,t){if(e!==this.usi||!this.position)return;const s=this.mateHandler;if(this.clearHandlers(),!s)return;const r=this.position,n=[];for(const e of t){const t=r.createMoveByUSI(e);if(!t)return void s.onError("エンジンから不明な指し手を受信しました:"+e);if(n.push(t),!r.doMove(t))return void s.onError("エンジンから無効な指し手を受信しました:"+e)}s.onCheckmate(n)}onCheckmateNotImplemented(){const e=this.mateHandler;this.clearHandlers(),e&&e.onNotImplemented()}onCheckmateTimeout(e){if(e!==this.usi||!this.position)return;const t=this.mateHandler;this.clearHandlers(),t&&t.onTimeout()}onNoMate(e){if(e!==this.usi||!this.position)return;const t=this.mateHandler;this.clearHandlers(),t&&t.onNoMate()}onUSIInfo(e,t){if(e!==this.usi||!this.position)return;if(t.multipv&&1!==t.multipv)return;const s=this.position.color===o.Color.BLACK?1:-1,r=t.pv&&t.pv.length>=1?t.pv:t.currmove?[t.currmove]:void 0,i={usi:e,depth:t.depth,score:t.scoreCP&&t.scoreCP*s,mate:t.scoreMate&&t.scoreMate*s,pv:r&&(0,n.parseUSIPV)(this.position,r)};this.updateUSIInfo(i)}updateUSIInfo(e){this.info=e,this.inPonder||this.usiInfoTimeout||(this.usiInfoTimeout=window.setTimeout((()=>{this.flushUSIInfo()}),500))}flushUSIInfo(){this.usiInfoTimeout&&(clearTimeout(this.usiInfoTimeout),this.usiInfoTimeout=void 0),this.onSearchInfo&&this.info&&this.onSearchInfo(this.info)}};const c={};t.onUSIBestMove=function(e,t,s,r){const n=c[e];n&&n.onBestMove(t,s,r)},t.onUSICheckmate=function(e,t,s){const r=c[e];r&&((0,a.useStore)().updateUSIInfo(e,t,r.name,{pv:s}),r.onCheckmate(t,s))},t.onUSICheckmateNotImplemented=function(e){const t=c[e];t&&t.onCheckmateNotImplemented()},t.onUSICheckmateTimeout=function(e,t){const s=c[e];s&&s.onCheckmateTimeout(t)},t.onUSINoMate=function(e,t){const s=c[e];s&&s.onNoMate(t)},t.onUSIInfo=function(e,t,s){const r=c[e];r&&((0,a.useStore)().updateUSIInfo(e,t,r.name,s),r.onUSIInfo(t,s))},t.onUSIPonderInfo=function(e,t,s){const r=c[e];r&&((0,a.useStore)().updateUSIPonderInfo(e,t,r.name,s),r.onUSIInfo(t,s))}},6616:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnalysisManager=void 0;const r=s(2044),n=s(3680),i=s(8596),o=s(9404),a=s(7556),c=s(8896),l=s(6664);t.AnalysisManager=class{recordManager;researcher;setting=(0,n.defaultAnalysisSetting)();ply;actualMove;lastSearchInfo;searchInfo;timerHandle;onFinish=()=>{};onError=()=>{};constructor(e){this.recordManager=e}on(e,t){switch(e){case"finish":this.onFinish=t;break;case"error":this.onError=t}return this}async start(e){if(!e.usi)throw new Error("エンジンが設定されていません。");await this.setupEngine(e.usi),this.setting=e,this.ply=void 0,this.actualMove=void 0,this.lastSearchInfo=void 0,this.searchInfo=void 0,setTimeout((()=>this.next()))}close(){this.clearTimer(),this.closeEngine().catch((e=>{this.onError(e)}))}async setupEngine(e){if(this.researcher)throw new Error("AnalysisManager#setupEngine: 前回のエンジンが終了していません。数秒待ってからもう一度試してください。");const t=(0,c.useAppSetting)(),s=new r.USIPlayer(e,t.engineTimeoutSeconds,this.updateSearchInfo.bind(this));await s.launch(),await s.readyNewGame(),this.researcher=s}async closeEngine(){this.researcher&&(await this.researcher.close(),this.researcher=void 0)}next(){if(this.clearTimer(),!this.researcher)return this.onError(new Error("エンジンが初期化されていません。")),void this.finish();if(this.lastSearchInfo=this.searchInfo,this.searchInfo=void 0,void 0!==this.ply?this.ply=this.ply+1:this.setting.startCriteria.enableNumber?this.ply=this.setting.startCriteria.number-1:this.ply=0,this.setting.endCriteria.enableNumber&&this.ply>=this.setting.endCriteria.number)return void this.finish();this.recordManager.changePly(this.ply);const e=this.recordManager.record;e.current.ply===this.ply&&(e.current.next||e.current.move instanceof i.Move)?(this.actualMove=e.current.move instanceof i.Move?e.current.move:void 0,this.setTimer(),this.researcher.startResearch(this.recordManager.record.position,this.recordManager.record.usi).catch((e=>{this.onError(e)}))):this.finish()}finish(){this.onFinish(),this.close()}setTimer(){this.timerHandle=window.setTimeout((()=>{this.onResult(),this.next()}),1e3*this.setting.perMoveCriteria.maxSeconds)}clearTimer(){this.timerHandle&&(clearTimeout(this.timerHandle),this.timerHandle=void 0)}onResult(){if(!this.searchInfo||!this.lastSearchInfo)return;const e=this.recordManager.record,t=(0,i.reverseColor)(e.position.color)===i.Color.BLACK?1:-1,s=void 0!==this.searchInfo.score?this.searchInfo.score*t:void 0,r=void 0!==this.searchInfo.score&&void 0!==this.lastSearchInfo.score?(this.searchInfo.score-this.lastSearchInfo.score)*t:void 0,n=this.actualMove&&this.lastSearchInfo.pv?this.actualMove.equals(this.lastSearchInfo.pv[0]):void 0,u=(0,c.useAppSetting)();let h="";if(void 0!==r&&void 0!==s&&!n){const e=function(e,t,s){const r=(0,a.scoreToPercentage)(e,s.coefficientInSigmoid)-(0,a.scoreToPercentage)(t,s.coefficientInSigmoid);if(r>=s.badMoveLevelThreshold4)return l.t.blunder;if(r>=s.badMoveLevelThreshold3)return l.t.mistake;if(r>=s.badMoveLevelThreshold2)return l.t.dubious;if(r>=s.badMoveLevelThreshold1)return l.t.inaccuracy;return null}(s-r,s,u);e&&(h=`【${e}】`)}this.recordManager.appendSearchComment(o.SearchInfoSenderType.RESEARCHER,this.searchInfo,this.setting.commentBehavior,{header:h,engineName:this.setting.usi?.name})}updateSearchInfo(e){this.recordManager.updateSearchInfo(o.SearchInfoSenderType.RESEARCHER,e),this.searchInfo=e}}},1776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BussyStore=void 0;t.BussyStore=class{count=0;get isBussy(){return 0!==this.count}retain(){this.count+=1}release(){this.count-=1}}},8800:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Clock=void 0;t.Clock=class{setting={timeMs:0,byoyomi:0,increment:0};_timeMs=0;_byoyomi=0;_elapsedMs=0;timerHandle=0;timerStart=0;lastTimeMs=0;setup(e){this.setting=e,this._timeMs=e.timeMs||0,this._byoyomi=e.byoyomi||0,this._elapsedMs=0}get time(){return Math.ceil(this._timeMs/1e3)}get timeMs(){return this._timeMs}get byoyomi(){return this._byoyomi}get elapsedMs(){return this._elapsedMs}start(){this.clearTimer(),this.timerStart=Date.now(),this.lastTimeMs=this._timeMs,this._byoyomi=this.setting.byoyomi||0,this._elapsedMs=0,this.timerHandle=window.setInterval((()=>{const e=this.timeMs,t=this.byoyomi;this._elapsedMs=Date.now()-this.timerStart;const s=this.lastTimeMs-this._elapsedMs;s>=0?this._timeMs=s:(this._timeMs=0,this._byoyomi=Math.max(Math.ceil((this.setting.byoyomi||0)+s/1e3),0)),0!==this.timeMs||0!==this.byoyomi?this.fireBeep(e,t):this.timeout()}),100)}fireBeep(e,t){let s=Math.ceil(this.timeMs/1e3),r=Math.ceil(e/1e3);0!==s&&0!==this.byoyomi||(0!==s||0===r?(0!==this.byoyomi&&(s=this.byoyomi,r=t),s!==r&&(s<=5?this.setting.onBeepUnlimited&&this.setting.onBeepUnlimited():(s<=10||20===s||30===s||60===s)&&this.setting.onBeepShort&&this.setting.onBeepShort())):this.setting.onBeepShort&&this.setting.onBeepShort())}pause(){this.clearTimer()}stop(){this.clearTimer(),this.incrementTime()}timeout(){this.clearTimer(),this.setting.onTimeout&&this.setting.onTimeout()}clearTimer(){this.timerHandle&&(window.clearInterval(this.timerHandle),this.timerHandle=0),this.setting.onStopBeep&&this.setting.onStopBeep()}incrementTime(){this._timeMs+=1e3*(this.setting.increment||0)}}},7820:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onCSAClose=t.onCSAGameResult=t.onCSAMove=t.onCSAStart=t.onCSAReject=t.onCSAGameSummary=t.CSAGameManager=t.CSAGameState=t.loginRetryIntervalSeconds=void 0;const r=s(1316).__importDefault(s(7008)),n=s(6656),i=s(5155),o=s(3397),a=s(8596),c=s(3680),l=s(9404),u=s(6664),h=s(8984),p=s(2044);var d,f;t.loginRetryIntervalSeconds=10,function(e){e[e.OFFLINE=0]="OFFLINE",e[e.PLAYER_SETUP=1]="PLAYER_SETUP",e[e.WAITING_LOGIN=2]="WAITING_LOGIN",e[e.LOGIN_FAILED=3]="LOGIN_FAILED",e[e.LOGIN_RETRY_INTERVAL=4]="LOGIN_RETRY_INTERVAL",e[e.READY=5]="READY",e[e.GAME=6]="GAME"}(d||(t.CSAGameState=d={})),function(e){e[e.DO_NOT_RELOGIN=0]="DO_NOT_RELOGIN",e[e.RELOGIN_WITH_INTERVAL=1]="RELOGIN_WITH_INTERVAL",e[e.RELOGIN_IMMEDIATELY=2]="RELOGIN_IMMEDIATELY"}(f||(f={}));t.CSAGameManager=class{recordManager;blackClock;whiteClock;_state=d.OFFLINE;_setting=(0,o.defaultCSAGameSetting)();_sessionID=0;stopRequested=!1;repeat=0;player;gameSummary=(0,n.emptyCSAGameSummary)();searchInfo;playerBuilder=(0,i.defaultPlayerBuilder)();retryTimer;onSaveRecord=()=>{};onGameNext=()=>{};onNewGame=()=>{};onGameEnd=()=>{};onLoginRetry=()=>{};onFlipBoard=()=>{};onPieceBeat=()=>{};onBeepShort=()=>{};onBeepUnlimited=()=>{};onStopBeep=()=>{};onError=()=>{};constructor(e,t,s){this.recordManager=e,this.blackClock=t,this.whiteClock=s}on(e,t){switch(e){case"saveRecord":this.onSaveRecord=t;break;case"gameNext":this.onGameNext=t;break;case"newGame":this.onNewGame=t;break;case"gameEnd":this.onGameEnd=t;break;case"loginRetry":this.onLoginRetry=t;break;case"flipBoard":this.onFlipBoard=t;break;case"pieceBeat":this.onPieceBeat=t;break;case"beepShort":this.onBeepShort=t;break;case"beepUnlimited":this.onBeepUnlimited=t;break;case"stopBeep":this.onStopBeep=t;break;case"error":this.onError=t}return this}get state(){return this._state}get setting(){return this._setting}get sessionID(){return this._sessionID}get usiSessionID(){return this.player instanceof p.USIPlayer?this.player.sessionID:0}get isMyTurn(){return this.recordManager.record.position.color===this.gameSummary.myColor}async login(e,t){if(this.sessionID)throw new Error("CSAGameManager#login: session already exists");if(this._state!==d.OFFLINE)throw new Error("CSAGameManager#login: unexpected state");this._state=d.PLAYER_SETUP,this._setting=e,this.playerBuilder=t,this.repeat=0,this.player=await this.playerBuilder.build(this._setting.player,(e=>this.recordManager.updateSearchInfo(l.SearchInfoSenderType.OPPONENT,e))),this._login().catch(this.onError)}async relogin(){this.setting.restartPlayerEveryGame&&(this._state=d.PLAYER_SETUP,this.player&&(await this.player.close(),this.player=void 0),this.player=await this.playerBuilder.build(this._setting.player,(e=>this.recordManager.updateSearchInfo(l.SearchInfoSenderType.OPPONENT,e)))),await this._login()}async _login(){if(!this.player)throw new Error("CSAGameManager#relogin: player is not initialized");try{this._state=d.PLAYER_SETUP,await this.player.readyNewGame(),this._state=d.WAITING_LOGIN;const e=await r.default.csaLogin(this._setting.server);this._sessionID=e,this._state=d.READY,function(e,t){m[e]=t}(this.sessionID,this),this.onGameNext()}catch(e){throw this._state=d.LOGIN_FAILED,this.close(f.RELOGIN_WITH_INTERVAL),new Error(`CSAGameManager#relogin: ${u.t.failedToStartNewGame}: ${e}`)}}stop(){this.sessionID&&(this.stopRequested=!0,r.default.csaStop(this.sessionID))}logout(){this.close(f.DO_NOT_RELOGIN)}close(e){if(this._state!==d.OFFLINE&&this._state!==d.WAITING_LOGIN){var s;if(this._state===d.GAME&&this.setting.enableAutoSave&&this.onSaveRecord(),this.stopRequested&&(e=f.DO_NOT_RELOGIN,this.stopRequested=!1),this.sessionID&&(s=this.sessionID,delete m[s],r.default.csaLogout(this.sessionID).catch((e=>{this.onError(new Error(`CSAGameManager#close: ${u.t.errorOccuredWhileLogoutFromCSAServer}: ${e}`))})),this._sessionID=0),this.blackClock.stop(),this.whiteClock.stop(),this._state=d.OFFLINE,this.retryTimer&&(clearTimeout(this.retryTimer),this.retryTimer=void 0),e===f.DO_NOT_RELOGIN||this.repeat>=this.setting.repeat)return this.player&&(this.player.close().catch((e=>{this.onError(new Error(`CSAGameManager#close: ${u.t.failedToShutdownEngines}: ${e}`))})),this.player=void 0),void this.onGameEnd();e===f.RELOGIN_IMMEDIATELY?this.relogin().catch(this.onError):(this._state=d.LOGIN_RETRY_INTERVAL,this.onLoginRetry(),this.retryTimer=setTimeout((()=>this.relogin().catch(this.onError)),1e3*t.loginRetryIntervalSeconds))}}onGameSummary(e){this.gameSummary=e;const t=this.recordManager.importRecord(this.gameSummary.position,{type:a.RecordFormatType.CSA});if(t)return this.onError(`CSAGameManager#onGameSummary: ${t}`),void this.close(f.DO_NOT_RELOGIN);this.recordManager.changePly(Number.MAX_SAFE_INTEGER),r.default.csaAgree(this.sessionID,this.gameSummary.id)}onReject(){this.close(f.RELOGIN_WITH_INTERVAL)}onStart(e){this.repeat++,this.onNewGame(this.repeat),this.recordManager.setGameStartMetadata({gameTitle:this.gameSummary.id,blackName:this.gameSummary.blackPlayerName,whiteName:this.gameSummary.whitePlayerName,timeLimit:{timeSeconds:this.gameSummary.totalTime*this.gameSummary.timeUnitMs/1e3,byoyomi:this.gameSummary.byoyomi*this.gameSummary.timeUnitMs/1e3,increment:this.gameSummary.increment*this.gameSummary.timeUnitMs/1e3}}),this.setting.autoFlip&&this.onFlipBoard&&this.onFlipBoard(this.gameSummary.myColor===a.Color.WHITE),this._state=d.GAME,this.next(e)}onMove(e,t){const s=this.isMyTurn,r=(0,a.parseCSAMove)(this.recordManager.record.position,e);r instanceof Error?this.onError(`CSAGameManager#onMove: 解釈できない指し手 [${e}]: ${r.message}`):(this.recordManager.appendMove({move:r,moveOption:{ignoreValidation:!0},elapsedMs:this.parseElapsedMs(e)}),s&&this.searchInfo&&this.recordManager.updateSearchInfo(l.SearchInfoSenderType.PLAYER,this.searchInfo),s&&this.searchInfo&&this.setting.enableComment&&this.recordManager.appendSearchComment(l.SearchInfoSenderType.PLAYER,this.searchInfo,c.CommentBehavior.APPEND),this.onPieceBeat(),this.next(t))}parseElapsedMs(e){const t=/^.*,T([0-9]+)$/.exec(e);return t?Number(parseInt(t[1]))*this.gameSummary.timeUnitMs:0}onGameResult(e,t){if(this.recordManager.appendMove({move:this.gameResultToSpecialMove(e,t)}),this.player){let e;switch(t){case n.CSAGameResult.WIN:e=h.GameResult.WIN;break;case n.CSAGameResult.LOSE:e=h.GameResult.LOSE;break;case n.CSAGameResult.DRAW:case n.CSAGameResult.CENSORED:case n.CSAGameResult.CHUDAN:e=h.GameResult.DRAW}this.player.gameover(e)}this.close(f.RELOGIN_IMMEDIATELY)}gameResultToSpecialMove(e,t){const s=this.recordManager.record.position.color;switch(e){case n.CSASpecialMove.RESIGN:return a.SpecialMoveType.RESIGN;case n.CSASpecialMove.SENNICHITE:return a.SpecialMoveType.REPETITION_DRAW;case n.CSASpecialMove.OUTE_SENNICHITE:case n.CSASpecialMove.ILLEGAL_MOVE:case n.CSASpecialMove.ILLEGAL_ACTION:switch(t){case n.CSAGameResult.WIN:return s===this.gameSummary.myColor?a.SpecialMoveType.FOUL_WIN:a.SpecialMoveType.FOUL_LOSE;case n.CSAGameResult.LOSE:return s===this.gameSummary.myColor?a.SpecialMoveType.FOUL_LOSE:a.SpecialMoveType.FOUL_WIN}break;case n.CSASpecialMove.TIME_UP:return a.SpecialMoveType.TIMEOUT;case n.CSASpecialMove.JISHOGI:return a.SpecialMoveType.ENTERING_OF_KING;case n.CSASpecialMove.MAX_MOVES:return a.SpecialMoveType.IMPASS}return t===n.CSAGameResult.DRAW?a.SpecialMoveType.DRAW:a.SpecialMoveType.INTERRUPT}onClose(){this.close(this.setting.autoRelogin?f.RELOGIN_WITH_INTERVAL:f.DO_NOT_RELOGIN)}next(e){this.blackClock.stop(),this.whiteClock.stop(),this.syncClock(e),this.startClock();this.recordManager.record.position.color===this.gameSummary.myColor?this.startSearch(e):this.startPonder()}syncClock(e){const t={byoyomi:this.gameSummary.byoyomi*this.gameSummary.timeUnitMs/1e3,onBeepShort:()=>this.onBeepShort(),onBeepUnlimited:()=>this.onBeepUnlimited(),onStopBeep:()=>this.onStopBeep()};this.blackClock.setup({...t,timeMs:e.black.time*this.gameSummary.timeUnitMs}),this.whiteClock.setup({...t,timeMs:e.white.time*this.gameSummary.timeUnitMs})}startClock(){this.recordManager.record.position.color===a.Color.BLACK?this.blackClock.start():this.whiteClock.start()}startSearch(e){this.player?this.player.startSearch(this.recordManager.record.position,this.recordManager.record.usi,this.buildTimeLimitSetting(),e.black.time*this.gameSummary.timeUnitMs,e.white.time*this.gameSummary.timeUnitMs,{onMove:this.onPlayerMove.bind(this),onResign:this.onPlayerResign.bind(this),onWin:this.onPlayerWin.bind(this),onError:this.onPlayerError.bind(this)}).catch((e=>{this.onError(new Error(`CSAGameManager#startSearch: ${u.t.failedToSendGoCommand}: ${e}`))})):this.onError("CSAGameManager#startSearch: player is not initialized")}startPonder(){this.player?this.player.startPonder(this.recordManager.record.position,this.recordManager.record.usi,this.buildTimeLimitSetting(),this.blackClock.timeMs,this.whiteClock.timeMs).catch((e=>{this.onError(new Error(`CSAGameManager#startPonder: ${u.t.failedToSendPonderCommand}: ${e}`))})):this.onError("CSAGameManager#startPonder: player is not initialized")}startEarlyPonder(e){if(!this.player)return void this.onError("CSAGameManager#startEarlyPonder: player is not initialized");const t=this.recordManager.record.position.clone(),s=this.recordManager.record.usi+" "+e.usi;t.doMove(e)?this.player.startPonder(t,s,this.buildTimeLimitSetting(),this.blackClock.timeMs,this.whiteClock.timeMs).catch((e=>{this.onError(new Error(`CSAGameManager#startEarlyPonder: ${u.t.failedToSendPonderCommand}: ${e}`))})):this.onError("CSAGameManager#startEarlyPonder: failed to make a move")}buildTimeLimitSetting(){return{timeSeconds:this.gameSummary.totalTime*this.gameSummary.timeUnitMs/1e3,byoyomi:this.gameSummary.byoyomi*this.gameSummary.timeUnitMs/1e3,increment:this.gameSummary.increment*this.gameSummary.timeUnitMs/1e3}}onPlayerMove(e,t){let s,n;switch(this.searchInfo=t,this._setting.server.protocolVersion){case o.CSAProtocolVersion.V121:break;case o.CSAProtocolVersion.V121_FLOODGATE:if(s=t?.score,t?.pv)for(const e of t.pv)n=n?n+" ":"",n+=(0,a.formatCSAMove)(e)}r.default.csaMove(this.sessionID,(0,a.formatCSAMove)(e),s,n),this.setting.player.usi?.enableEarlyPonder&&this.startEarlyPonder(e)}onPlayerResign(){r.default.csaResign(this.sessionID)}onPlayerWin(){r.default.csaWin(this.sessionID)}onPlayerError(e){this.onError(e)}};const m={};t.onCSAGameSummary=function(e,t){const s=m[e];s&&s.onGameSummary(t)},t.onCSAReject=function(e){const t=m[e];t&&t.onReject()},t.onCSAStart=function(e,t){const s=m[e];s&&s.onStart(t)},t.onCSAMove=function(e,t,s){const r=m[e];r&&r.onMove(t,s)},t.onCSAGameResult=function(e,t,s){const r=m[e];r&&r.onGameResult(t,s)},t.onCSAClose=function(e){const t=m[e];t&&t.onClose()}},3176:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorStore=void 0;t.ErrorStore=class{errorCounts={};get errors(){return Object.entries(this.errorCounts).sort((([e],[t])=>e<t?-1:e>t?1:0)).map((([e,t])=>({message:e,count:t})))}get hasError(){return!!Object.keys(this.errorCounts).length}add(e){const t=e instanceof Error?e.message:""+e,s=this.errorCounts[t]||0;this.errorCounts[t]=s+1}clear(){this.errorCounts={}}}},1608:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GameManager=void 0;const r=s(1316),n=s(2580),i=r.__importDefault(s(7008)),o=s(9600),a=s(8596),c=s(3680),l=s(9404),u=s(5155),h=s(8984),p=s(6664);var d;function f(e,t){return{player1:{name:e,win:0},player2:{name:t,win:0},draw:0,invalid:0,total:0}}!function(e){e.IDLE="idle",e.STARTING="STARTING",e.ACTIVE="active",e.PENDING="pending",e.BUSSY="bussy"}(d||(d={}));function m(e,t,s){switch(s){case a.SpecialMoveType.FOUL_WIN:case a.SpecialMoveType.ENTERING_OF_KING:return e==t?h.GameResult.WIN:h.GameResult.LOSE;case a.SpecialMoveType.RESIGN:case a.SpecialMoveType.MATE:case a.SpecialMoveType.TIMEOUT:case a.SpecialMoveType.FOUL_LOSE:case a.SpecialMoveType.TRY:return e==t?h.GameResult.LOSE:h.GameResult.WIN;case a.SpecialMoveType.IMPASS:case a.SpecialMoveType.REPETITION_DRAW:return h.GameResult.DRAW}return null}t.GameManager=class{recordManager;blackClock;whiteClock;state;_setting;startPly=0;repeat=0;blackPlayer;whitePlayer;playerBuilder=(0,u.defaultPlayerBuilder)();_results=f("","");lastEventID;onSaveRecord=()=>{};onGameNext=()=>{};onGameEnd=()=>{};onFlipBoard=()=>{};onPieceBeat=()=>{};onBeepShort=()=>{};onBeepUnlimited=()=>{};onStopBeep=()=>{};onError=()=>{};constructor(e,t,s){this.recordManager=e,this.blackClock=t,this.whiteClock=s,this.state=d.IDLE,this._setting=(0,o.defaultGameSetting)(),this.lastEventID=0}on(e,t){switch(e){case"saveRecord":this.onSaveRecord=t;break;case"gameNext":this.onGameNext=t;break;case"gameEnd":this.onGameEnd=t;break;case"flipBoard":this.onFlipBoard=t;break;case"pieceBeat":this.onPieceBeat=t;break;case"beepShort":this.onBeepShort=t;break;case"beepUnlimited":this.onBeepUnlimited=t;break;case"stopBeep":this.onStopBeep=t;break;case"error":this.onError=t}return this}get setting(){return this._setting}get results(){return this._results}async start(e,t){if(this.state!==d.IDLE)throw Error("GameManager#start: 前回の対局が正常に終了できていません。アプリを再起動してください。");this.state=d.STARTING,this._setting=e,this.playerBuilder=t,this.repeat=0,e.startPosition||(this.startPly=this.recordManager.record.current.ply),this._results=f(e.black.name,e.white.name);try{this.blackPlayer=await this.playerBuilder.build(this.setting.black,(e=>this.updateSearchInfo(l.SearchInfoSenderType.OPPONENT,e))),this.whitePlayer=await this.playerBuilder.build(this.setting.white,(e=>this.updateSearchInfo(l.SearchInfoSenderType.OPPONENT,e))),await this.goNextGame()}catch(e){try{await this.closePlayers()}catch(e){this.onError(e)}finally{this.state=d.IDLE}throw new Error(`GameManager#start: ${p.t.failedToStartNewGame}: ${e}`)}}async goNextGame(){if(void 0===this.blackPlayer||void 0===this.whitePlayer)throw new Error("GameManager#goNextGame: プレイヤーが初期化されていません。");this.repeat++,this.setting.startPosition?this.recordManager.resetByInitialPositionType(this.setting.startPosition):this.recordManager.record.current.ply!==this.startPly&&(this.recordManager.changePly(this.startPly),this.recordManager.removeNextMove()),this.recordManager.setGameStartMetadata({gameTitle:this.setting.repeat>=2?`連続対局 ${this.repeat}/${this.setting.repeat}`:void 0,blackName:this.setting.black.name,whiteName:this.setting.white.name,timeLimit:this.setting.timeLimit}),this.blackClock.setup(this.getBlackClockSetting()),this.whiteClock.setup(this.getWhiteClockSetting()),await Promise.all([this.blackPlayer.readyNewGame(),this.whitePlayer.readyNewGame()]),this.state=d.ACTIVE,this.onGameNext(),this.adjustBoardOrientation(),setTimeout((()=>this.nextMove()))}getCommonClockSetting(){return{timeMs:1e3*this.setting.timeLimit.timeSeconds,byoyomi:this.setting.timeLimit.byoyomi,increment:this.setting.timeLimit.increment,onBeepShort:()=>this.onBeepShort(),onBeepUnlimited:()=>this.onBeepUnlimited(),onStopBeep:()=>this.onStopBeep()}}getBlackClockSetting(){return{...this.getCommonClockSetting(),onTimeout:()=>{this.timeout(a.Color.BLACK)}}}getWhiteClockSetting(){const e={...this.getCommonClockSetting(),onTimeout:()=>{this.timeout(a.Color.WHITE)}};return this.setting.whiteTimeLimit?{...e,timeMs:1e3*this.setting.whiteTimeLimit.timeSeconds,byoyomi:this.setting.whiteTimeLimit.byoyomi,increment:this.setting.whiteTimeLimit.increment}:e}adjustBoardOrientation(){this.setting.humanIsFront&&(!this.blackPlayer?.isEngine()&&this.whitePlayer?.isEngine()?this.onFlipBoard(!1):this.blackPlayer?.isEngine()&&!this.whitePlayer?.isEngine()&&this.onFlipBoard(!0))}nextMove(){if(this.state!==d.ACTIVE)return;if(this._setting.maxMoves&&this.recordManager.record.current.ply>=this._setting.maxMoves)return void this.end(a.SpecialMoveType.IMPASS);this.getActiveClock().start();const e=this.recordManager.record.position.color,t=this.getPlayer(e),s=this.getPlayer((0,a.reverseColor)(e));if(!t||!s)return void this.onError(new Error("GameManager#nextMove: プレイヤーが初期化されていません。"));const r=this.issueEventID();t.startSearch(this.recordManager.record.position,this.recordManager.record.usi,this.setting.timeLimit,this.blackClock.timeMs,this.whiteClock.timeMs,{onMove:(e,t)=>this.onMove(r,e,t),onResign:()=>this.onResign(r),onWin:()=>this.onWin(r),onError:e=>this.onError(e)}).catch((e=>{this.onError(new Error(`GameManager#nextMove: ${p.t.failedToSendGoCommand}: ${e}`))})),s.startPonder(this.recordManager.record.position,this.recordManager.record.usi,this.setting.timeLimit,this.blackClock.timeMs,this.whiteClock.timeMs).catch((e=>{this.onError(new Error(`GameManager#nextMove: ${p.t.failedToSendPonderCommand}: ${e}`))}))}onMove(e,t,s){if(e!==this.lastEventID)return void i.default.log(n.LogLevel.ERROR,"GameManager#onMove: event ID already disabled");if(this.state!==d.ACTIVE)return void i.default.log(n.LogLevel.ERROR,"GameManager#onMove: invalid state: "+this.state);if(!this.recordManager.record.position.isValidMove(t))return this.onError("反則手: "+(0,a.formatMove)(this.recordManager.record.position,t)),void this.end(a.SpecialMoveType.FOUL_LOSE);this.getActiveClock().stop(),this.recordManager.appendMove({move:t,moveOption:{ignoreValidation:!0},elapsedMs:this.getActiveClock().elapsedMs}),s&&this.updateSearchInfo(l.SearchInfoSenderType.PLAYER,s),s&&this.setting.enableComment&&this.recordManager.appendSearchComment(l.SearchInfoSenderType.PLAYER,s,c.CommentBehavior.APPEND),this.onPieceBeat();const r=this.recordManager.record.perpetualCheck;if(r)return r===this.recordManager.record.position.color?void this.end(a.SpecialMoveType.FOUL_LOSE):void this.end(a.SpecialMoveType.FOUL_WIN);this.recordManager.record.repetition?this.end(a.SpecialMoveType.REPETITION_DRAW):this.setting.jishogiRule==o.JishogiRule.TRY&&t.pieceType===a.PieceType.KING&&(t.color===a.Color.BLACK&&t.to.equals(new a.Square(5,1))||t.color===a.Color.WHITE&&t.to.equals(new a.Square(5,9)))?this.end(a.SpecialMoveType.TRY):this.nextMove()}onResign(e){e===this.lastEventID?this.state===d.ACTIVE?this.end(a.SpecialMoveType.RESIGN):i.default.log(n.LogLevel.ERROR,"GameManager#onResign: invalid state: "+this.state):i.default.log(n.LogLevel.ERROR,"GameManager#onResign: event ID already disabled")}onWin(e){if(e!==this.lastEventID)return void i.default.log(n.LogLevel.ERROR,"GameManager#onWin: event ID already disabled");if(this.state!==d.ACTIVE)return void i.default.log(n.LogLevel.ERROR,"GameManager#onWin: invalid state: "+this.state);const t=this.recordManager.record.position;if(this.setting.jishogiRule==o.JishogiRule.NONE||this.setting.jishogiRule==o.JishogiRule.TRY)return void this.end(a.SpecialMoveType.FOUL_LOSE);const s=this.setting.jishogiRule==o.JishogiRule.GENERAL24?a.JishogiDeclarationRule.GENERAL24:a.JishogiDeclarationRule.GENERAL27;switch((0,a.judgeJishogiDeclaration)(s,t,t.color)){case a.JishogiDeclarationResult.WIN:this.end(a.SpecialMoveType.ENTERING_OF_KING);break;case a.JishogiDeclarationResult.DRAW:this.end(a.SpecialMoveType.DRAW);break;case a.JishogiDeclarationResult.LOSE:this.end(a.SpecialMoveType.FOUL_LOSE)}}timeout(e){this.onStopBeep();const t=this.getPlayer(e);t&&t.isEngine()&&!this.setting.enableEngineTimeout?t.stop().catch((e=>{this.onError(new Error(`GameManager#timeout: ${p.t.failedToSendStopCommand}: ${e}`))})):this.end(a.SpecialMoveType.TIMEOUT)}stop(){this.end(a.SpecialMoveType.INTERRUPT)}end(e){if(this.state!==d.ACTIVE&&this.state!==d.PENDING)return;this.state=d.BUSSY;const t=this.recordManager.record.position.color;Promise.resolve().then((()=>this.sendGameResult(t,e))).then((()=>{this.getActiveClock().pause(),this.recordManager.appendMove({move:e,elapsedMs:this.getActiveClock().elapsedMs}),this.recordManager.setGameEndMetadata(),this.addGameResults(t,e),this._setting.enableAutoSave&&this.onSaveRecord();e===a.SpecialMoveType.INTERRUPT||this.repeat>=this.setting.repeat?this.closePlayers().catch((e=>{this.onError(e)})).finally((()=>{this.state=d.IDLE,this.onGameEnd(this.results,e)})):(this.setting.swapPlayers&&this.swapPlayers(),this.state=d.STARTING,this.goNextGame().catch((e=>{this.onError(new Error(`GameManager#end: ${p.t.failedToStartNewGame}: ${e}`))})))})).catch((e=>{this.onError(new Error(`GameManager#end: ${p.t.errorOccuredWhileEndingGame}: ${e}`)),this.state=d.PENDING}))}updateSearchInfo(e,t){this.state===d.ACTIVE&&this.recordManager.updateSearchInfo(e,t)}addGameResults(e,t){switch(m(e,a.Color.BLACK,t)){case h.GameResult.WIN:this._results.player1.win++;break;case h.GameResult.LOSE:this._results.player2.win++;break;case h.GameResult.DRAW:this._results.draw++;break;default:this._results.invalid++}this._results.total++}swapPlayers(){this._setting={...this.setting,black:this.setting.white,white:this.setting.black},this._setting.whiteTimeLimit&&(this._setting={...this.setting,timeLimit:this._setting.whiteTimeLimit,whiteTimeLimit:this._setting.timeLimit}),[this.blackPlayer,this.whitePlayer]=[this.whitePlayer,this.blackPlayer],this._results={...this.results,player1:this.results.player2,player2:this.results.player1}}async sendGameResult(e,t){if(this.blackPlayer){const s=m(e,a.Color.BLACK,t);s&&await this.blackPlayer.gameover(s)}if(this.whitePlayer){const s=m(e,a.Color.WHITE,t);s&&await this.whitePlayer.gameover(s)}}async closePlayers(){const e=[];this.blackPlayer&&(e.push(this.blackPlayer.close()),this.blackPlayer=void 0),this.whitePlayer&&(e.push(this.whitePlayer.close()),this.whitePlayer=void 0);try{await Promise.all(e)}catch(e){throw new Error(`GameManager#closePlayers: ${p.t.failedToShutdownEngines}: ${e}`)}}getPlayer(e){switch(e){case a.Color.BLACK:return this.blackPlayer;case a.Color.WHITE:return this.whitePlayer}}getActiveClock(){switch(this.recordManager.record.position.color){case a.Color.BLACK:return this.blackClock;case a.Color.WHITE:return this.whiteClock}}issueEventID(){return this.lastEventID+=1,this.lastEventID}}},8508:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStore=t.createStore=void 0;const r=s(1316),n=r.__importDefault(s(7008)),i=s(8596),o=s(119),a=s(4680),c=s(9795),l=s(9404),u=s(1608),h=s(9224),p=s(1776),d=s(7188),f=s(5128),m=s(8715),g=s(3176),y=r.__importStar(s(7808)),S=s(6616),E=s(2580),v=s(6416),T=s(7820),b=s(8800),A=s(3397),P=s(5155),I=s(3472),C=s(8896),N=s(6664),_=s(224),w=s(3112),x=s(1220);function O(e){const t=e.total-e.invalid;return[{type:"list",items:[{text:e.player1.name,children:[`勝ち数: ${e.player1.win}`,`勝率: ${(0,v.formatPercentage)(e.player1.win,t,1)}`]},{text:e.player2.name,children:[`勝ち数: ${e.player2.win}`,`勝率: ${(0,v.formatPercentage)(e.player2.win,t,1)}`]},{text:`引き分け: ${e.draw}`},{text:`有効対局数: ${t}`},{text:`無効対局数: ${e.invalid}`}]}]}class M{_bussy=new p.BussyStore;_message=new m.MessageStore;_error=new g.ErrorStore;recordManager=new l.RecordManager;_appState=f.AppState.NORMAL;_isAppSettingDialogVisible=!1;_confirmation;_pvPreview;usiMonitor=new d.USIMonitor;blackClock=new b.Clock;whiteClock=new b.Clock;gameManager=new u.GameManager(this.recordManager,this.blackClock,this.whiteClock);csaGameManager=new T.CSAGameManager(this.recordManager,this.blackClock,this.whiteClock);researchManager=new I.ResearchManager;analysisManager=new S.AnalysisManager(this.recordManager);mateSearchManager=new _.MateSearchManager;_reactive;garbledNotified=!1;constructor(){this.recordManager.on("changePosition",(()=>{this.onUpdatePosition()}));const e=(0,o.reactive)(this),t=(0,C.useAppSetting)();this.gameManager.on("saveRecord",e.onSaveRecord.bind(e)).on("gameNext",e.onGameNext.bind(e)).on("gameEnd",e.onGameEnd.bind(e)).on("flipBoard",e.onFlipBoard.bind(e)).on("pieceBeat",(()=>(0,c.playPieceBeat)(t.pieceVolume))).on("beepShort",this.onBeepShort.bind(this)).on("beepUnlimited",this.onBeepUnlimited.bind(this)).on("stopBeep",c.stopBeep).on("error",e.pushError.bind(e)),this.csaGameManager.on("saveRecord",e.onSaveRecord.bind(e)).on("gameNext",e.onGameNext.bind(e)).on("gameEnd",e.onCSAGameEnd.bind(e)).on("flipBoard",e.onFlipBoard.bind(e)).on("pieceBeat",(()=>(0,c.playPieceBeat)(t.pieceVolume))).on("beepShort",this.onBeepShort.bind(this)).on("beepUnlimited",this.onBeepUnlimited.bind(this)).on("stopBeep",c.stopBeep).on("error",e.pushError.bind(e)),this.researchManager.on("updateSearchInfo",this.onUpdateSearchInfo.bind(e)).on("error",this.pushError.bind(e)),this.analysisManager.on("finish",this.onFinish.bind(e)).on("error",this.pushError.bind(e)),this.mateSearchManager.on("checkmate",this.onCheckmate.bind(e)).on("notImplemented",this.onNotImplemented.bind(e)).on("noMate",this.onNoMate.bind(e)).on("error",this.onCheckmateError.bind(e)),this._reactive=e}get reactive(){return this._reactive}get isBussy(){return this._bussy.isBussy}retainBussyState(){return this._bussy.retain()}releaseBussyState(){return this._bussy.release()}get message(){return this._message.message}get hasMessage(){return this._message.hasMessage}enqueueMessage(e){this._message.enqueue(e)}dequeueMessage(){this._message.dequeue()}get errors(){return this._error.errors}get hasError(){return this._error.hasError}pushError(e){n.default.log(E.LogLevel.ERROR,(0,v.toString)(e)),this._error.add(e)}clearErrors(){this._error.clear()}get record(){return this.recordManager.record}get recordFilePath(){return this.recordManager.recordFilePath}get isRecordFileUnsaved(){return this.recordManager.unsaved}get inCommentPVs(){return this.recordManager.inCommentPVs}updateStandardRecordMetadata(e){this.recordManager.updateStandardMetadata(e)}appendSearchComment(e,t,s,r){this.recordManager.appendSearchComment(e,t,s,r)}appendMovesSilently(e,t){return this.recordManager.appendMovesSilently(e,t)}get appState(){return this._appState}get confirmation(){return this._confirmation?.message}showConfirmation(e){this._confirmation&&n.default.log(E.LogLevel.WARN,`Store#showConfirmation: 確認ダイアログを多重に表示しようとしました。 appState=${this.appState} currentMessage=${this._confirmation.message} newMessage=${e.message}`),this._confirmation={...e,appState:this.appState}}confirmationOk(){if(!this._confirmation)return;const e=this._confirmation;this._confirmation=void 0,this.appState===e.appState?e.onOk&&e.onOk():this.pushError("確認ダイアログ表示中に他の操作が行われたため処理が中止されました。")}confirmationCancel(){this._confirmation=void 0}get pvPreview(){return this._pvPreview}showPVPreviewDialog(e){this._pvPreview=e}closePVPreviewDialog(){this._pvPreview=void 0}showPasteDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.PASTE_DIALOG)}showGameDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.GAME_DIALOG)}showCSAGameDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.CSA_GAME_DIALOG)}showResearchDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.RESEARCH_DIALOG)}showAnalysisDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.ANALYSIS_DIALOG)}showMateSearchDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.MATE_SEARCH_DIALOG)}showUsiEngineManagementDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.USI_ENGINE_SETTING_DIALOG)}showRecordFileHistoryDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.RECORD_FILE_HISTORY_DIALOG)}showBatchConversionDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.BATCH_CONVERSION_DIALOG)}showExportBoardImageDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.EXPORT_POSITION_IMAGE_DIALOG)}showLaunchUSIEngineDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.LAUNCH_USI_ENGINE_DIALOG)}showConnectToCSAServerDialog(){this.appState===f.AppState.NORMAL&&(this._appState=f.AppState.CONNECT_TO_CSA_SERVER_DIALOG)}destroyModalDialog(){this.appState!==f.AppState.PASTE_DIALOG&&this.appState!==f.AppState.GAME_DIALOG&&this.appState!==f.AppState.CSA_GAME_DIALOG&&this.appState!==f.AppState.RESEARCH_DIALOG&&this.appState!==f.AppState.ANALYSIS_DIALOG&&this.appState!==f.AppState.MATE_SEARCH_DIALOG&&this.appState!==f.AppState.USI_ENGINE_SETTING_DIALOG&&this.appState!==f.AppState.EXPORT_POSITION_IMAGE_DIALOG&&this.appState!==f.AppState.RECORD_FILE_HISTORY_DIALOG&&this.appState!==f.AppState.BATCH_CONVERSION_DIALOG&&this.appState!==f.AppState.LAUNCH_USI_ENGINE_DIALOG&&this.appState!==f.AppState.CONNECT_TO_CSA_SERVER_DIALOG||(this._appState=f.AppState.NORMAL)}closeModalDialog(){this.isBussy||this.destroyModalDialog()}get isAppSettingDialogVisible(){return this._isAppSettingDialogVisible}showAppSettingDialog(){this._isAppSettingDialogVisible=!0}closeAppSettingDialog(){this._isAppSettingDialogVisible=!1}get usiMonitors(){return this.usiMonitor.sessions}isPausedResearchEngine(e){return this.researchManager.isPaused(e)}pauseResearchEngine(e){this.researchManager.pause(e)}unpauseResearchEngine(e){this.researchManager.unpause(e)}updateUSIInfo(e,t,s,r){this.recordManager.record.usi===t&&this.usiMonitor.update(e,this.recordManager.record.position,s,r)}updateUSIPonderInfo(e,t,s,r){const o=i.Record.newByUSI(t);if(o instanceof Error)return void n.default.log(E.LogLevel.ERROR,`invalid USI: ${t} (updateUSIPonderInfo)`);const a=o.current.move;a instanceof i.Move&&this.usiMonitor.update(e,o.position,s,r,a)}get blackTime(){return this.blackClock.time}get blackByoyomi(){return this.blackClock.byoyomi}get whiteTime(){return this.whiteClock.time}get whiteByoyomi(){return this.whiteClock.byoyomi}startGame(e){this.appState!==f.AppState.GAME_DIALOG||this.isBussy||(this.retainBussyState(),n.default.saveGameSetting(e).then((()=>{const t=(0,C.useAppSetting)(),s=(0,P.defaultPlayerBuilder)(t.engineTimeoutSeconds);return this.gameManager.start(e,s)})).then((()=>this._appState=f.AppState.GAME)).catch((e=>{this.pushError("対局の初期化中にエラーが出ました: "+e)})).finally((()=>{this.releaseBussyState()})))}get gameSetting(){return this.gameManager.setting}get gameResults(){return this.gameManager.results}get csaGameState(){return this.csaGameManager.state}get csaServerSessionID(){return this.csaGameManager.sessionID}get csaGameSetting(){return this.csaGameManager.setting}get usiSessionIDs(){switch(this.appState){case f.AppState.GAME:throw new Error("not implemented");case f.AppState.CSA_GAME:return[this.csaGameManager.usiSessionID].filter((e=>e));case f.AppState.RESEARCH:case f.AppState.ANALYSIS:throw new Error("not implemented")}return[]}loginCSAGame(e,t){this.appState!==f.AppState.CSA_GAME_DIALOG||this.isBussy||(this.retainBussyState(),Promise.resolve().then((async()=>{if(t.saveHistory){const t=await n.default.loadCSAGameSettingHistory(),s=(0,A.appendCSAGameSettingHistory)(t,e);await n.default.saveCSAGameSettingHistory(s)}})).then((()=>{const t=(0,C.useAppSetting)(),s=(0,P.defaultPlayerBuilder)(t.engineTimeoutSeconds);return this.csaGameManager.login(e,s)})).then((()=>this._appState=f.AppState.CSA_GAME)).catch((e=>{this.pushError("対局の初期化中にエラーが出ました: "+e)})).finally((()=>{this.releaseBussyState()})))}cancelCSAGame(){this.appState===f.AppState.CSA_GAME&&(this.csaGameManager.state!==T.CSAGameState.GAME?(this.csaGameManager.logout(),this._appState=f.AppState.NORMAL):this.pushError("対局が始まっているため通信対局をキャンセルできませんでした。"))}stopGame(){switch(this.appState){case f.AppState.GAME:this.gameManager.setting.repeat>=2?this.showConfirmation({message:N.t.areYouSureWantToQuitGames,onOk:()=>this.gameManager.stop()}):this.gameManager.stop();break;case f.AppState.CSA_GAME:this.showConfirmation({message:N.t.areYouSureWantToRequestQuit,onOk:()=>this.csaGameManager.stop()})}}showGameResults(){if(this.appState!==f.AppState.GAME)return;const e=this.gameManager.results;this.enqueueMessage({text:N.t.gameProgress,attachments:O(e)})}onGameNext(){this.usiMonitor.clear()}onGameEnd(e,t){this.appState===f.AppState.GAME&&(e&&e.total>=2?this.enqueueMessage({text:N.t.allGamesCompleted,attachments:O(e)}):t&&this.enqueueMessage({text:`${N.t.gameEnded}(${(0,i.formatSpecialMove)(t)})`}),this._appState=f.AppState.NORMAL)}onCSAGameEnd(){this.appState===f.AppState.CSA_GAME&&(this._appState=f.AppState.NORMAL)}onFlipBoard(e){(0,C.useAppSetting)().boardFlipping!==e&&(0,C.useAppSetting)().flipBoard()}onSaveRecord(){const e=(0,C.useAppSetting)(),t=(0,h.generateRecordFileName)(this.recordManager.record.metadata,e.recordFileNameTemplate,e.defaultRecordFileFormat),s=(0,h.join)(e.autoSaveDirectory,t);this.saveRecordByPath(s).catch((e=>{this.pushError(e)}))}onBeepShort(){const e=(0,C.useAppSetting)();(e.clockSoundTarget!==a.ClockSoundTarget.ONLY_USER||this.isMovableByUser)&&(0,c.beepShort)({frequency:e.clockPitch,volume:e.clockVolume})}onBeepUnlimited(){const e=(0,C.useAppSetting)();(e.clockSoundTarget!==a.ClockSoundTarget.ONLY_USER||this.isMovableByUser)&&(0,c.beepUnlimited)({frequency:e.clockPitch,volume:e.clockVolume})}doMove(e){if(this.appState!==f.AppState.NORMAL&&this.appState!==f.AppState.RESEARCH)return;if(!this.recordManager.appendMove({move:e}))return;const t=(0,C.useAppSetting)();(0,c.playPieceBeat)(t.pieceVolume)}onFinish(){this.appState===f.AppState.ANALYSIS&&(this._message.enqueue({text:"棋譜解析が終了しました。"}),this._appState=f.AppState.NORMAL)}startResearch(e){this.appState!==f.AppState.RESEARCH_DIALOG||this.isBussy||(this.retainBussyState(),e.usi?n.default.saveResearchSetting(e).then((()=>this.researchManager.launch(e))).then((()=>{this._appState=f.AppState.RESEARCH,this.usiMonitor.clear(),this.onUpdatePosition();const e=(0,C.useAppSetting)();e.tab!==a.Tab.SEARCH&&e.tab!==a.Tab.PV&&e.tab!==a.Tab.CHART&&e.tab!==a.Tab.PERCENTAGE_CHART&&e.tab!==a.Tab.MONITOR&&(0,C.useAppSetting)().updateAppSetting({tab:a.Tab.PV})})).catch((e=>{this.pushError("検討の初期化中にエラーが出ました: "+e)})).finally((()=>{this.releaseBussyState()})):this.pushError(new Error("エンジンが設定されていません。")))}stopResearch(){this.appState===f.AppState.RESEARCH&&(this.researchManager.close(),this._appState=f.AppState.NORMAL)}onUpdateSearchInfo(e,t){this.recordManager.updateSearchInfo(e,t)}startAnalysis(e){this.appState!==f.AppState.ANALYSIS_DIALOG||this.isBussy||(this.retainBussyState(),n.default.saveAnalysisSetting(e).then((()=>this.analysisManager.start(e))).then((()=>{this._appState=f.AppState.ANALYSIS,this.usiMonitor.clear()})).catch((e=>{this.pushError("検討の初期化中にエラーが出ました: "+e)})).finally((()=>{this.releaseBussyState()})))}stopAnalysis(){this.appState===f.AppState.ANALYSIS&&(this.analysisManager.close(),this._appState=f.AppState.NORMAL)}startMateSearch(e){this.appState!==f.AppState.MATE_SEARCH_DIALOG||this.isBussy||(this.retainBussyState(),e.usi?n.default.saveMateSearchSetting(e).then((()=>this.mateSearchManager.start(e,this.recordManager.record))).then((()=>{this._appState=f.AppState.MATE_SEARCH,this.usiMonitor.clear();const e=(0,C.useAppSetting)();e.tab!==a.Tab.SEARCH&&e.tab!==a.Tab.PV&&(0,C.useAppSetting)().updateAppSetting({tab:a.Tab.SEARCH})})).catch((e=>{this.pushError("詰将棋探索の初期化中にエラーが出ました: "+e)})).finally((()=>{this.releaseBussyState()})):this.pushError(new Error("エンジンが設定されていません。")))}stopMateSearch(){this.appState===f.AppState.MATE_SEARCH&&(this.mateSearchManager.close(),this._appState=f.AppState.NORMAL)}onCheckmate(e){if(this.appState!==f.AppState.MATE_SEARCH)return;this._appState=f.AppState.NORMAL;const t=this.recordManager.record.position;this.showConfirmation({message:N.t.mateInNPlyDoYouWantToDisplay(e.length),onOk:()=>{this.showPVPreviewDialog({position:t,mate:e.length,pv:e})}})}onNotImplemented(){this.appState===f.AppState.MATE_SEARCH&&(this.pushError(new Error(N.t.thisEngineNotSupportsMateSearch)),this._appState=f.AppState.NORMAL)}onNoMate(){this.appState===f.AppState.MATE_SEARCH&&(this.enqueueMessage({text:N.t.noMateFound}),this._appState=f.AppState.NORMAL)}onCheckmateError(e){this.appState===f.AppState.MATE_SEARCH&&(this.pushError(e),this._appState=f.AppState.NORMAL)}onUpdatePosition(){this.researchManager&&this.researchManager.updatePosition(this.recordManager.record)}resetRecord(){this.appState==f.AppState.NORMAL&&this.showConfirmation({message:N.t.areYouSureWantToClearRecord,onOk:()=>{this.recordManager.reset()}})}updateRecordComment(e){this.recordManager.updateComment(e)}updateRecordBookmark(e){this.recordManager.updateBookmark(e)}insertSpecialMove(e){this.appState!==f.AppState.NORMAL&&this.appState!==f.AppState.RESEARCH||this.recordManager.appendMove({move:e})}startPositionEditing(){this.appState===f.AppState.NORMAL&&this.showConfirmation({message:N.t.areYouSureWantToClearRecord,onOk:()=>{this._appState=f.AppState.POSITION_EDITING,this.recordManager.resetByCurrentPosition()}})}endPositionEditing(){this.appState===f.AppState.POSITION_EDITING&&(this._appState=f.AppState.NORMAL)}initializePositionBySFEN(e){this.appState==f.AppState.POSITION_EDITING&&this.showConfirmation({message:N.t.areYouSureWantToDiscardPosition,onOk:()=>{this.recordManager.resetBySFEN(e)}})}changeTurn(){this.appState==f.AppState.POSITION_EDITING&&this.recordManager.swapNextTurn()}editPosition(e){this.appState===f.AppState.POSITION_EDITING&&this.recordManager.changePosition(e)}changePly(e){this.appState!==f.AppState.NORMAL&&this.appState!==f.AppState.RESEARCH||this.recordManager.changePly(e)}changeBranch(e){this.appState!==f.AppState.NORMAL&&this.appState!==f.AppState.RESEARCH||this.recordManager.changeBranch(e)}swapWithNextBranch(){return this.recordManager.swapWithNextBranch()}swapWithPreviousBranch(){return this.recordManager.swapWithPreviousBranch()}removeCurrentMove(){this.appState!==f.AppState.NORMAL&&this.appState!==f.AppState.RESEARCH||(this.recordManager.record.current.isLastMove?this.recordManager.removeCurrentMove():this.showConfirmation({message:N.t.areYouSureWantToDeleteFollowingMove(this.recordManager.record.current.ply),onOk:()=>{this.recordManager.removeCurrentMove()}}))}jumpToBookmark(e){return(this.appState===f.AppState.NORMAL||this.appState===f.AppState.RESEARCH)&&this.recordManager.jumpToBookmark(e)}copyRecordKIF(){const e=(0,C.useAppSetting)(),t=(0,i.exportKIF)(this.recordManager.record,{returnCode:e.returnCode});navigator.clipboard.writeText(t)}copyRecordKI2(){const e=(0,C.useAppSetting)(),t=(0,i.exportKI2)(this.recordManager.record,{returnCode:e.returnCode});navigator.clipboard.writeText(t)}copyRecordCSA(){const e=(0,C.useAppSetting)(),t=(0,i.exportCSA)(this.recordManager.record,{returnCode:e.returnCode});navigator.clipboard.writeText(t)}copyRecordUSIBefore(){const e=(0,C.useAppSetting)(),t=this.recordManager.record.getUSI({startpos:e.enableUSIFileStartpos,resign:e.enableUSIFileResign});navigator.clipboard.writeText(t)}copyRecordUSIAll(){const e=(0,C.useAppSetting)(),t=this.recordManager.record.getUSI({startpos:e.enableUSIFileStartpos,resign:e.enableUSIFileResign,allMoves:!0});navigator.clipboard.writeText(t)}copyBoardSFEN(){const e=this.recordManager.record.sfen;navigator.clipboard.writeText(e)}copyRecordJKF(){const e=(0,i.exportJKFString)(this.recordManager.record);navigator.clipboard.writeText(e)}pasteRecord(e){if(this.appState!==f.AppState.NORMAL)return;const t=this.recordManager.importRecord(e);t&&this.pushError(t)}openRecord(e,t){this.appState!==f.AppState.NORMAL||this.isBussy?this.pushError(N.t.pleaseEndActiveFeaturesBeforeOpenRecord):(this.retainBussyState(),Promise.resolve().then((()=>e||n.default.showOpenRecordDialog())).then((e=>{if(!e)return;const t=(0,C.useAppSetting)().textDecodingRule==a.TextDecodingRule.AUTO_DETECT;return n.default.openRecord(e).then((s=>{const r=this.recordManager.importRecordFromBuffer(s,e,{autoDetect:t});return r&&Promise.reject(r)}))})).then((()=>{t?.ply&&this.recordManager.changePly(t.ply)})).catch((e=>{this.pushError("棋譜の読み込み中にエラーが出ました: "+e)})).finally((()=>{this.releaseBussyState()})))}saveRecord(e){this.appState!==f.AppState.NORMAL||this.isBussy||(this.retainBussyState(),Promise.resolve().then((()=>{const t=this.recordManager.recordFilePath;if(e?.overwrite&&t)return t;const s=(0,C.useAppSetting)(),r=t||(0,h.generateRecordFileName)(this.recordManager.record.metadata,s.recordFileNameTemplate,s.defaultRecordFileFormat);return n.default.showSaveRecordDialog(r)})).then((e=>{if(e)return this.saveRecordByPath(e,{detectGarbled:!0}).then((()=>{const t=(0,x.detectRecordFileFormatByPath)(e),s=(0,w.detectUnsupportedRecordProperties)(this.recordManager.record,t),r=Object.entries(s).filter((([,e])=>e)).map((([e])=>{switch(e){case"branch":return N.t.branches;case"comment":return N.t.comments;case"bookmark":return N.t.bookmark;case"time":return N.t.elapsedTime}})).map((e=>({text:e})));r.length&&this.enqueueMessage({text:N.t.followingDataNotSavedBecauseNotSupporetedBy(t),attachments:[{type:"list",items:r}]})}))})).catch((e=>{this.pushError(e)})).finally((()=>{this.releaseBussyState()})))}async saveRecordByPath(e,t){const s=(0,C.useAppSetting)(),r=this.recordManager.exportRecordAsBuffer(e,{returnCode:s.returnCode,detectGarbled:t?.detectGarbled});if(r instanceof Error)throw r;try{await n.default.saveRecord(e,r.data),r.garbled&&!this.garbledNotified&&(this.enqueueMessage({text:`${N.t.recordSavedWithGarbledCharacters}\n${N.t.pleaseConsiderToUseKIFU}\n${N.t.youCanChangeDefaultRecordFileFormatFromAppSettings}`}),this.garbledNotified=!0)}catch(e){throw new Error(`${N.t.failedToSaveRecord}: ${e}`)}}restoreFromBackup(e){this.appState!==f.AppState.RECORD_FILE_HISTORY_DIALOG||this.isBussy||(this.retainBussyState(),n.default.loadRecordFileBackup(e).then((e=>{const t=this.recordManager.importRecord(e,{type:i.RecordFormatType.KIF,markAsSaved:!0});if(t)return Promise.reject(t);this._appState=f.AppState.NORMAL})).catch((e=>{this.pushError(e)})).finally((()=>{this.releaseBussyState()})))}showJishogiPoints(){const e=this.recordManager.record.position,t=(0,i.countJishogiDeclarationPoint)(e,i.Color.BLACK),s=(0,i.judgeJishogiDeclaration)(i.JishogiDeclarationRule.GENERAL24,e,i.Color.BLACK),r=(0,i.judgeJishogiDeclaration)(i.JishogiDeclarationRule.GENERAL27,e,i.Color.BLACK),n=(0,i.countJishogiDeclarationPoint)(e,i.Color.WHITE),o=(0,i.judgeJishogiDeclaration)(i.JishogiDeclarationRule.GENERAL24,e,i.Color.WHITE),a=(0,i.judgeJishogiDeclaration)(i.JishogiDeclarationRule.GENERAL27,e,i.Color.WHITE);this.enqueueMessage({text:N.t.jishogiPoints,attachments:[{type:"list",items:[{text:N.t.sente,children:[`Points: ${t}`,`Rule-24: ${s.toUpperCase()}`,`Rule-27: ${r.toUpperCase()}`]},{text:N.t.gote,children:[`Points: ${n}`,`Rule-24: ${o.toUpperCase()}`,`Rule-27: ${a.toUpperCase()}`]}]}]})}get isMovableByUser(){switch(this.appState){case f.AppState.NORMAL:case f.AppState.RESEARCH:return!0;case f.AppState.GAME:return(this.recordManager.record.position.color===i.Color.BLACK?this.gameManager.setting.black.uri:this.gameManager.setting.white.uri)===y.ES_HUMAN;case f.AppState.CSA_GAME:return this.csaGameManager.isMyTurn&&this.csaGameManager.setting.player.uri===y.ES_HUMAN}return!1}async onMainWindowClose(){this.retainBussyState();try{await this.recordManager.saveBackup()}finally{this.releaseBussyState()}}}function k(){return(new M).reactive}let L;t.createStore=k,t.useStore=function(){return L||(L=k()),L}},224:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MateSearchManager=void 0;const r=s(2044),n=s(8896);t.MateSearchManager=class{engine=null;onNotImplemented=()=>{};onCheckmate=()=>{};onTimeout=()=>{};onNoMate=()=>{};onError=()=>{};on(e,t){switch(e){case"checkmate":this.onCheckmate=t;break;case"notImplemented":this.onNotImplemented=t;break;case"timeout":this.onTimeout=t;break;case"noMate":this.onNoMate=t;break;case"error":this.onError=t}return this}async start(e,t){if(void 0===e.usi)throw new Error("MateSearchManager#start: USIエンジンの設定は必須です。");const s=(0,n.useAppSetting)();this.engine=new r.USIPlayer(e.usi,s.engineTimeoutSeconds);try{await this.engine.launch(),await this.engine.readyNewGame(),await this.engine.startMateSearch(t.position,t.usi,{onCheckmate:e=>{this.close(),this.onCheckmate(e)},onNotImplemented:()=>{this.close(),this.onNotImplemented()},onTimeout:()=>{this.close(),this.onTimeout()},onNoMate:()=>{this.close(),this.onNoMate()},onError:e=>{this.close(),this.onError(e)}})}catch(e){throw this.close(),e}}close(){this.engine&&this.engine.close().then((()=>{this.engine=null})).catch((e=>{this.onError(e)}))}}},8715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageStore=void 0;t.MessageStore=class{_queue=[];get message(){return this._queue[0]}get hasMessage(){return 0!==this._queue.length}enqueue(e){this._queue.push(e)}dequeue(){this._queue.shift()}}},9404:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecordManager=t.SearchInfoSenderType=void 0;const r=s(1316),n=s(7700),i=s(8596),o=s(7556),a=s(3680),c=s(6664),l=s(6664),u=s(1220),h=s(7836),p=r.__importDefault(s(7008)),d=s(8896),f=s(2580);var m;function g(e){const t=/^\*詰み=(先手勝ち|後手勝ち)(?::([0-9]+)手)?/.exec(e);if(t)return Number(t[2]||h.SCORE_MATE_INFINITE)*("先手勝ち"===t[1]?1:-1)}function y(e){const t=/^#詰み=(先手勝ち|後手勝ち)(?::([0-9]+)手)?/.exec(e);if(t)return Number(t[2]||h.SCORE_MATE_INFINITE)*("先手勝ち"===t[1]?1:-1)}function S(e){const t=/^\*評価値=([+-]?[.0-9]+)/.exec(e);return t?Number(t[1]):void 0}function E(e){const t=/^#評価値=([+-]?[.0-9]+)/.exec(e);return t?Number(t[1]):void 0}function v(e){const t=/^\* *([+-]?[.0-9]+)/.exec(e);return t?Number(t[1]):void 0}function T(e){e.forEach((e=>{const t=e.customData||{},s=e.comment.split("\n");for(const e of s){const s=g(e);void 0!==s&&(t.playerSearchInfo={...t.playerSearchInfo,mate:s});const r=y(e);void 0!==r&&(t.researchInfo={...t.researchInfo,mate:r});const n=S(e)||v(e);void 0!==n&&(t.playerSearchInfo={...t.playerSearchInfo,score:n});const i=E(e);void 0!==i&&(t.researchInfo={...t.researchInfo,score:i})}e.customData=t}))}function b(e,t){return t.split("\n").filter((e=>e.match(/^[#*]読み筋=/)||e.match(/^\* -?[0-9]+ /))).map((t=>t.startsWith("* ")?function(e,t){const s=t.indexOf(" ",t.indexOf(" ")+1)+1,r=[],n=e.clone();for(let e=s;e<t.length;e+=8){const s=t.substring(e,e+7),o=(0,i.parseCSAMove)(n,s);if(o instanceof Error||!n.doMove(o,{ignoreValidation:!1}))break;r.push(o)}return r}(e,t):(0,i.parsePV)(e,t.substring(5)))).filter((e=>0!==e.length))}!function(e){e[e.PLAYER=0]="PLAYER",e[e.OPPONENT=1]="OPPONENT",e[e.RESEARCHER=2]="RESEARCHER",e[e.RESEARCHER_2=3]="RESEARCHER_2",e[e.RESEARCHER_3=4]="RESEARCHER_3",e[e.RESEARCHER_4=5]="RESEARCHER_4"}(m||(t.SearchInfoSenderType=m={}));t.RecordManager=class{_record=new i.Record;_recordFilePath;_unsaved=!1;onChangePosition=()=>{};get record(){return this._record}get recordFilePath(){return this._recordFilePath}get unsaved(){return this._unsaved}updateRecordFilePath(e){e!==this._recordFilePath&&(this._recordFilePath=e,p.default.addRecordFileHistory(e))}async saveBackup(){if(!this.unsaved)return;const e=(0,i.exportKIF)(this.record,{returnCode:(0,d.useAppSetting)().returnCode});await p.default.saveRecordFileBackup(e)}saveBackupOnBackground(){this.saveBackup().catch((e=>{p.default.log(f.LogLevel.ERROR,`failed to save backup: ${e}`)}))}reset(){this.saveBackupOnBackground(),this._record.clear(),this._unsaved=!1,this._recordFilePath=void 0}resetByInitialPositionType(e){this.resetBySFEN((0,i.initialPositionTypeToSFEN)(e))}resetBySFEN(e){const t=new i.Position;return!!t.resetBySFEN(e)&&(this.saveBackupOnBackground(),this._record.clear(t),this._unsaved=!1,this._recordFilePath=void 0,!0)}resetByCurrentPosition(){this.saveBackupOnBackground(),this._record.clear(this._record.position),this._unsaved=!1,this._recordFilePath=void 0}importRecord(e,t){let s;switch(t?.type||(0,i.detectRecordFormat)(e)){case i.RecordFormatType.SFEN:{const t=i.Position.newBySFEN(e);s=t?new i.Record(t):new Error(c.t.failedToParseSFEN);break}case i.RecordFormatType.USI:s=i.Record.newByUSI(e);break;case i.RecordFormatType.KIF:s=(0,i.importKIF)(e);break;case i.RecordFormatType.KI2:s=(0,i.importKI2)(e);break;case i.RecordFormatType.CSA:s=(0,i.importCSA)(e);break;case i.RecordFormatType.JKF:s=(0,i.importJKFString)(e);break;default:s=new Error(c.t.failedToDetectRecordFormat)}if(s instanceof Error)return(0,l.localizeError)(s);this.saveBackupOnBackground(),this._record=s,this.bindRecordHandlers(),this._unsaved=!t?.markAsSaved,this._recordFilePath=void 0,T(this._record)}importRecordFromBuffer(e,t,s){const r=(0,u.detectRecordFileFormatByPath)(t);if(!r)return new Error(`${c.t.unknownFileExtension}: ${t}`);const n=(0,u.importRecordFromBuffer)(e,r,s);if(n instanceof Error)return(0,l.localizeError)(n);this.saveBackupOnBackground(),this._record=n,this.bindRecordHandlers(),this._unsaved=!1,this.updateRecordFilePath(t),T(this._record)}exportRecordAsBuffer(e,t){const s=(0,u.detectRecordFileFormatByPath)(e);if(!s)return new Error(`${c.t.unknownFileExtension}: ${e}`);const r=(0,u.exportRecordAsBuffer)(this._record,s,t);return this._unsaved=!1,this.updateRecordFilePath(e),r}swapNextTurn(){const e=this.record.position.clone();e.setColor((0,i.reverseColor)(e.color)),this._record.clear(e),this._unsaved=!0,this._recordFilePath=void 0}changePosition(e){const t=this.record.position.clone();t.edit(e),this._record.clear(t),this._unsaved=!0,this._recordFilePath=void 0}changePly(e){this._record.goto(e)}changeBranch(e){return this._record.switchBranchByIndex(e)}swapWithNextBranch(){return!!this._record.swapWithNextBranch()&&(this._unsaved=!0,!0)}swapWithPreviousBranch(){return!!this._record.swapWithPreviousBranch()&&(this._unsaved=!0,!0)}removeCurrentMove(){return!!this._record.removeCurrentMove()&&(this._unsaved=!0,!0)}removeNextMove(){return!!this._record.removeNextMove()&&(this._unsaved=!0,!0)}jumpToBookmark(e){return this._record.jumpToBookmark(e)}updateComment(e){this._record.current.comment=e,this._unsaved=!0}updateBookmark(e){this._record.current.bookmark=e,this._unsaved=!0}appendComment(e,t){if(!e)return;const s=this._record.current.comment,r=this.record.current.comment?"\n":"";switch(t){case a.CommentBehavior.NONE:break;case a.CommentBehavior.INSERT:this._record.current.comment=e+r+s;break;case a.CommentBehavior.APPEND:this._record.current.comment=s+r+e;break;case a.CommentBehavior.OVERWRITE:this._record.current.comment=e}this._unsaved=!0}appendSearchComment(e,t,s,r){let n=function(e,t,s,r){const n=t===m.PLAYER?"*":"#";let a="";s.mate&&(a+=`${n}詰み=${s.mate>=0?"先手勝ち":"後手勝ち"}`,Math.abs(s.mate)!==h.SCORE_MATE_INFINITE&&(a+=`:${Math.abs(s.mate)}手`),a+="\n");return void 0!==s.score&&(a+=(0,o.getSituationText)(s.score)+"\n",a+=`${n}評価値=${s.score}\n`),s.pv&&0!==s.pv.length&&(a+=`${n}読み筋=${(0,i.formatPV)(e,s.pv)}\n`),s.depth&&(a+=`${n}深さ=${s.depth}\n`),a&&r?.engineName&&(a+=`${n}エンジン=${r.engineName}\n`),a}(this.record.position,e,t,r);r?.header&&(n=r.header+"\n"+n),this.appendComment(n,s),this._unsaved=!0}get inCommentPVs(){return b(this.record.position,this.record.current.comment)}setGameStartMetadata(e){var t;e.gameTitle&&this._record.metadata.setStandardMetadata(i.RecordMetadataKey.TITLE,e.gameTitle),e.blackName&&this._record.metadata.setStandardMetadata(i.RecordMetadataKey.BLACK_NAME,e.blackName),e.whiteName&&this._record.metadata.setStandardMetadata(i.RecordMetadataKey.WHITE_NAME,e.whiteName),this._record.metadata.setStandardMetadata(i.RecordMetadataKey.DATE,(0,n.getDateString)()),this._record.metadata.setStandardMetadata(i.RecordMetadataKey.START_DATETIME,(0,n.getDateTimeString)()),e.timeLimit&&this._record.metadata.setStandardMetadata(i.RecordMetadataKey.TIME_LIMIT,(t=e.timeLimit,(0,i.secondsToMSS)(t.timeSeconds)+"+"+String(t.byoyomi).padStart(2,"0"))),this._unsaved=!0}setGameEndMetadata(){this._record.metadata.setStandardMetadata(i.RecordMetadataKey.END_DATETIME,(0,n.getDateTimeString)()),this._unsaved=!0}updateSearchInfo(e,t){const s=this.record.current.customData||{};switch(e){case m.PLAYER:s.playerSearchInfo=t;break;case m.OPPONENT:s.opponentSearchInfo=t;break;case m.RESEARCHER:(t.depth||0)>=(s.researchInfo?.depth||0)&&(s.researchInfo=t);break;case m.RESEARCHER_2:(t.depth||0)>=(s.researchInfo2?.depth||0)&&(s.researchInfo2=t);break;case m.RESEARCHER_3:(t.depth||0)>=(s.researchInfo3?.depth||0)&&(s.researchInfo3=t);break;case m.RESEARCHER_4:(t.depth||0)>=(s.researchInfo4?.depth||0)&&(s.researchInfo4=t)}this._record.current.customData=s}appendMove(e){return!!this._record.append(e.move,e.moveOption)&&(void 0!==e.elapsedMs&&this._record.current.setElapsedMs(e.elapsedMs),this._unsaved=!0,!0)}appendMovesSilently(e,t){this.unbindRecordHandlers();try{let s=0;const r=this._record.current.ply;for(const r of e){if(!this._record.append(r,t))break;s++}return this._record.goto(r),this._unsaved=!0,s}finally{this.bindRecordHandlers()}}updateStandardMetadata(e){this._record.metadata.setStandardMetadata(e.key,e.value),this._unsaved=!0}on(e,t){if("changePosition"===e)this.onChangePosition=t,this.bindRecordHandlers()}bindRecordHandlers(){this._record.on("changePosition",this.onChangePosition)}unbindRecordHandlers(){this._record.on("changePosition",(()=>{}))}}},3472:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResearchManager=void 0;const r=s(9672),n=s(2044),i=s(9404),o=s(8896),a=s(244);t.ResearchManager=class{setting=(0,r.defaultResearchSetting)();engines=[];onUpdateSearchInfo=()=>{};onError=()=>{};pausedEngineMap={};record;lazyPositionUpdate=new a.Lazy;maxSecondsTimer;on(e,t){switch(e){case"updateSearchInfo":this.onUpdateSearchInfo=t;break;case"error":this.onError=t}return this}async launch(e){if(this.setting=e,void 0===e.usi)throw new Error("ResearchManager#launch: USIエンジンの設定は必須です。");for(const t of e.secondaries||[])if(void 0===t.usi)throw new Error("ResearchManager#launch: USIエンジンの設定は必須です。");if(this.engines.length>0)throw new Error("ResearchManager#launch: 前回のエンジンが終了していません。数秒待ってからもう一度試してください。");const t=(0,o.useAppSetting)(),s=[e.usi,...e.secondaries?.map((e=>e.usi))||[]].filter((e=>!!e));this.engines=s.map(((e,s)=>{const r=function(e){switch(e){case 0:return i.SearchInfoSenderType.RESEARCHER;case 1:return i.SearchInfoSenderType.RESEARCHER_2;case 2:return i.SearchInfoSenderType.RESEARCHER_3;case 3:return i.SearchInfoSenderType.RESEARCHER_4;default:return}}(s);return new n.USIPlayer(e,t.engineTimeoutSeconds,(e=>{void 0!==r&&this.onUpdateSearchInfo(r,e)}))}));try{await Promise.all(this.engines.map((e=>e.launch()))),await Promise.all(this.engines.map((e=>e.readyNewGame())))}catch(e){throw this.close(),e}}updatePosition(e){this.lazyPositionUpdate.after((()=>{this.engines.forEach((t=>{this.pausedEngineMap[t.sessionID]||t.startResearch(e.position,e.usi).catch((e=>{this.onError(e)}))})),this.record=e,clearTimeout(this.maxSecondsTimer),this.setting.enableMaxSeconds&&this.setting.maxSeconds>0&&(this.maxSecondsTimer=setTimeout((()=>{this.stopAll()}),1e3*this.setting.maxSeconds))}),200)}isPaused(e){return this.pausedEngineMap[e]||!1}pause(e){const t=this.engines.find((t=>t.sessionID===e));t&&(this.pausedEngineMap[e]=!0,t.stop().catch((e=>{this.onError(e)})))}unpause(e){const t=this.engines.find((t=>t.sessionID===e));t&&(this.pausedEngineMap[e]=!1,this.record&&t.startResearch(this.record.position,this.record.usi).catch((e=>{this.onError(e)})))}stopAll(){clearTimeout(this.maxSecondsTimer),Promise.all(this.engines.map((e=>e.stop()))).catch((e=>{this.onError(e)}))}close(){this.lazyPositionUpdate.clear(),clearTimeout(this.maxSecondsTimer),Promise.allSettled(this.engines.map((e=>e.close()))).then((()=>{this.engines=[],this.pausedEngineMap={}})).catch((e=>{this.onError(e)}))}}},7556:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scoreToPercentage=t.getSituationText=void 0,t.getSituationText=function(e){return e>=1500?"先手勝勢":e>=600?"先手優勢":e>=400?"先手有利":e>=200?"先手有望":e>=-200?"互角":e>=-400?"後手有望":e>=-600?"後手有利":e>=-1500?"後手優勢":"後手勝勢"},t.scoreToPercentage=function(e,t){return 100/(1+Math.exp(-e/t))}},8896:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAppSetting=t.createAppSetting=void 0;const r=s(1316),n=s(4680),i=s(119),o=r.__importDefault(s(7008));class a{setting=(0,n.defaultAppSetting)();get language(){return this.setting.language}get thema(){return this.setting.thema}get pieceImage(){return this.setting.pieceImage}get kingPieceType(){return this.setting.kingPieceType}get backgroundImageType(){return this.setting.backgroundImageType}get backgroundImageFileURL(){return this.setting.backgroundImageFileURL}get boardImage(){return this.setting.boardImage}get croppedPieceImageBaseURL(){return this.setting.croppedPieceImageBaseURL}get croppedPieceImageQuery(){return this.setting.croppedPieceImageQuery}get pieceImageFileURL(){return this.setting.pieceImageFileURL}get deletePieceImageMargin(){return this.setting.deletePieceImageMargin}get boardImageFileURL(){return this.setting.boardImageFileURL}get pieceStandImage(){return this.setting.pieceStandImage}get pieceStandImageFileURL(){return this.setting.pieceStandImageFileURL}get enableTransparent(){return this.setting.enableTransparent}get boardOpacity(){return this.setting.boardOpacity}get pieceStandOpacity(){return this.setting.pieceStandOpacity}get recordOpacity(){return this.setting.recordOpacity}get boardLabelType(){return this.setting.boardLabelType}get leftSideControlType(){return this.setting.leftSideControlType}get rightSideControlType(){return this.setting.rightSideControlType}get pieceVolume(){return this.setting.pieceVolume}get clockVolume(){return this.setting.clockVolume}get clockPitch(){return this.setting.clockPitch}get clockSoundTarget(){return this.setting.clockSoundTarget}get boardFlipping(){return this.setting.boardFlipping}get tabPaneType(){return this.setting.tabPaneType}get tab(){return this.setting.tab}get tab2(){return this.setting.tab2}get topPaneHeightPercentage(){return this.setting.topPaneHeightPercentage}get topPanePreviousHeightPercentage(){return this.setting.topPanePreviousHeightPercentage}get bottomLeftPaneWidthPercentage(){return this.setting.bottomLeftPaneWidthPercentage}get defaultRecordFileFormat(){return this.setting.defaultRecordFileFormat}get textDecodingRule(){return this.setting.textDecodingRule}get returnCode(){return this.setting.returnCode}get autoSaveDirectory(){return this.setting.autoSaveDirectory}get recordFileNameTemplate(){return this.setting.recordFileNameTemplate}get enableUSIFileStartpos(){return this.setting.enableUSIFileStartpos}get enableUSIFileResign(){return this.setting.enableUSIFileResign}get translateEngineOptionName(){return this.setting.translateEngineOptionName}get engineTimeoutSeconds(){return this.setting.engineTimeoutSeconds}get evaluationViewFrom(){return this.setting.evaluationViewFrom}get coefficientInSigmoid(){return this.setting.coefficientInSigmoid}get badMoveLevelThreshold1(){return this.setting.badMoveLevelThreshold1}get badMoveLevelThreshold2(){return this.setting.badMoveLevelThreshold2}get badMoveLevelThreshold3(){return this.setting.badMoveLevelThreshold3}get badMoveLevelThreshold4(){return this.setting.badMoveLevelThreshold4}get showElapsedTimeInRecordView(){return this.setting.showElapsedTimeInRecordView}get showCommentInRecordView(){return this.setting.showCommentInRecordView}get enableAppLog(){return this.setting.enableAppLog}get enableUSILog(){return this.setting.enableUSILog}get enableCSALog(){return this.setting.enableCSALog}get logLevel(){return this.setting.logLevel}get positionImageStyle(){return this.setting.positionImageStyle}get positionImageSize(){return this.setting.positionImageSize}get positionImageTypeface(){return this.setting.positionImageTypeface}get positionImageHandLabelType(){return this.setting.positionImageHandLabelType}get useBookmarkAsPositionImageHeader(){return this.setting.useBookmarkAsPositionImageHeader}get positionImageHeader(){return this.setting.positionImageHeader}get positionImageCharacterY(){return this.setting.positionImageCharacterY}get positionImageFontScale(){return this.setting.positionImageFontScale}get positionImageFontWeight(){return this.setting.positionImageFontWeight}get lastRecordFilePath(){return this.setting.lastRecordFilePath}get lastUSIEngineFilePath(){return this.setting.lastUSIEngineFilePath}get lastImageExportFilePath(){return this.setting.lastImageExportFilePath}get lastOtherFilePath(){return this.setting.lastOtherFilePath}get emptyRecordInfoVisibility(){return this.setting.emptyRecordInfoVisibility}async loadAppSetting(){this.setting=await o.default.loadAppSetting()}async updateAppSetting(e){const t=(0,n.buildUpdatedAppSetting)(this.setting,e);if(t instanceof Error)throw t;await o.default.saveAppSetting(t),this.setting=t}flipBoard(){this.setting.boardFlipping=!this.setting.boardFlipping,o.default.saveAppSetting(this.setting)}}function c(){return(0,i.reactive)(new a)}let l;t.createAppSetting=c,t.useAppSetting=function(){return l||(l=c()),l}},7188:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USIMonitor=t.USIPlayerMonitor=void 0;const r=s(8596);let n=0;class i{sessionID;name;sfen="";nodes;nps;iterations=[];hashfull;currentMove;currentMoveText;ponderMove;constructor(e,t){this.sessionID=e,this.name=t}get latestIteration(){const e=[],t=new Set,s=new Set;for(const r of this.iterations){const n=r.pv?r.pv[0]:void 0;t.has(r.multiPV)||s.has(n)||(e.push(r),t.add(r.multiPV),s.add(n))}return e.sort(((e,t)=>(e.multiPV||1)-(t.multiPV||1)))}update(e,t,s){this.sfen!==e&&(this.sfen=e,this.nodes=void 0,this.nps=void 0,this.iterations=[],this.hashfull=void 0,this.currentMove=void 0,this.currentMoveText=void 0,this.ponderMove=void 0);const i=r.Position.newBySFEN(e);if(!i)return;const o={id:n++,position:e,color:i.color};if(void 0!==t.depth&&(o.depth=t.depth),void 0!==t.seldepth&&(o.selectiveDepth=t.seldepth),void 0!==t.timeMs&&(o.timeMs=t.timeMs),void 0!==t.nodes&&(this.nodes=t.nodes),t.pv&&(o.pv=t.pv,o.text=function(e,t){const s=e.clone();let n,i="",o=0;for(;o<t.length;o++){const e=s.createMoveByUSI(t[o]);if(!e)break;i+=(0,r.formatMove)(s,e,{lastMove:n}),s.doMove(e,{ignoreValidation:!0}),n=e}for(;o<t.length;o++)i+=" "+t[o];return i}(i,t.pv)),void 0!==t.multipv&&(o.multiPV=t.multipv),void 0!==t.scoreCP&&(o.score=t.scoreCP),void 0!==t.scoreMate&&(o.scoreMate=t.scoreMate),void 0!==t.lowerbound&&(o.lowerBound=t.lowerbound),void 0!==t.upperbound&&(o.upperBound=t.upperbound),void 0!==t.currmove){this.currentMove=t.currmove;const e=i.createMoveByUSI(t.currmove);e&&(this.currentMoveText=(0,r.formatMove)(i,e))}void 0!==t.hashfullPerMill&&(this.hashfull=t.hashfullPerMill/1e3),void 0!==t.nps&&(this.nps=t.nps),t.string&&(o.text=t.string),0!==Object.keys(o).length&&(void 0!==t.nodes&&(o.nodes=t.nodes),this.iterations.unshift(o)),this.ponderMove=s&&(0,r.formatMove)(i,s)}}t.USIPlayerMonitor=i;t.USIMonitor=class{_sessions=[];updateQueue=[];timeoutHandle;get sessions(){return this._sessions}clear(){this._sessions=[],this.updateQueue=[],this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0)}update(e,t,s,r,n){this.updateQueue.push({sessionID:e,sfen:t.sfen,name:s,info:r,ponderMove:n}),this.timeoutHandle||(this.timeoutHandle=window.setTimeout((()=>{this.dequeue()}),500))}dequeue(){for(const e of this.updateQueue)this._update(e);this.updateQueue=[],this.timeoutHandle=void 0}_update(e){let t=this._sessions.find((t=>t.sessionID===e.sessionID));t||(t=this.addSession(e.sessionID,e.name)),t.update(e.sfen,e.info,e.ponderMove)}addSession(e,t){const s=new i(e,t);return this.sessions.push(s),this.sessions.sort(((e,t)=>e.sessionID-t.sessionID)),s}}},5264:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(8952),n=s(7304),i=s(1092),o=s(1328),a=s(7164);const c=Symbol(""),l=Symbol(""),u=Symbol(""),h=Symbol(""),p=Symbol(""),d=Symbol(""),f=Symbol(""),m=Symbol(""),g=Symbol(""),y=Symbol(""),S=Symbol(""),E=Symbol(""),v=Symbol(""),T=Symbol(""),b=Symbol(""),A=Symbol(""),P=Symbol(""),I=Symbol(""),C=Symbol(""),N=Symbol(""),_=Symbol(""),w=Symbol(""),x=Symbol(""),O=Symbol(""),M=Symbol(""),k=Symbol(""),L=Symbol(""),R=Symbol(""),D=Symbol(""),F=Symbol(""),B=Symbol(""),U=Symbol(""),H=Symbol(""),G=Symbol(""),K=Symbol(""),j=Symbol(""),$=Symbol(""),V=Symbol(""),W=Symbol(""),q={[c]:"Fragment",[l]:"Teleport",[u]:"Suspense",[h]:"KeepAlive",[p]:"BaseTransition",[d]:"openBlock",[f]:"createBlock",[m]:"createElementBlock",[g]:"createVNode",[y]:"createElementVNode",[S]:"createCommentVNode",[E]:"createTextVNode",[v]:"createStaticVNode",[T]:"resolveComponent",[b]:"resolveDynamicComponent",[A]:"resolveDirective",[P]:"resolveFilter",[I]:"withDirectives",[C]:"renderList",[N]:"renderSlot",[_]:"createSlots",[w]:"toDisplayString",[x]:"mergeProps",[O]:"normalizeClass",[M]:"normalizeStyle",[k]:"normalizeProps",[L]:"guardReactiveProps",[R]:"toHandlers",[D]:"camelize",[F]:"capitalize",[B]:"toHandlerKey",[U]:"setBlockTracking",[H]:"pushScopeId",[G]:"popScopeId",[K]:"withCtx",[j]:"unref",[$]:"isRef",[V]:"withMemo",[W]:"isMemoSame"};const J={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Y(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:J}}function z(e,t,s,r,n,i,o,a=!1,c=!1,l=!1,u=J){return e&&(a?(e.helper(d),e.helper(ce(e.inSSR,l))):e.helper(ae(e.inSSR,l)),o&&e.helper(I)),{type:13,tag:t,props:s,children:r,patchFlag:n,dynamicProps:i,directives:o,isBlock:a,disableTracking:c,isComponent:l,loc:u}}function X(e,t=J){return{type:17,loc:t,elements:e}}function Q(e,t=J){return{type:15,loc:t,properties:e}}function Z(e,t){return{type:16,loc:J,key:r.isString(e)?ee(e,!0):e,value:t}}function ee(e,t=!1,s=J,r=0){return{type:4,loc:s,content:e,isStatic:t,constType:t?3:r}}function te(e,t=J){return{type:8,loc:t,children:e}}function se(e,t=[],s=J){return{type:14,loc:s,callee:e,arguments:t}}function re(e,t=void 0,s=!1,r=!1,n=J){return{type:18,params:e,returns:t,newline:s,isSlot:r,loc:n}}function ne(e,t,s,r=!0){return{type:19,test:e,consequent:t,alternate:s,newline:r,loc:J}}function ie(e,t,s=!1){return{type:20,index:e,value:t,isVNode:s,loc:J}}function oe(e){return{type:21,body:e,loc:J}}function ae(e,t){return e||t?g:y}function ce(e,t){return e||t?f:m}function le(e,{helper:t,removeHelper:s,inSSR:r}){e.isBlock||(e.isBlock=!0,s(ae(r,e.isComponent)),t(d),t(ce(r,e.isComponent)))}const ue=new Uint8Array([123,123]),he=new Uint8Array([125,125]);function pe(e){return e>=97&&e<=122||e>=65&&e<=90}function de(e){return 32===e||10===e||9===e||12===e||13===e}function fe(e){return 47===e||62===e||de(e)}function me(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}const ge={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};const ye={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Se(e,{compatConfig:t}){const s=t&&t[e];return"MODE"===e?s||3:s}function Ee(e,t){const s=Se("MODE",t),r=Se(e,t);return 3===s?!0===r:!1!==r}function ve(e,t,s,...r){return Ee(e,t)}function Te(e){throw e}function be(e){}function Ae(e,t,s,r){const n=(s||Pe)[e]+(r||""),i=new SyntaxError(String(n));return i.code=e,i.loc=t,i}const Pe={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:"v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.",45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function Ie(e,t,s=!1,r=[],n=Object.create(null)){const i="Program"===e.type?"ExpressionStatement"===e.body[0].type&&e.body[0].expression:e;o.walk(e,{enter(e,i){if(i&&r.push(i),i&&i.type.startsWith("TS")&&!Fe.includes(i.type))return this.skip();if("Identifier"===e.type){const o=!!n[e.name],a=Ce(e,i,r);(s||a&&!o)&&t(e,i,r,a,o)}else"ObjectProperty"===e.type&&"ObjectPattern"===(null==i?void 0:i.type)?e.inPattern=!0:Le(e)?e.scopeIds?e.scopeIds.forEach((e=>Me(e,n))):we(e,(t=>ke(e,t,n))):"BlockStatement"===e.type&&(e.scopeIds?e.scopeIds.forEach((e=>Me(e,n))):xe(e,(t=>ke(e,t,n))))},leave(e,t){if(t&&r.pop(),e!==i&&e.scopeIds)for(const t of e.scopeIds)n[t]--,0===n[t]&&delete n[t]}})}function Ce(e,t,s){if(!t)return!0;if("arguments"===e.name)return!1;if(function(e,t,s){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!s||"ObjectPattern"!==s.type;case"ClassProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return!(null==s?void 0:s.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}(e,t))return!0;switch(t.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectPattern":case"ArrayPattern":return Ne(t,s)}return!1}function Ne(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const s=t[e];if("AssignmentExpression"===s.type)return!0;if("ObjectProperty"!==s.type&&!s.type.endsWith("Pattern"))break}}return!1}function _e(e){let t=e.length;for(;t--;){const s=e[t];if("NewExpression"===s.type)return!0;if("MemberExpression"!==s.type)break}return!1}function we(e,t){for(const s of e.params)for(const e of Oe(s))t(e)}function xe(e,t){for(const s of e.body)if("VariableDeclaration"===s.type){if(s.declare)continue;for(const e of s.declarations)for(const s of Oe(e.id))t(s)}else if("FunctionDeclaration"===s.type||"ClassDeclaration"===s.type){if(s.declare||!s.id)continue;t(s.id)}else if("ForOfStatement"===s.type||"ForInStatement"===s.type||"ForStatement"===s.type){const e="ForStatement"===s.type?s.init:s.left;if(e&&"VariableDeclaration"===e.type)for(const s of e.declarations)for(const e of Oe(s.id))t(e)}}function Oe(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let s=e;for(;"MemberExpression"===s.type;)s=s.object;t.push(s);break;case"ObjectPattern":for(const s of e.properties)"RestElement"===s.type?Oe(s.argument,t):Oe(s.value,t);break;case"ArrayPattern":e.elements.forEach((e=>{e&&Oe(e,t)}));break;case"RestElement":Oe(e.argument,t);break;case"AssignmentPattern":Oe(e.left,t)}return t}function Me(e,t){e in t?t[e]++:t[e]=1}function ke(e,t,s){const{name:r}=t;e.scopeIds&&e.scopeIds.has(r)||(Me(r,s),(e.scopeIds||(e.scopeIds=new Set)).add(r))}const Le=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Re=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,De=(e,t)=>Re(t)&&t.key===e;const Fe=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Be(e){return Fe.includes(e.type)?Be(e.expression):e}const Ue=e=>4===e.type&&e.isStatic;function He(e){switch(e){case"Teleport":case"teleport":return l;case"Suspense":case"suspense":return u;case"KeepAlive":case"keep-alive":return h;case"BaseTransition":case"base-transition":return p}}const Ge=/^\d|[^\$\w]/,Ke=e=>!Ge.test(e),je=/[A-Za-z_$\xA0-\uFFFF]/,$e=/[\.\?\w$\xA0-\uFFFF]/,Ve=/\s+[.[]\s*|\s*[.[]\s+/g,We=(e,t)=>{try{let s=i.parseExpression(e,{plugins:t.expressionPlugins});return s=Be(s),"MemberExpression"===s.type||"OptionalMemberExpression"===s.type||"Identifier"===s.type&&"undefined"!==s.name}catch(e){return!1}},qe=We;function Je(e,t,s=t.length){return Ye({offset:e.offset,line:e.line,column:e.column},t,s)}function Ye(e,t,s=t.length){let r=0,n=-1;for(let e=0;e<s;e++)10===t.charCodeAt(e)&&(r++,n=e);return e.offset+=s,e.line+=r,e.column=-1===n?e.column+s:s-n,e}function ze(e,t,s=!1){for(let n=0;n<e.props.length;n++){const i=e.props[n];if(7===i.type&&(s||i.exp)&&(r.isString(t)?i.name===t:t.test(i.name)))return i}}function Xe(e,t,s=!1,r=!1){for(let n=0;n<e.props.length;n++){const i=e.props[n];if(6===i.type){if(s)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&Qe(i.arg,t))return i}}function Qe(e,t){return!(!e||!Ue(e)||e.content!==t)}function Ze(e){return 5===e.type||2===e.type}function et(e){return 7===e.type&&"slot"===e.name}function tt(e){return 1===e.type&&3===e.tagType}function st(e){return 1===e.type&&2===e.tagType}const rt=new Set([k,L]);function nt(e,t=[]){if(e&&!r.isString(e)&&14===e.type){const s=e.callee;if(!r.isString(s)&&rt.has(s))return nt(e.arguments[0],t.concat(e))}return[e,t]}function it(e,t,s){let n,i,o=13===e.type?e.props:e.arguments[2],a=[];if(o&&!r.isString(o)&&14===o.type){const e=nt(o);o=e[0],a=e[1],i=a[a.length-1]}if(null==o||r.isString(o))n=Q([t]);else if(14===o.type){const e=o.arguments[0];r.isString(e)||15!==e.type?o.callee===R?n=se(s.helper(x),[Q([t]),o]):o.arguments.unshift(Q([t])):ot(t,e)||e.properties.unshift(t),!n&&(n=o)}else 15===o.type?(ot(t,o)||o.properties.unshift(t),n=o):(n=se(s.helper(x),[Q([t]),o]),i&&i.callee===L&&(i=a[a.length-2]));13===e.type?i?i.arguments[0]=n:e.props=n:i?i.arguments[0]=n:e.arguments[2]=n}function ot(e,t){let s=!1;if(4===e.key.type){const r=e.key.content;s=t.properties.some((e=>4===e.key.type&&e.key.content===r))}return s}function at(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,s)=>"-"===t?"_":e.charCodeAt(s).toString()))}`}function ct(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let s=0;s<e.props.length;s++){const r=e.props[s];if(7===r.type&&(ct(r.arg,t)||ct(r.exp,t)))return!0}return e.children.some((e=>ct(e,t)));case 11:return!!ct(e.source,t)||e.children.some((e=>ct(e,t)));case 9:return e.branches.some((e=>ct(e,t)));case 10:return!!ct(e.condition,t)||e.children.some((e=>ct(e,t)));case 4:return!e.isStatic&&Ke(e.content)&&!!t[e.content];case 8:return e.children.some((e=>r.isObject(e)&&ct(e,t)));case 5:case 12:return ct(e.content,t);default:return!1}}function lt(e){return 14===e.type&&e.callee===V?e.arguments[1].returns:e}const ut=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ht={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:r.NO,isPreTag:r.NO,isCustomElement:r.NO,onError:Te,onWarn:be,comments:!1,prefixIdentifiers:!1};let pt=ht,dt=null,ft="",mt=null,gt=null,yt="",St=-1,Et=-1,vt=0,Tt=!1,bt=null;const At=[],Pt=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=ue,this.delimiterClose=he,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0,this.entityDecoder=new n.EntityDecoder(n.htmlDecodeTree,((e,t)=>this.emitCodePoint(e,t)))}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=ue,this.delimiterClose=he}getPos(e){let t=1,s=e+1;for(let r=this.newlines.length-1;r>=0;r--){const n=this.newlines[r];if(e>n){t=r+2,s=e-n;break}}return{column:s,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):38===e?this.startEntity():this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?fe(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||de(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===ge.TitleEnd||this.currentSequence===ge.TextareaEnd&&!this.inSFCRoot?38===e?this.startEntity():e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===ge.Cdata[this.sequenceIndex]?++this.sequenceIndex===ge.Cdata.length&&(this.state=28,this.currentSequence=ge.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ge.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){if(33===e)this.state=22,this.sectionStart=this.index+1;else if(63===e)this.state=24,this.sectionStart=this.index+1;else if(pe(e))if(this.sectionStart=this.index,0===this.mode)this.state=6;else if(this.inSFCRoot)this.state=34;else if(this.inXML)this.state=6;else{const t=32|e;this.state=116===t?30:115===t?29:6}else 47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){fe(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(fe(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(me("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){de(e)||(62===e?(this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=pe(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||de(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?(this.state=7,62!==this.peek()&&this.cbs.onerr(22,this.index)):60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):de(e)||(61===e&&this.cbs.onerr(19,this.index),this.handleAttrStart(e))}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):de(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){61===e||fe(e)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):34!==e&&39!==e&&60!==e||this.cbs.onerr(17,this.index)}stateInDirName(e){61===e||fe(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||fe(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||fe(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e),this.cbs.onerr(27,this.index))}stateInDirModifier(e){61===e||fe(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):de(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):de(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){e===t?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11):38===e&&this.startEntity()}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){de(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):34===e||39===e||60===e||61===e||96===e?this.cbs.onerr(18,this.index):38===e&&this.startEntity()}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=ge.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===ge.ScriptEnd[3]?this.startSpecial(ge.ScriptEnd,4):t===ge.StyleEnd[3]?this.startSpecial(ge.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){const t=32|e;t===ge.TitleEnd[3]?this.startSpecial(ge.TitleEnd,4):t===ge.TextareaEnd[3]?this.startSpecial(ge.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){this.baseState=this.state,this.state=33,this.entityStart=this.index,this.entityDecoder.startEntity(1===this.baseState||32===this.baseState?n.DecodingMode.Legacy:n.DecodingMode.Attribute)}stateInEntity(){{const e=this.entityDecoder.write(this.buffer,this.index);e>=0?(this.state=this.baseState,0===e&&(this.index=this.entityStart)):this.index=this.buffer.length-1}}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){33===this.state&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===ge.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){1!==this.baseState&&32!==this.baseState?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(n.fromCodePoint(e),this.entityStart,this.sectionStart)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(n.fromCodePoint(e),this.entityStart,this.sectionStart))}}(At,{onerr:$t,ontext(e,t){wt(Nt(e,t),e,t)},ontextentity(e,t,s){wt(e,t,s)},oninterpolation(e,t){if(Tt)return wt(Nt(e,t),e,t);let s=e+Pt.delimiterOpen.length,r=t-Pt.delimiterClose.length;for(;de(ft.charCodeAt(s));)s++;for(;de(ft.charCodeAt(r-1));)r--;let i=Nt(s,r);i.includes("&")&&(i=n.decodeHTML(i)),Ut({type:5,content:jt(i,!1,Ht(s,r)),loc:Ht(e,t)})},onopentagname(e,t){const s=Nt(e,t);mt={type:1,tag:s,ns:pt.getNamespace(s,At[0],pt.ns),tagType:0,props:[],children:[],loc:Ht(e-1,t),codegenNode:void 0}},onopentagend(e){_t(e)},onclosetag(e,t){const s=Nt(e,t);if(!pt.isVoidTag(s)){let r=!1;for(let e=0;e<At.length;e++){if(At[e].tag.toLowerCase()===s.toLowerCase()){r=!0,e>0&&$t(24,At[0].loc.start.offset);for(let s=0;s<=e;s++){xt(At.shift(),t,s<e)}break}}r||$t(23,Ot(e,60))}},onselfclosingtag(e){var t;const s=mt.tag;mt.isSelfClosing=!0,_t(e),(null==(t=At[0])?void 0:t.tag)===s&&xt(At.shift(),e)},onattribname(e,t){gt={type:6,name:Nt(e,t),nameLoc:Ht(e,t),value:void 0,loc:Ht(e)}},ondirname(e,t){const s=Nt(e,t),r="."===s||":"===s?"bind":"@"===s?"on":"#"===s?"slot":s.slice(2);if(Tt||""!==r||$t(26,e),Tt||""===r)gt={type:6,name:s,nameLoc:Ht(e,t),value:void 0,loc:Ht(e)};else if(gt={type:7,name:r,rawName:s,exp:void 0,arg:void 0,modifiers:"."===s?["prop"]:[],loc:Ht(e)},"pre"===r){Tt=Pt.inVPre=!0,bt=mt;const e=mt.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=Kt(e[t]))}},ondirarg(e,t){if(e===t)return;const s=Nt(e,t);if(Tt)gt.name+=s,Gt(gt.nameLoc,t);else{const r="["!==s[0];gt.arg=jt(r?s:s.slice(1,-1),r,Ht(e,t),r?3:0)}},ondirmodifier(e,t){const s=Nt(e,t);if(Tt)gt.name+="."+s,Gt(gt.nameLoc,t);else if("slot"===gt.name){const e=gt.arg;e&&(e.content+="."+s,Gt(e.loc,t))}else gt.modifiers.push(s)},onattribdata(e,t){yt+=Nt(e,t),St<0&&(St=e),Et=t},onattribentity(e,t,s){yt+=e,St<0&&(St=t),Et=s},onattribnameend(e){const t=gt.loc.start.offset,s=Nt(t,e);7===gt.type&&(gt.rawName=s),mt.props.some((e=>(7===e.type?e.rawName:e.name)===s))&&$t(2,t)},onattribend(e,t){if(mt&&gt){if(Gt(gt.loc,t),0!==e)if(6===gt.type)"class"===gt.name&&(yt=Bt(yt).trim()),1!==e||yt||$t(13,t),gt.value={type:2,content:yt,loc:1===e?Ht(St,Et):Ht(St-1,Et+1)},Pt.inSFCRoot&&"template"===mt.tag&&"lang"===gt.name&&yt&&"html"!==yt&&Pt.enterRCDATA(me("</template"),0);else{let e=0;"for"===gt.name?e=3:"slot"===gt.name?e=1:"on"===gt.name&&yt.includes(";")&&(e=2),gt.exp=jt(yt,!1,Ht(St,Et),0,e),"for"===gt.name&&(gt.forParseResult=function(e){const t=e.loc,s=e.content,r=s.match(ut);if(!r)return;const[,n,i]=r,o=(e,s,r=!1)=>{const n=t.start.offset+s;return jt(e,!1,Ht(n,n+e.length),0,r?1:0)},a={source:o(i.trim(),s.indexOf(i,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=n.trim().replace(Ct,"").trim();const l=n.indexOf(c),u=c.match(It);if(u){c=c.replace(It,"").trim();const e=u[1].trim();let t;if(e&&(t=s.indexOf(e,l+c.length),a.key=o(e,t,!0)),u[2]){const r=u[2].trim();r&&(a.index=o(r,s.indexOf(r,a.key?t+e.length:l+c.length),!0))}}c&&(a.value=o(c,l,!0));return a}(gt.exp));let t=-1;"bind"===gt.name&&(t=gt.modifiers.indexOf("sync"))>-1&&ve("COMPILER_V_BIND_SYNC",pt,gt.loc,gt.rawName)&&(gt.name="model",gt.modifiers.splice(t,1))}7===gt.type&&"pre"===gt.name||mt.props.push(gt)}yt="",St=Et=-1},oncomment(e,t){pt.comments&&Ut({type:3,content:Nt(e,t),loc:Ht(e-4,t+3)})},onend(){const e=ft.length;if(1!==Pt.state)switch(Pt.state){case 5:case 8:$t(5,e);break;case 3:case 4:$t(25,Pt.sectionStart);break;case 28:Pt.currentSequence===ge.CdataEnd?$t(6,e):$t(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:$t(9,e)}for(let t=0;t<At.length;t++)xt(At[t],e-1),$t(24,At[t].loc.start.offset)},oncdata(e,t){0!==At[0].ns?wt(Nt(e,t),e,t):$t(1,e-9)},onprocessinginstruction(e){0===(At[0]?At[0].ns:pt.ns)&&$t(21,e-1)}}),It=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ct=/^\(|\)$/g;function Nt(e,t){return ft.slice(e,t)}function _t(e){Pt.inSFCRoot&&(mt.innerLoc=Ht(e+1,e+1)),Ut(mt);const{tag:t,ns:s}=mt;0===s&&pt.isPreTag(t)&&vt++,pt.isVoidTag(t)?xt(mt,e):(At.unshift(mt),1!==s&&2!==s||(Pt.inXML=!0)),mt=null}function wt(e,t,s){const r=At[0]||dt,n=r.children[r.children.length-1];2===(null==n?void 0:n.type)?(n.content+=e,Gt(n.loc,s)):r.children.push({type:2,content:e,loc:Ht(t,s)})}function xt(e,t,s=!1){Gt(e.loc,s?Ot(t,60):t+1),Pt.inSFCRoot&&(e.children.length?e.innerLoc.end=r.extend({},e.children[e.children.length-1].loc.end):e.innerLoc.end=r.extend({},e.innerLoc.start),e.innerLoc.source=Nt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:i}=e;Tt||("slot"===n?e.tagType=2:kt(e)?e.tagType=3:function({tag:e,props:t}){var s;if(pt.isCustomElement(e))return!1;if("component"===e||(r=e.charCodeAt(0),r>64&&r<91)||He(e)||(null==(s=pt.isBuiltInComponent)?void 0:s.call(pt,e))||pt.isNativeTag&&!pt.isNativeTag(e))return!0;var r;for(let e=0;e<t.length;e++){const s=t[e];if(6===s.type){if("is"===s.name&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(ve("COMPILER_IS_ON_ELEMENT",pt,s.loc))return!0}}else if("bind"===s.name&&Qe(s.arg,"is")&&ve("COMPILER_IS_ON_ELEMENT",pt,s.loc))return!0}return!1}(e)&&(e.tagType=1)),Pt.inRCDATA||(e.children=Rt(e.children,e.tag)),0===i&&pt.isPreTag(n)&&vt--,bt===e&&(Tt=Pt.inVPre=!1,bt=null),Pt.inXML&&0===(At[0]?At[0].ns:pt.ns)&&(Pt.inXML=!1);{const t=e.props;if(!Pt.inSFCRoot&&Ee("COMPILER_NATIVE_TEMPLATE",pt)&&"template"===e.tag&&!kt(e)){const t=At[0]||dt,s=t.children.indexOf(e);t.children.splice(s,1,...e.children)}const s=t.find((e=>6===e.type&&"inline-template"===e.name));s&&ve("COMPILER_INLINE_TEMPLATE",pt,s.loc)&&e.children.length&&(s.value={type:2,content:Nt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function Ot(e,t){let s=e;for(;ft.charCodeAt(s)!==t&&s>=0;)s--;return s}const Mt=new Set(["if","else","else-if","for","slot"]);function kt({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&Mt.has(t[e].name))return!0;return!1}const Lt=/\r\n/g;function Rt(e,t){var s,r;const n="preserve"!==pt.whitespace;let i=!1;for(let t=0;t<e.length;t++){const o=e[t];if(2===o.type)if(vt)o.content=o.content.replace(Lt,"\n");else if(Dt(o.content)){const a=null==(s=e[t-1])?void 0:s.type,c=null==(r=e[t+1])?void 0:r.type;!a||!c||n&&(3===a&&(3===c||1===c)||1===a&&(3===c||1===c&&Ft(o.content)))?(i=!0,e[t]=null):o.content=" "}else n&&(o.content=Bt(o.content))}if(vt&&t&&pt.isPreTag(t)){const t=e[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}return i?e.filter(Boolean):e}function Dt(e){for(let t=0;t<e.length;t++)if(!de(e.charCodeAt(t)))return!1;return!0}function Ft(e){for(let t=0;t<e.length;t++){const s=e.charCodeAt(t);if(10===s||13===s)return!0}return!1}function Bt(e){let t="",s=!1;for(let r=0;r<e.length;r++)de(e.charCodeAt(r))?s||(t+=" ",s=!0):(t+=e[r],s=!1);return t}function Ut(e){(At[0]||dt).children.push(e)}function Ht(e,t){return{start:Pt.getPos(e),end:null==t?t:Pt.getPos(t),source:null==t?t:Nt(e,t)}}function Gt(e,t){e.end=Pt.getPos(t),e.source=Nt(e.start.offset,t)}function Kt(e){const t={type:6,name:e.rawName,nameLoc:Ht(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const s=e.exp.loc;s.end.offset<e.loc.end.offset&&(s.start.offset--,s.start.column--,s.end.offset++,s.end.column++),t.value={type:2,content:e.exp.content,loc:s}}return t}function jt(e,t=!1,s,r=0,n=0){const o=ee(e,t,s,r);if(!t&&pt.prefixIdentifiers&&3!==n&&e.trim()){if(Ke(e))return o.ast=null,o;try{const t=pt.expressionPlugins,s={plugins:t?[...t,"typescript"]:["typescript"]};o.ast=2===n?i.parse(` ${e} `,s).program:1===n?i.parseExpression(`(${e})=>{}`,s):i.parseExpression(`(${e})`,s)}catch(e){o.ast=!1,$t(45,s.start.offset,e.message)}}return o}function $t(e,t,s){pt.onError(Ae(e,Ht(t,t),void 0,s))}function Vt(e,t){if(Pt.reset(),mt=null,gt=null,yt="",St=-1,Et=-1,At.length=0,ft=e,pt=r.extend({},ht),t){let e;for(e in t)null!=t[e]&&(pt[e]=t[e])}Pt.mode="html"===pt.parseMode?1:"sfc"===pt.parseMode?2:0,Pt.inXML=1===pt.ns||2===pt.ns;const s=null==t?void 0:t.delimiters;s&&(Pt.delimiterOpen=me(s[0]),Pt.delimiterClose=me(s[1]));const n=dt=Y([],e);return Pt.parse(ft),n.loc=Ht(0,e.length),n.children=Rt(n.children),dt=null,n}function Wt(e,t){Jt(e,t,qt(e,e.children[0]))}function qt(e,t){const{children:s}=e;return 1===s.length&&1===t.type&&!st(t)}function Jt(e,t,s=!1){const{children:n}=e,i=n.length;let o=0;for(let e=0;e<n.length;e++){const r=n[e];if(1===r.type&&0===r.tagType){const e=s?0:Yt(r,t);if(e>0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),o++;continue}}else{const e=r.codegenNode;if(13===e.type){const s=es(e);if((!s||512===s||1===s)&&Qt(r,t)>=2){const s=Zt(r);s&&(e.props=t.hoist(s))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Jt(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Jt(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e<r.branches.length;e++)Jt(r.branches[e],t,1===r.branches[e].children.length)}if(o&&t.transformHoist&&t.transformHoist(n,t,e),o&&o===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&r.isArray(e.codegenNode.children)){const s=t.hoist(X(e.codegenNode.children));t.hmr&&(s.content=`[...${s.content}]`),e.codegenNode.children=s}}function Yt(e,t){const{constantCache:s}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const n=s.get(e);if(void 0!==n)return n;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(es(i))return s.set(e,0),0;{let r=3;const n=Qt(e,t);if(0===n)return s.set(e,0),0;n<r&&(r=n);for(let n=0;n<e.children.length;n++){const i=Yt(e.children[n],t);if(0===i)return s.set(e,0),0;i<r&&(r=i)}if(r>1)for(let n=0;n<e.props.length;n++){const i=e.props[n];if(7===i.type&&"bind"===i.name&&i.exp){const n=Yt(i.exp,t);if(0===n)return s.set(e,0),0;n<r&&(r=n)}}if(i.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return s.set(e,0),0}t.removeHelper(d),t.removeHelper(ce(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(ae(t.inSSR,i.isComponent))}return s.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return Yt(e.content,t);case 4:return e.constType;case 8:let o=3;for(let s=0;s<e.children.length;s++){const n=e.children[s];if(r.isString(n)||r.isSymbol(n))continue;const i=Yt(n,t);if(0===i)return 0;i<o&&(o=i)}return o}}const zt=new Set([O,M,k,L]);function Xt(e,t){if(14===e.type&&!r.isString(e.callee)&&zt.has(e.callee)){const s=e.arguments[0];if(4===s.type)return Yt(s,t);if(14===s.type)return Xt(s,t)}return 0}function Qt(e,t){let s=3;const r=Zt(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:n,value:i}=e[r],o=Yt(n,t);if(0===o)return o;let a;if(o<s&&(s=o),a=4===i.type?Yt(i,t):14===i.type?Xt(i,t):0,0===a)return a;a<s&&(s=a)}}return s}function Zt(e){const t=e.codegenNode;if(13===t.type)return t.props}function es(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function ts(e,{filename:t="",prefixIdentifiers:s=!1,hoistStatic:n=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:c={},transformHoist:l=null,isBuiltInComponent:u=r.NOOP,isCustomElement:h=r.NOOP,expressionPlugins:p=[],scopeId:d=null,slotted:f=!0,ssr:m=!1,inSSR:g=!1,ssrCssVars:y="",bindingMetadata:S=r.EMPTY_OBJ,inline:E=!1,isTS:v=!1,onError:T=Te,onWarn:b=be,compatConfig:A}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),I={filename:t,selfName:P&&r.capitalize(r.camelize(P[1])),prefixIdentifiers:s,hoistStatic:n,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:c,transformHoist:l,isBuiltInComponent:u,isCustomElement:h,expressionPlugins:p,scopeId:d,slotted:f,ssr:m,inSSR:g,ssrCssVars:y,bindingMetadata:S,inline:E,isTS:v,onError:T,onWarn:b,compatConfig:A,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=I.helpers.get(e)||0;return I.helpers.set(e,t+1),e},removeHelper(e){const t=I.helpers.get(e);if(t){const s=t-1;s?I.helpers.set(e,s):I.helpers.delete(e)}},helperString:e=>`_${q[I.helper(e)]}`,replaceNode(e){I.parent.children[I.childIndex]=I.currentNode=e},removeNode(e){const t=I.parent.children,s=e?t.indexOf(e):I.currentNode?I.childIndex:-1;e&&e!==I.currentNode?I.childIndex>s&&(I.childIndex--,I.onNodeRemoved()):(I.currentNode=null,I.onNodeRemoved()),I.parent.children.splice(s,1)},onNodeRemoved:r.NOOP,addIdentifiers(e){r.isString(e)?C(e):e.identifiers?e.identifiers.forEach(C):4===e.type&&C(e.content)},removeIdentifiers(e){r.isString(e)?N(e):e.identifiers?e.identifiers.forEach(N):4===e.type&&N(e.content)},hoist(e){r.isString(e)&&(e=ee(e)),I.hoists.push(e);const t=ee(`_hoisted_${I.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>ie(I.cached++,e,t)};function C(e){const{identifiers:t}=I;void 0===t[e]&&(t[e]=0),t[e]++}function N(e){I.identifiers[e]--}return I.filters=new Set,I}function ss(e,t){const s=ts(e,t);rs(e,s),t.hoistStatic&&Wt(e,s),t.ssr||function(e,t){const{helper:s}=t,{children:n}=e;if(1===n.length){const s=n[0];if(qt(e,s)&&s.codegenNode){const r=s.codegenNode;13===r.type&&le(r,t),e.codegenNode=r}else e.codegenNode=s}else if(n.length>1){let n=64;r.PatchFlagNames[64],e.codegenNode=z(t,s(c),void 0,e.children,n+"",void 0,void 0,!0,void 0,!1)}}(e,s),e.helpers=new Set([...s.helpers.keys()]),e.components=[...s.components],e.directives=[...s.directives],e.imports=s.imports,e.hoists=s.hoists,e.temps=s.temps,e.cached=s.cached,e.transformed=!0,e.filters=[...s.filters]}function rs(e,t){t.currentNode=e;const{nodeTransforms:s}=t,n=[];for(let i=0;i<s.length;i++){const o=s[i](e,t);if(o&&(r.isArray(o)?n.push(...o):n.push(o)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(S);break;case 5:t.ssr||t.helper(w);break;case 9:for(let s=0;s<e.branches.length;s++)rs(e.branches[s],t);break;case 10:case 11:case 1:case 0:!function(e,t){let s=0;const n=()=>{s--};for(;s<e.children.length;s++){const i=e.children[s];r.isString(i)||(t.parent=e,t.childIndex=s,t.onNodeRemoved=n,rs(i,t))}}(e,t)}t.currentNode=e;let i=n.length;for(;i--;)n[i]()}function ns(e,t){const s=r.isString(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:n}=e;if(3===e.tagType&&n.some(et))return;const i=[];for(let o=0;o<n.length;o++){const a=n[o];if(7===a.type&&s(a.name)){n.splice(o,1),o--;const s=t(e,a,r);s&&i.push(s)}}return i}}}const is="/*#__PURE__*/",os=e=>`${q[e]}: _${q[e]}`;function as(e,{mode:t="function",prefixIdentifiers:s="module"===t,sourceMap:r=!1,filename:n="template.vue.html",scopeId:i=null,optimizeImports:o=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:h=!1,isTS:p=!1,inSSR:d=!1}){const f={mode:t,prefixIdentifiers:s,sourceMap:r,filename:n,scopeId:i,optimizeImports:o,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:h,isTS:p,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${q[e]}`,push(e,t=-2,s){if(f.code+=e,f.map){if(s){let e;if(4===s.type&&!s.isStatic){const t=s.content.replace(/^_ctx\./,"");t!==s.content&&Ke(t)&&(e=t)}g(s.loc.start,e)}-3===t?Ye(f,e):(f.offset+=e.length,-2===t?f.column+=e.length:(-1===t&&(t=e.length-1),f.line++,f.column=e.length-t)),s&&s.loc!==J&&g(s.loc.end)}},indent(){m(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:m(--f.indentLevel)},newline(){m(f.indentLevel)}};function m(e){f.push("\n"+" ".repeat(e),0)}function g(e,t=null){const{_names:s,_mappings:r}=f.map;null===t||s.has(t)||s.add(t),r.add({originalLine:e.line,originalColumn:e.column-1,generatedLine:f.line,generatedColumn:f.column-1,source:n,name:t})}return r&&(f.map=new a.SourceMapGenerator,f.map.setSourceContent(n,f.source),f.map._sources.add(n)),f}function cs(e,t={}){const s=as(e,t);t.onContextCreated&&t.onContextCreated(s);const{mode:r,push:n,prefixIdentifiers:i,indent:o,deindent:a,newline:c,scopeId:l,ssr:u}=s,h=Array.from(e.helpers),p=h.length>0,d=!i&&"module"!==r,f=null!=l&&"module"===r,m=!!t.inline,T=m?as(e,t):s;"module"===r?function(e,t,s,r){const{push:n,newline:i,optimizeImports:o,runtimeModuleName:a,ssrRuntimeModuleName:c}=t;s&&e.hoists.length&&(e.helpers.add(H),e.helpers.add(G));if(e.helpers.size){const t=Array.from(e.helpers);o?(n(`import { ${t.map((e=>q[e])).join(", ")} } from ${JSON.stringify(a)}\n`,-1),n(`\n// Binding optimization for webpack code-split\nconst ${t.map((e=>`_${q[e]} = ${q[e]}`)).join(", ")}\n`,-1)):n(`import { ${t.map((e=>`${q[e]} as _${q[e]}`)).join(", ")} } from ${JSON.stringify(a)}\n`,-1)}e.ssrHelpers&&e.ssrHelpers.length&&n(`import { ${e.ssrHelpers.map((e=>`${q[e]} as _${q[e]}`)).join(", ")} } from "${c}"\n`,-1);e.imports.length&&(!function(e,t){if(!e.length)return;e.forEach((e=>{t.push("import "),ds(e.exp,t),t.push(` from '${e.path}'`),t.newline()}))}(e.imports,t),i());us(e.hoists,t),i(),r||n("export ")}(e,T,f,m):function(e,t){const{ssr:s,prefixIdentifiers:r,push:n,newline:i,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,l=s?`require(${JSON.stringify(o)})`:a,u=Array.from(e.helpers);if(u.length>0)if(r)n(`const { ${u.map(os).join(", ")} } = ${l}\n`,-1);else if(n(`const _Vue = ${l}\n`,-1),e.hoists.length){n(`const { ${[g,y,S,E,v].filter((e=>u.includes(e))).map(os).join(", ")} } = _Vue\n`,-1)}e.ssrHelpers&&e.ssrHelpers.length&&n(`const { ${e.ssrHelpers.map(os).join(", ")} } = require("${c}")\n`,-1);us(e.hoists,t),i(),n("return ")}(e,T);const b=u?"ssrRender":"render",A=u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];t.bindingMetadata&&!t.inline&&A.push("$props","$setup","$data","$options");const P=t.isTS?A.map((e=>`${e}: any`)).join(","):A.join(", ");if(n(m?`(${P}) => {`:`function ${b}(${P}) {`),o(),d&&(n("with (_ctx) {"),o(),p&&(n(`const { ${h.map(os).join(", ")} } = _Vue\n`,-1),c())),e.components.length&&(ls(e.components,"component",s),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(ls(e.directives,"directive",s),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ls(e.filters,"filter",s),c()),e.temps>0){n("let ");for(let t=0;t<e.temps;t++)n(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(n("\n",0),c()),u||n("return "),e.codegenNode?ds(e.codegenNode,s):n("null"),d&&(a(),n("}")),a(),n("}"),{ast:e,code:s.code,preamble:m?T.code:"",map:s.map?s.map.toJSON():void 0}}function ls(e,t,{helper:s,push:r,newline:n,isTS:i}){const o=s("filter"===t?P:"component"===t?T:A);for(let s=0;s<e.length;s++){let a=e[s];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),r(`const ${at(a,t)} = ${o}(${JSON.stringify(a)}${c?", true":""})${i?"!":""}`),s<e.length-1&&n()}}function us(e,t){if(!e.length)return;t.pure=!0;const{push:s,newline:r,helper:n,scopeId:i,mode:o}=t,a=null!=i&&"function"!==o;r(),a&&(s(`const _withScopeId = n => (${n(H)}("${i}"),n=n(),${n(G)}(),n)`),r());for(let n=0;n<e.length;n++){const i=e[n];if(i){const e=a&&13===i.type;s(`const _hoisted_${n+1} = ${e?`${is} _withScopeId(() => `:""}`),ds(i,t),e&&s(")"),r()}}t.pure=!1}function hs(e,t){const s=e.length>3||e.some((e=>r.isArray(e)||!function(e){return r.isString(e)||4===e.type||2===e.type||5===e.type||8===e.type}(e)));t.push("["),s&&t.indent(),ps(e,t,s),s&&t.deindent(),t.push("]")}function ps(e,t,s=!1,n=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const c=e[a];r.isString(c)?i(c,-3):r.isArray(c)?hs(c,t):ds(c,t),a<e.length-1&&(s?(n&&i(","),o()):n&&i(", "))}}function ds(e,t){if(r.isString(e))t.push(e,-3);else if(r.isSymbol(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:ds(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:fs(e,t);break;case 5:!function(e,t){const{push:s,helper:r,pure:n}=t;n&&s(is);s(`${r(w)}(`),ds(e.content,t),s(")")}(e,t);break;case 8:ms(e,t);break;case 3:!function(e,t){const{push:s,helper:r,pure:n}=t;n&&s(is);s(`${r(S)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:s,helper:r,pure:n}=t,{tag:i,props:o,children:a,patchFlag:c,dynamicProps:l,directives:u,isBlock:h,disableTracking:p,isComponent:f}=e;u&&s(r(I)+"(");h&&s(`(${r(d)}(${p?"true":""}), `);n&&s(is);const m=h?ce(t.inSSR,f):ae(t.inSSR,f);s(r(m)+"(",-2,e),ps(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([i,o,a,c,l]),t),s(")"),h&&s(")");u&&(s(", "),ds(u,t),s(")"))}(e,t);break;case 14:!function(e,t){const{push:s,helper:n,pure:i}=t,o=r.isString(e.callee)?e.callee:n(e.callee);i&&s(is);s(o+"(",-2,e),ps(e.arguments,t),s(")")}(e,t);break;case 15:!function(e,t){const{push:s,indent:r,deindent:n,newline:i}=t,{properties:o}=e;if(!o.length)return void s("{}",-2,e);const a=o.length>1||o.some((e=>4!==e.value.type));s(a?"{":"{ "),a&&r();for(let e=0;e<o.length;e++){const{key:r,value:n}=o[e];gs(r,t),s(": "),ds(n,t),e<o.length-1&&(s(","),i())}a&&n(),s(a?"}":" }")}(e,t);break;case 17:!function(e,t){hs(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:s,indent:n,deindent:i}=t,{params:o,returns:a,body:c,newline:l,isSlot:u}=e;u&&s(`_${q[K]}(`);s("(",-2,e),r.isArray(o)?ps(o,t):o&&ds(o,t);s(") => "),(l||c)&&(s("{"),n());a?(l&&s("return "),r.isArray(a)?hs(a,t):ds(a,t)):c&&ds(c,t);(l||c)&&(i(),s("}"));u&&(e.isNonScopedSlot&&s(", undefined, true"),s(")"))}(e,t);break;case 19:!function(e,t){const{test:s,consequent:r,alternate:n,newline:i}=e,{push:o,indent:a,deindent:c,newline:l}=t;if(4===s.type){const e=!Ke(s.content);e&&o("("),fs(s,t),e&&o(")")}else o("("),ds(s,t),o(")");i&&a(),t.indentLevel++,i||o(" "),o("? "),ds(r,t),t.indentLevel--,i&&l(),i||o(" "),o(": ");const u=19===n.type;u||t.indentLevel++;ds(n,t),u||t.indentLevel--;i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:s,helper:r,indent:n,deindent:i,newline:o}=t;s(`_cache[${e.index}] || (`),e.isVNode&&(n(),s(`${r(U)}(-1),`),o());s(`_cache[${e.index}] = `),ds(e.value,t),e.isVNode&&(s(","),o(),s(`${r(U)}(1),`),o(),s(`_cache[${e.index}]`),i());s(")")}(e,t);break;case 21:ps(e.body,t,!0,!1);break;case 22:!function(e,t){const{push:s,indent:n,deindent:i}=t;s("`");const o=e.elements.length,a=o>3;for(let c=0;c<o;c++){const o=e.elements[c];r.isString(o)?s(o.replace(/(`|\$|\\)/g,"\\$1"),-3):(s("${"),a&&n(),ds(o,t),a&&i(),s("}"))}s("`")}(e,t);break;case 23:ys(e,t);break;case 24:!function(e,t){ds(e.left,t),t.push(" = "),ds(e.right,t)}(e,t);break;case 25:!function(e,t){t.push("("),ps(e.expressions,t),t.push(")")}(e,t);break;case 26:!function({returns:e},t){t.push("return "),r.isArray(e)?hs(e,t):ds(e,t)}(e,t)}}function fs(e,t){const{content:s,isStatic:r}=e;t.push(r?JSON.stringify(s):s,-3,e)}function ms(e,t){for(let s=0;s<e.children.length;s++){const n=e.children[s];r.isString(n)?t.push(n,-3):ds(n,t)}}function gs(e,t){const{push:s}=t;if(8===e.type)s("["),ms(e,t),s("]");else if(e.isStatic){s(Ke(e.content)?e.content:JSON.stringify(e.content),-2,e)}else s(`[${e.content}]`,-3,e)}function ys(e,t){const{push:s,indent:r,deindent:n}=t,{test:i,consequent:o,alternate:a}=e;s("if ("),ds(i,t),s(") {"),r(),ds(o,t),n(),s("}"),a&&(s(" else "),23===a.type?ys(a,t):(s("{"),r(),ds(a,t),n(),s("}")))}const Ss=r.makeMap("true,false,null,this"),Es=/\w\s*\(|\.[^\d]/,vs=(e,t)=>{if(5===e.type)e.content=Ts(e.content,t);else if(1===e.type)for(let s=0;s<e.props.length;s++){const r=e.props[s];if(7===r.type&&"for"!==r.name){const e=r.exp,s=r.arg;!e||4!==e.type||"on"===r.name&&s||(r.exp=Ts(e,t,"slot"===r.name)),s&&4===s.type&&!s.isStatic&&(r.arg=Ts(s,t))}}};function Ts(e,t,s=!1,n=!1,o=Object.create(t.identifiers)){if(!t.prefixIdentifiers||!e.content.trim())return e;const{inline:a,bindingMetadata:c}=t,l=(e,s,n)=>{const i=r.hasOwn(c,e)&&c[e];if(a){const a=s&&"AssignmentExpression"===s.type&&s.left===n,l=s&&"UpdateExpression"===s.type&&s.argument===n,h=s&&Ne(s,f),p=s&&_e(f),d=e=>{const s=`${t.helperString(j)}(${e})`;return p?`(${s})`:s};if(As(i)||"setup-reactive-const"===i||o[e])return e;if("setup-ref"===i)return`${e}.value`;if("setup-maybe-ref"===i)return a||l||h?`${e}.value`:d(e);if("setup-let"===i){if(a){const{right:r,operator:n}=s,i=bs(Ts(ee(u.slice(r.start-1,r.end-1),!1),t,!1,!1,m));return`${t.helperString($)}(${e})${t.isTS?" //@ts-ignore\n":""} ? ${e}.value ${n} ${i} : ${e}`}if(l){n.start=s.start,n.end=s.end;const{prefix:r,operator:i}=s,o=r?i:"",a=r?"":i;return`${t.helperString($)}(${e})${t.isTS?" //@ts-ignore\n":""} ? ${o}${e}.value${a} : ${o}${e}${a}`}return h?e:d(e)}if("props"===i)return r.genPropsAccessExp(e);if("props-aliased"===i)return r.genPropsAccessExp(c.__propsAliases[e])}else{if(i&&i.startsWith("setup")||"literal-const"===i)return`$setup.${e}`;if("props-aliased"===i)return`$props['${c.__propsAliases[e]}']`;if(i)return`$${i}.${e}`}return`_ctx.${e}`},u=e.content,h=Es.test(u);let p=e.ast;if(!1===p)return e;if(null===p||!p&&Ke(u)){const n=t.identifiers[u],i=r.isGloballyAllowed(u),o=Ss(u);return s||n||o||i&&!c[u]?n||(e.constType=o?3:2):(As(c[u])&&(e.constType=1),e.content=l(u)),e}if(!p){const r=n?` ${u} `:`(${u})${s?"=>{}":""}`;try{p=i.parse(r,{plugins:t.expressionPlugins}).program}catch(s){return t.onError(Ae(45,e.loc,void 0,s.message)),e}}const d=[],f=[],m=Object.create(t.identifiers);Ie(p,((e,t,s,n,i)=>{if(De(e,t))return;if(e.name.startsWith("_filter_"))return;const o=n&&function(e){if(r.isGloballyAllowed(e.name))return!1;if("require"===e.name)return!1;return!0}(e);o&&!i?(Re(t)&&t.shorthand&&(e.prefix=`${e.name}: `),e.name=l(e.name,t,e),d.push(e)):(o&&i||h||(e.isConstant=!0),d.push(e))}),!0,f,m);const g=[];let y;return d.sort(((e,t)=>e.start-t.start)),d.forEach(((t,s)=>{const r=t.start-1,n=t.end-1,i=d[s-1],o=u.slice(i?i.end-1:0,r);(o.length||t.prefix)&&g.push(o+(t.prefix||""));const a=u.slice(r,n);g.push(ee(t.name,!1,{start:Je(e.loc.start,a,r),end:Je(e.loc.start,a,n),source:a},t.isConstant?3:0)),s===d.length-1&&n<u.length&&g.push(u.slice(n))})),g.length?(y=te(g,e.loc),y.ast=p):(y=e,y.constType=h?0:3),y.identifiers=Object.keys(m),y}function bs(e){return r.isString(e)?e:4===e.type?e.content:e.children.map(bs).join("")}function As(e){return"setup-const"===e||"literal-const"===e}const Ps=ns(/^(if|else|else-if)$/,((e,t,s)=>Is(e,t,s,((e,t,r)=>{const n=s.parent.children;let i=n.indexOf(e),o=0;for(;i-- >=0;){const e=n[i];e&&9===e.type&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Ns(t,o,s);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=Ns(t,o+e.branches.length-1,s)}}}))));function Is(e,t,s,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;s.onError(Ae(28,t.loc)),t.exp=ee("true",!1,r)}if(s.prefixIdentifiers&&t.exp&&(t.exp=Ts(t.exp,s)),"if"===t.name){const n=Cs(e,t),i={type:9,loc:e.loc,branches:[n]};if(s.replaceNode(i),r)return r(i,n,!0)}else{const n=s.parent.children;let i=n.indexOf(e);for(;i-- >=-1;){const o=n[i];if(o&&3===o.type)s.removeNode(o);else{if(!o||2!==o.type||o.content.trim().length){if(o&&9===o.type){"else-if"===t.name&&void 0===o.branches[o.branches.length-1].condition&&s.onError(Ae(30,e.loc)),s.removeNode();const n=Cs(e,t);{const e=n.userKey;e&&o.branches.forEach((({userKey:t})=>{ws(t,e)&&s.onError(Ae(29,n.userKey.loc))}))}o.branches.push(n);const i=r&&r(o,n,!1);rs(n,s),i&&i(),s.currentNode=null}else s.onError(Ae(30,e.loc));break}s.removeNode(o)}}}}function Cs(e,t){const s=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:s&&!ze(e,"for")?e.children:[e],userKey:Xe(e,"key"),isTemplateIf:s}}function Ns(e,t,s){return e.condition?ne(e.condition,_s(e,t,s),se(s.helper(S),['""',"true"])):_s(e,t,s)}function _s(e,t,s){const{helper:n}=s,i=Z("key",ee(`${t}`,!1,J,2)),{children:o}=e,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const e=a.codegenNode;return it(e,i,s),e}{let t=64;return r.PatchFlagNames[64],z(s,n(c),Q([i]),o,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=lt(e);return 13===t.type&&le(t,s),it(t,i,s),e}}function ws(e,t){if(!e||e.type!==t.type)return!1;if(6===e.type){if(e.value.content!==t.value.content)return!1}else{const s=e.exp,r=t.exp;if(s.type!==r.type)return!1;if(4!==s.type||s.isStatic!==r.isStatic||s.content!==r.content)return!1}return!0}const xs=ns("for",((e,t,s)=>{const{helper:r,removeHelper:n}=s;return Os(e,t,s,(t=>{const i=se(r(C),[t.source]),o=tt(e),a=ze(e,"memo"),l=Xe(e,"key"),u=l&&(6===l.type?ee(l.value.content,!0):l.exp),h=l?Z("key",u):null;o&&(a&&(a.exp=Ts(a.exp,s)),h&&6!==l.type&&(h.value=Ts(h.value,s)));const p=4===t.source.type&&t.source.constType>0,f=p?64:l?128:256;return t.codegenNode=z(s,r(c),void 0,i,f+"",void 0,void 0,!0,!p,!1,e.loc),()=>{let l;const{children:f}=t;o&&e.children.some((e=>{if(1===e.type){const t=Xe(e,"key");if(t)return s.onError(Ae(33,t.loc)),!0}}));const m=1!==f.length||1!==f[0].type,g=st(e)?e:o&&1===e.children.length&&st(e.children[0])?e.children[0]:null;if(g?(l=g.codegenNode,o&&h&&it(l,h,s)):m?l=z(s,r(c),h?Q([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=f[0].codegenNode,o&&h&&it(l,h,s),l.isBlock!==!p&&(l.isBlock?(n(d),n(ce(s.inSSR,l.isComponent))):n(ae(s.inSSR,l.isComponent))),l.isBlock=!p,l.isBlock?(r(d),r(ce(s.inSSR,l.isComponent))):r(ae(s.inSSR,l.isComponent))),a){const e=re(ks(t.parseResult,[ee("_cached")]));e.body=oe([te(["const _memo = (",a.exp,")"]),te(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${s.helperString(W)}(_cached, _memo)) return _cached`]),te(["const _item = ",l]),ee("_item.memo = _memo"),ee("return _item")]),i.arguments.push(e,ee("_cache"),ee(String(s.cached++)))}else i.arguments.push(re(ks(t.parseResult),l,!0))}}))}));function Os(e,t,s,r){if(!t.exp)return void s.onError(Ae(31,t.loc));const n=t.forParseResult;if(!n)return void s.onError(Ae(32,t.loc));Ms(n,s);const{addIdentifiers:i,removeIdentifiers:o,scopes:a}=s,{source:c,value:l,key:u,index:h}=n,p={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:h,parseResult:n,children:tt(e)?e.children:[e]};s.replaceNode(p),a.vFor++,s.prefixIdentifiers&&(l&&i(l),u&&i(u),h&&i(h));const d=r&&r(p);return()=>{a.vFor--,s.prefixIdentifiers&&(l&&o(l),u&&o(u),h&&o(h)),d&&d()}}function Ms(e,t){e.finalized||(t.prefixIdentifiers&&(e.source=Ts(e.source,t),e.key&&(e.key=Ts(e.key,t,!0)),e.index&&(e.index=Ts(e.index,t,!0)),e.value&&(e.value=Ts(e.value,t,!0))),e.finalized=!0)}function ks({value:e,key:t,index:s},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||ee("_".repeat(t+1),!1)))}([e,t,s,...r])}const Ls=ee("undefined",!1),Rs=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const s=ze(e,"slot");if(s){const e=s.exp;return t.prefixIdentifiers&&e&&t.addIdentifiers(e),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&e&&t.removeIdentifiers(e),t.scopes.vSlot--}}}},Ds=(e,t)=>{let s;if(tt(e)&&e.props.some(et)&&(s=ze(e,"for"))){const e=s.forParseResult;if(e){Ms(e,t);const{value:s,key:r,index:n}=e,{addIdentifiers:i,removeIdentifiers:o}=t;return s&&i(s),r&&i(r),n&&i(n),()=>{s&&o(s),r&&o(r),n&&o(n)}}}},Fs=(e,t,s,r)=>re(e,s,!1,!0,s.length?s[0].loc:r);function Bs(e,t,s=Fs){t.helper(K);const{children:r,loc:n}=e,i=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&(a=ct(e,t.identifiers));const c=ze(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ue(e)&&(a=!0),i.push(Z(e||ee("default",!0),s(t,void 0,r,n)))}let l=!1,u=!1;const h=[],p=new Set;let d=0;for(let e=0;e<r.length;e++){const n=r[e];let f;if(!tt(n)||!(f=ze(n,"slot",!0))){3!==n.type&&h.push(n);continue}if(c){t.onError(Ae(37,f.loc));break}l=!0;const{children:m,loc:g}=n,{arg:y=ee("default",!0),exp:S,loc:E}=f;let v;Ue(y)?v=y?y.content:"default":a=!0;const T=ze(n,"for"),b=s(S,T,m,g);let A,P;if(A=ze(n,"if"))a=!0,o.push(ne(A.exp,Us(y,b,d++),Ls));else if(P=ze(n,/^else(-if)?$/,!0)){let s,n=e;for(;n--&&(s=r[n],3===s.type););if(s&&tt(s)&&ze(s,"if")){r.splice(e,1),e--;let t=o[o.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=P.exp?ne(P.exp,Us(y,b,d++),Ls):Us(y,b,d++)}else t.onError(Ae(30,P.loc))}else if(T){a=!0;const e=T.forParseResult;e?(Ms(e,t),o.push(se(t.helper(C),[e.source,re(ks(e),Us(y,b),!0)]))):t.onError(Ae(32,T.loc))}else{if(v){if(p.has(v)){t.onError(Ae(38,E));continue}p.add(v),"default"===v&&(u=!0)}i.push(Z(y,b))}}if(!c){const e=(e,r)=>{const i=s(e,void 0,r,n);return t.compatConfig&&(i.isNonScopedSlot=!0),Z("default",i)};l?h.length&&h.some((e=>Gs(e)))&&(u?t.onError(Ae(39,h[0].loc)):i.push(e(void 0,h))):i.push(e(void 0,r))}const f=a?2:Hs(e.children)?3:1;let m=Q(i.concat(Z("_",ee(f+"",!1))),n);return o.length&&(m=se(t.helper(_),[m,X(o)])),{slots:m,hasDynamicSlots:a}}function Us(e,t,s){const r=[Z("name",e),Z("fn",t)];return null!=s&&r.push(Z("key",ee(String(s),!0))),Q(r)}function Hs(e){for(let t=0;t<e.length;t++){const s=e[t];switch(s.type){case 1:if(2===s.tagType||Hs(s.children))return!0;break;case 9:if(Hs(s.branches))return!0;break;case 10:case 11:if(Hs(s.children))return!0}}return!1}function Gs(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():Gs(e.content))}const Ks=new WeakMap,js=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:s,props:n}=e,i=1===e.tagType;let o=i?$s(e,t):`"${s}"`;const a=r.isObject(o)&&o.callee===b;let c,p,d,f,m,g,y=0,S=a||o===l||o===u||!i&&("svg"===s||"foreignObject"===s);if(n.length>0){const s=Ws(e,t,void 0,i,a);c=s.props,y=s.patchFlag,m=s.dynamicPropNames;const r=s.directives;g=r&&r.length?X(r.map((e=>Ys(e,t)))):void 0,s.shouldUseBlock&&(S=!0)}if(e.children.length>0){o===h&&(S=!0,y|=1024);if(i&&o!==l&&o!==h){const{slots:s,hasDynamicSlots:r}=Bs(e,t);p=s,r&&(y|=1024)}else if(1===e.children.length&&o!==l){const s=e.children[0],r=s.type,n=5===r||8===r;n&&0===Yt(s,t)&&(y|=1),p=n||2===r?s:e.children}else p=e.children}0!==y&&(d=String(y),m&&m.length&&(f=function(e){let t="[";for(let s=0,r=e.length;s<r;s++)t+=JSON.stringify(e[s]),s<r-1&&(t+=", ");return t+"]"}(m))),e.codegenNode=z(t,o,c,p,d,f,g,!!S,!1,i,e.loc)};function $s(e,t,s=!1){let{tag:n}=e;const i=zs(n),o=Xe(e,"is");if(o)if(i||Ee("COMPILER_IS_ON_ELEMENT",t)){const e=6===o.type?o.value&&ee(o.value.content,!0):o.exp;if(e)return se(t.helper(b),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(n=o.value.content.slice(4));const a=He(n)||t.isBuiltInComponent(n);if(a)return s||t.helper(a),a;{const e=Vs(n,t);if(e)return e;const s=n.indexOf(".");if(s>0){const e=Vs(n.slice(0,s),t);if(e)return e+n.slice(s)}}return t.selfName&&r.capitalize(r.camelize(n))===t.selfName?(t.helper(T),t.components.add(n+"__self"),at(n,"component")):(t.helper(T),t.components.add(n),at(n,"component"))}function Vs(e,t){const s=t.bindingMetadata;if(!s||!1===s.__isScriptSetup)return;const n=r.camelize(e),i=r.capitalize(n),o=t=>s[e]===t?e:s[n]===t?n:s[i]===t?i:void 0,a=o("setup-const")||o("setup-reactive-const")||o("literal-const");if(a)return t.inline?a:`$setup[${JSON.stringify(a)}]`;const c=o("setup-let")||o("setup-ref")||o("setup-maybe-ref");if(c)return t.inline?`${t.helperString(j)}(${c})`:`$setup[${JSON.stringify(c)}]`;const l=o("props");return l?`${t.helperString(j)}(${t.inline?"__props":"$props"}[${JSON.stringify(l)}])`:void 0}function Ws(e,t,s=e.props,n,i,o=!1){const{tag:a,loc:c,children:l}=e;let u=[];const h=[],p=[],d=l.length>0;let f=!1,m=0,g=!1,y=!1,S=!1,E=!1,v=!1,T=!1;const b=[],A=e=>{u.length&&(h.push(Q(qs(u),c)),u=[]),e&&h.push(e)},P=({key:e,value:s})=>{if(Ue(e)){const o=e.content,a=r.isOn(o);if(!a||n&&!i||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||r.isReservedProp(o)||(E=!0),a&&r.isReservedProp(o)&&(T=!0),a&&14===s.type&&(s=s.arguments[0]),20===s.type||(4===s.type||8===s.type)&&Yt(s,t)>0)return;"ref"===o?g=!0:"class"===o?y=!0:"style"===o?S=!0:"key"===o||b.includes(o)||b.push(o),!n||"class"!==o&&"style"!==o||b.includes(o)||b.push(o)}else v=!0};for(let i=0;i<s.length;i++){const l=s[i];if(6===l.type){const{loc:e,name:s,nameLoc:r,value:n}=l;let i=!0;if("ref"===s&&(g=!0,t.scopes.vFor>0&&u.push(Z(ee("ref_for",!0),ee("true"))),n&&t.inline)){const e=t.bindingMetadata[n.content];"setup-let"!==e&&"setup-ref"!==e&&"setup-maybe-ref"!==e||(i=!1,u.push(Z(ee("ref_key",!0),ee(n.content,!0,n.loc))))}if("is"===s&&(zs(a)||n&&n.content.startsWith("vue:")||Ee("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Z(ee(s,!0,r),ee(n?n.content:"",i,n?n.loc:e)))}else{const{name:s,arg:i,exp:g,loc:y,modifiers:S}=l,E="bind"===s,T="on"===s;if("slot"===s){n||t.onError(Ae(40,y));continue}if("once"===s||"memo"===s)continue;if("is"===s||E&&Qe(i,"is")&&(zs(a)||Ee("COMPILER_IS_ON_ELEMENT",t)))continue;if(T&&o)continue;if((E&&Qe(i,"key")||T&&d&&Qe(i,"vue:before-update"))&&(f=!0),E&&Qe(i,"ref")&&t.scopes.vFor>0&&u.push(Z(ee("ref_for",!0),ee("true"))),!i&&(E||T)){if(v=!0,g)if(E){if(A(),Ee("COMPILER_V_BIND_OBJECT_ORDER",t)){h.unshift(g);continue}h.push(g)}else A({type:14,loc:y,callee:t.helper(R),arguments:n?[g]:[g,"true"]});else t.onError(Ae(E?34:35,y));continue}E&&S.includes("prop")&&(m|=32);const b=t.directiveTransforms[s];if(b){const{props:s,needRuntime:n}=b(l,e,t);!o&&s.forEach(P),T&&i&&!Ue(i)?A(Q(s,c)):u.push(...s),n&&(p.push(l),r.isSymbol(n)&&Ks.set(l,n))}else r.isBuiltInDirective(s)||(p.push(l),d&&(f=!0))}}let I;if(h.length?(A(),I=h.length>1?se(t.helper(x),h,c):h[0]):u.length&&(I=Q(qs(u),c)),v?m|=16:(y&&!n&&(m|=2),S&&!n&&(m|=4),b.length&&(m|=8),E&&(m|=32)),f||0!==m&&32!==m||!(g||T||p.length>0)||(m|=512),!t.inSSR&&I)switch(I.type){case 15:let e=-1,s=-1,r=!1;for(let t=0;t<I.properties.length;t++){const n=I.properties[t].key;Ue(n)?"class"===n.content?e=t:"style"===n.content&&(s=t):n.isHandlerKey||(r=!0)}const n=I.properties[e],i=I.properties[s];r?I=se(t.helper(k),[I]):(n&&!Ue(n.value)&&(n.value=se(t.helper(O),[n.value])),i&&(S||4===i.value.type&&"["===i.value.content.trim()[0]||17===i.value.type)&&(i.value=se(t.helper(M),[i.value])));break;case 14:break;default:I=se(t.helper(k),[se(t.helper(L),[I])])}return{props:I,directives:p,patchFlag:m,dynamicPropNames:b,shouldUseBlock:f}}function qs(e){const t=new Map,s=[];for(let n=0;n<e.length;n++){const i=e[n];if(8===i.key.type||!i.key.isStatic){s.push(i);continue}const o=i.key.content,a=t.get(o);a?("style"===o||"class"===o||r.isOn(o))&&Js(a,i):(t.set(o,i),s.push(i))}return s}function Js(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=X([e.value,t.value],e.loc)}function Ys(e,t){const s=[],r=Ks.get(e);if(r)s.push(t.helperString(r));else{const r=Vs("v-"+e.name,t);r?s.push(r):(t.helper(A),t.directives.add(e.name),s.push(at(e.name,"directive")))}const{loc:n}=e;if(e.exp&&s.push(e.exp),e.arg&&(e.exp||s.push("void 0"),s.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||s.push("void 0"),s.push("void 0"));const t=ee("true",!1,n);s.push(Q(e.modifiers.map((e=>Z(e,t))),n))}return X(s,e.loc)}function zs(e){return"component"===e||"Component"===e}const Xs=(e,t)=>{if(st(e)){const{children:s,loc:r}=e,{slotName:n,slotProps:i}=Qs(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let a=2;i&&(o[2]=i,a=3),s.length&&(o[3]=re([],s,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=se(t.helper(N),o,r)}};function Qs(e,t){let s,n='"default"';const i=[];for(let s=0;s<e.props.length;s++){const o=e.props[s];if(6===o.type)o.value&&("name"===o.name?n=JSON.stringify(o.value.content):(o.name=r.camelize(o.name),i.push(o)));else if("bind"===o.name&&Qe(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&4===o.arg.type){const e=r.camelize(o.arg.content);n=o.exp=ee(e,!1,o.arg.loc),n=o.exp=Ts(o.exp,t)}}else"bind"===o.name&&o.arg&&Ue(o.arg)&&(o.arg.content=r.camelize(o.arg.content)),i.push(o)}if(i.length>0){const{props:r,directives:n}=Ws(e,t,i,!1,!1);s=r,n.length&&t.onError(Ae(36,n[0].loc))}return{slotName:n,slotProps:s}}const Zs=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,er=(e,t,s,n)=>{const{loc:i,modifiers:o,arg:a}=e;let c;if(e.exp||o.length||s.onError(Ae(35,i)),4===a.type)if(a.isStatic){let e=a.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);c=ee(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?r.toHandlerKey(r.camelize(e)):`on:${e}`,!0,a.loc)}else c=te([`${s.helperString(B)}(`,a,")"]);else c=a,c.children.unshift(`${s.helperString(B)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=s.cacheHandlers&&!l&&!s.inVOnce;if(l){const r=qe(l.content,s),n=!(r||Zs.test(l.content)),i=l.content.includes(";");s.prefixIdentifiers&&(n&&s.addIdentifiers("$event"),l=e.exp=Ts(l,s,!1,i),n&&s.removeIdentifiers("$event"),u=s.cacheHandlers&&!s.inVOnce&&!(4===l.type&&l.constType>0)&&!(r&&1===t.tagType)&&!ct(l,s.identifiers),u&&r&&(4===l.type?l.content=`${l.content} && ${l.content}(...args)`:l.children=[...l.children," && ",...l.children,"(...args)"])),(n||u&&r)&&(l=te([`${n?s.isTS?"($event: any)":"$event":(s.isTS?"\n//@ts-ignore\n":"")+"(...args)"} => ${i?"{":"("}`,l,i?"}":")"]))}let h={props:[Z(c,l||ee("() => {}",!1,i))]};return n&&(h=n(h)),u&&(h.props[0].value=s.cache(h.props[0].value)),h.props.forEach((e=>e.key.isHandlerKey=!0)),h},tr=(e,t,s)=>{const{modifiers:n,loc:i}=e,o=e.arg;let{exp:a}=e;if(a&&4===a.type&&!a.content.trim())return s.onError(Ae(34,i)),{props:[Z(o,ee("",!0,i))]};if(!a){if(4!==o.type||!o.isStatic)return s.onError(Ae(52,o.loc)),{props:[Z(o,ee("",!0,i))]};const t=r.camelize(o.content);a=e.exp=ee(t,!1,o.loc),a=e.exp=Ts(a,s)}return 4!==o.type?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),n.includes("camel")&&(4===o.type?o.isStatic?o.content=r.camelize(o.content):o.content=`${s.helperString(D)}(${o.content})`:(o.children.unshift(`${s.helperString(D)}(`),o.children.push(")"))),s.inSSR||(n.includes("prop")&&sr(o,"."),n.includes("attr")&&sr(o,"^")),{props:[Z(o,a)]}},sr=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},rr=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const s=e.children;let r,n=!1;for(let e=0;e<s.length;e++){const t=s[e];if(Ze(t)){n=!0;for(let n=e+1;n<s.length;n++){const i=s[n];if(!Ze(i)){r=void 0;break}r||(r=s[e]=te([t],t.loc)),r.children.push(" + ",i),s.splice(n,1),n--}}}if(n&&(1!==s.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<s.length;e++){const r=s[e];if(Ze(r)||8===r.type){const n=[];2===r.type&&" "===r.content||n.push(r),t.ssr||0!==Yt(r,t)||n.push("1"),s[e]={type:12,content:r,loc:r.loc,codegenNode:se(t.helper(E),n)}}}}},nr=new WeakSet,ir=(e,t)=>{if(1===e.type&&ze(e,"once",!0)){if(nr.has(e)||t.inVOnce||t.inSSR)return;return nr.add(e),t.inVOnce=!0,t.helper(U),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},or=(e,t,s)=>{const{exp:n,arg:i}=e;if(!n)return s.onError(Ae(41,e.loc)),ar();const o=n.loc.source,a=4===n.type?n.content:o,c=s.bindingMetadata[o];if("props"===c||"props-aliased"===c)return s.onError(Ae(44,n.loc)),ar();const l=s.inline&&("setup-let"===c||"setup-ref"===c||"setup-maybe-ref"===c);if(!a.trim()||!qe(a,s)&&!l)return s.onError(Ae(42,n.loc)),ar();if(s.prefixIdentifiers&&Ke(a)&&s.identifiers[a])return s.onError(Ae(43,n.loc)),ar();const u=i||ee("modelValue",!0),h=i?Ue(i)?`onUpdate:${r.camelize(i.content)}`:te(['"onUpdate:" + ',i]):"onUpdate:modelValue";let p;const d=s.isTS?"($event: any)":"$event";if(l)if("setup-ref"===c)p=te([`${d} => ((`,ee(o,!1,n.loc),").value = $event)"]);else{const e="setup-let"===c?`${o} = $event`:"null";p=te([`${d} => (${s.helperString($)}(${o}) ? (`,ee(o,!1,n.loc),`).value = $event : ${e})`])}else p=te([`${d} => ((`,n,") = $event)"]);const f=[Z(u,e.exp),Z(h,p)];if(s.prefixIdentifiers&&!s.inVOnce&&s.cacheHandlers&&!ct(n,s.identifiers)&&(f[1].value=s.cache(f[1].value)),e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Ke(e)?e:JSON.stringify(e))+": true")).join(", "),s=i?Ue(i)?`${i.content}Modifiers`:te([i,' + "Modifiers"']):"modelModifiers";f.push(Z(s,ee(`{ ${t} }`,!1,e.loc,2)))}return ar(f)};function ar(e=[]){return{props:e}}const cr=/[\w).+\-_$\]]/,lr=(e,t)=>{Ee("COMPILER_FILTERS",t)&&(5===e.type&&ur(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&ur(e.exp,t)})))};function ur(e,t){if(4===e.type)hr(e,t);else for(let s=0;s<e.children.length;s++){const r=e.children[s];"object"==typeof r&&(4===r.type?hr(r,t):8===r.type?ur(e,t):5===r.type&&ur(r.content,t))}}function hr(e,t){const s=e.content;let r,n,i,o,a=!1,c=!1,l=!1,u=!1,h=0,p=0,d=0,f=0,m=[];for(i=0;i<s.length;i++)if(n=r,r=s.charCodeAt(i),a)39===r&&92!==n&&(a=!1);else if(c)34===r&&92!==n&&(c=!1);else if(l)96===r&&92!==n&&(l=!1);else if(u)47===r&&92!==n&&(u=!1);else if(124!==r||124===s.charCodeAt(i+1)||124===s.charCodeAt(i-1)||h||p||d){switch(r){case 34:c=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:p++;break;case 93:p--;break;case 123:h++;break;case 125:h--}if(47===r){let e,t=i-1;for(;t>=0&&(e=s.charAt(t)," "===e);t--);e&&cr.test(e)||(u=!0)}}else void 0===o?(f=i+1,o=s.slice(0,i).trim()):g();function g(){m.push(s.slice(f,i).trim()),f=i+1}if(void 0===o?o=s.slice(0,i).trim():0!==f&&g(),m.length){for(i=0;i<m.length;i++)o=pr(o,m[i],t);e.content=o}}function pr(e,t,s){s.helper(P);const r=t.indexOf("(");if(r<0)return s.filters.add(t),`${at(t,"filter")}(${e})`;{const n=t.slice(0,r),i=t.slice(r+1);return s.filters.add(n),`${at(n,"filter")}(${e}${")"!==i?","+i:i}`}}const dr=new WeakSet,fr=(e,t)=>{if(1===e.type){const s=ze(e,"memo");if(!s||dr.has(e))return;return dr.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&le(r,t),e.codegenNode=se(t.helper(V),[s.exp,re(void 0,r),"_cache",String(t.cached++)]))}}};function mr(e){return[[ir,Ps,fr,xs,lr,...e?[Ds,vs]:[],Xs,js,Rs,rr],{on:er,bind:tr,model:or}]}t.generateCodeFrame=r.generateCodeFrame,t.BASE_TRANSITION=p,t.BindingTypes={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},t.CAMELIZE=D,t.CAPITALIZE=F,t.CREATE_BLOCK=f,t.CREATE_COMMENT=S,t.CREATE_ELEMENT_BLOCK=m,t.CREATE_ELEMENT_VNODE=y,t.CREATE_SLOTS=_,t.CREATE_STATIC=v,t.CREATE_TEXT=E,t.CREATE_VNODE=g,t.CompilerDeprecationTypes={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},t.ConstantTypes={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_HOIST:2,2:"CAN_HOIST",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},t.ElementTypes={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},t.ErrorCodes={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},t.FRAGMENT=c,t.GUARD_REACTIVE_PROPS=L,t.IS_MEMO_SAME=W,t.IS_REF=$,t.KEEP_ALIVE=h,t.MERGE_PROPS=x,t.NORMALIZE_CLASS=O,t.NORMALIZE_PROPS=k,t.NORMALIZE_STYLE=M,t.Namespaces={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},t.NodeTypes={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},t.OPEN_BLOCK=d,t.POP_SCOPE_ID=G,t.PUSH_SCOPE_ID=H,t.RENDER_LIST=C,t.RENDER_SLOT=N,t.RESOLVE_COMPONENT=T,t.RESOLVE_DIRECTIVE=A,t.RESOLVE_DYNAMIC_COMPONENT=b,t.RESOLVE_FILTER=P,t.SET_BLOCK_TRACKING=U,t.SUSPENSE=u,t.TELEPORT=l,t.TO_DISPLAY_STRING=w,t.TO_HANDLERS=R,t.TO_HANDLER_KEY=B,t.TS_NODE_TYPES=Fe,t.UNREF=j,t.WITH_CTX=K,t.WITH_DIRECTIVES=I,t.WITH_MEMO=V,t.advancePositionWithClone=Je,t.advancePositionWithMutation=Ye,t.assert=function(e,t){if(!e)throw new Error(t||"unexpected compiler condition")},t.baseCompile=function(e,t={}){const s=t.onError||Te,n="module"===t.mode,i=!0===t.prefixIdentifiers||n;!i&&t.cacheHandlers&&s(Ae(49)),t.scopeId&&!n&&s(Ae(50));const o=r.extend({},t,{prefixIdentifiers:i}),a=r.isString(e)?Vt(e,o):e,[c,l]=mr(i);if(t.isTS){const{expressionPlugins:e}=t;e&&e.includes("typescript")||(t.expressionPlugins=[...e||[],"typescript"])}return ss(a,r.extend({},o,{nodeTransforms:[...c,...t.nodeTransforms||[]],directiveTransforms:r.extend({},l,t.directiveTransforms||{})})),cs(a,o)},t.baseParse=Vt,t.buildDirectiveArgs=Ys,t.buildProps=Ws,t.buildSlots=Bs,t.checkCompatEnabled=ve,t.convertToBlock=le,t.createArrayExpression=X,t.createAssignmentExpression=function(e,t){return{type:24,left:e,right:t,loc:J}},t.createBlockStatement=oe,t.createCacheExpression=ie,t.createCallExpression=se,t.createCompilerError=Ae,t.createCompoundExpression=te,t.createConditionalExpression=ne,t.createForLoopParams=ks,t.createFunctionExpression=re,t.createIfStatement=function(e,t,s){return{type:23,test:e,consequent:t,alternate:s,loc:J}},t.createInterpolation=function(e,t){return{type:5,loc:t,content:r.isString(e)?ee(e,!1,t):e}},t.createObjectExpression=Q,t.createObjectProperty=Z,t.createReturnStatement=function(e){return{type:26,returns:e,loc:J}},t.createRoot=Y,t.createSequenceExpression=function(e){return{type:25,expressions:e,loc:J}},t.createSimpleExpression=ee,t.createStructuralDirectiveTransform=ns,t.createTemplateLiteral=function(e){return{type:22,elements:e,loc:J}},t.createTransformContext=ts,t.createVNodeCall=z,t.errorMessages=Pe,t.extractIdentifiers=Oe,t.findDir=ze,t.findProp=Xe,t.forAliasRE=ut,t.generate=cs,t.getBaseTransformPreset=mr,t.getConstantType=Yt,t.getMemoedVNodeCall=lt,t.getVNodeBlockHelper=ce,t.getVNodeHelper=ae,t.hasDynamicKeyVBind=function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))},t.hasScopeRef=ct,t.helperNameMap=q,t.injectProp=it,t.isCoreComponent=He,t.isFunctionType=Le,t.isInDestructureAssignment=Ne,t.isInNewExpression=_e,t.isMemberExpression=qe,t.isMemberExpressionBrowser=e=>{e=e.trim().replace(Ve,(e=>e.trim()));let t=0,s=[],r=0,n=0,i=null;for(let o=0;o<e.length;o++){const a=e.charAt(o);switch(t){case 0:if("["===a)s.push(t),t=1,r++;else if("("===a)s.push(t),t=2,n++;else if(!(0===o?je:$e).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(s.push(t),t=3,i=a):"["===a?r++:"]"===a&&(--r||(t=s.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)s.push(t),t=3,i=a;else if("("===a)n++;else if(")"===a){if(o===e.length-1)return!1;--n||(t=s.pop())}break;case 3:a===i&&(t=s.pop(),i=null)}}return!r&&!n},t.isMemberExpressionNode=We,t.isReferencedIdentifier=Ce,t.isSimpleIdentifier=Ke,t.isSlotOutlet=st,t.isStaticArgOf=Qe,t.isStaticExp=Ue,t.isStaticProperty=Re,t.isStaticPropertyKey=De,t.isTemplateNode=tt,t.isText=Ze,t.isVSlot=et,t.locStub=J,t.noopDirectiveTransform=()=>({props:[]}),t.processExpression=Ts,t.processFor=Os,t.processIf=Is,t.processSlotOutlet=Qs,t.registerRuntimeHelpers=function(e){Object.getOwnPropertySymbols(e).forEach((t=>{q[t]=e[t]}))},t.resolveComponentType=$s,t.stringifyExpression=bs,t.toValidAssetId=at,t.trackSlotScopes=Rs,t.trackVForSlotScopes=Ds,t.transform=ss,t.transformBind=tr,t.transformElement=js,t.transformExpression=vs,t.transformModel=or,t.transformOn=er,t.traverseNode=rs,t.unwrapTSNode=Be,t.walkBlockDeclarations=xe,t.walkFunctionParams=we,t.walkIdentifiers=Ie,t.warnDeprecation=function(e,t,s,...r){if("suppress-warning"===Se(e,t))return;const{message:n,link:i}=ye[e],o=`(deprecation ${e}) ${"function"==typeof n?n(...r):n}${i?`\n Details: ${i}`:""}`,a=new SyntaxError(o);a.code=e,s&&(a.loc=s),t.onWarn(a)}},9464:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(5264),n=s(8952);const i=Symbol(""),o=Symbol(""),a=Symbol(""),c=Symbol(""),l=Symbol(""),u=Symbol(""),h=Symbol(""),p=Symbol(""),d=Symbol(""),f=Symbol("");r.registerRuntimeHelpers({[i]:"vModelRadio",[o]:"vModelCheckbox",[a]:"vModelText",[c]:"vModelSelect",[l]:"vModelDynamic",[u]:"withModifiers",[h]:"withKeys",[p]:"vShow",[d]:"Transition",[f]:"TransitionGroup"});const m={parseMode:"html",isVoidTag:n.isVoidTag,isNativeTag:e=>n.isHTMLTag(e)||n.isSVGTag(e)||n.isMathMLTag(e),isPreTag:e=>"pre"===e,decodeEntities:void 0,isBuiltInComponent:e=>"Transition"===e||"transition"===e?d:"TransitionGroup"===e||"transition-group"===e?f:void 0,getNamespace(e,t,s){let r=t?t.ns:s;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},g=e=>{1===e.type&&e.props.forEach(((t,s)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[s]={type:7,name:"bind",arg:r.createSimpleExpression("style",!0,t.loc),exp:y(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},y=(e,t)=>{const s=n.parseStringStyle(e);return r.createSimpleExpression(JSON.stringify(s),!1,t,3)};function S(e,t){return r.createCompilerError(e,t,E)}const E={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},v=n.makeMap("passive,once,capture"),T=n.makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),b=n.makeMap("left,right"),A=n.makeMap("onkeyup,onkeydown,onkeypress",!0),P=(e,t)=>r.isStaticExp(e)&&"onclick"===e.content.toLowerCase()?r.createSimpleExpression(t,!0):4!==e.type?r.createCompoundExpression(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,I=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,C=(e,t,s)=>{if(t.scopes.vSlot>0)return;let n=0,i=0;const o=[],a=s=>{if(n>=20||i>=5){const n=r.createCallExpression(t.helper(r.CREATE_STATIC),[JSON.stringify(o.map((e=>k(e,t))).join("")).replace(I,'" + $1 + "'),String(o.length)]);if(x(o[0],n,t),o.length>1){for(let e=1;e<o.length;e++)x(o[e],null,t);const r=o.length-1;return e.splice(s-o.length+1,r),r}}return 0};let c=0;for(;c<e.length;c++){const t=e[c];if(N(t)){const e=t,s=M(e);if(s){n+=s[0],i+=s[1],o.push(e);continue}}c-=a(c),n=0,i=0,o.length=0}a(c)},N=e=>(1===e.type&&0===e.tagType||12==e.type)&&e.codegenNode&&4===e.codegenNode.type&&e.codegenNode.hoisted,_=/^(data|aria)-/,w=(e,t)=>(0===t?n.isKnownHtmlAttr(e):1===t&&n.isKnownSvgAttr(e))||_.test(e),x=(e,t,s)=>{const r=e.codegenNode.hoisted;s.hoists[s.hoists.indexOf(r)]=t},O=n.makeMap("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function M(e){if(1===e.type&&O(e.tag))return!1;if(12===e.type)return[1,0];let t=1,s=e.props.length>0?1:0,r=!1;const n=()=>(r=!0,!1);return!!function e(i){for(let e=0;e<i.props.length;e++){const t=i.props[e];if(6===t.type&&!w(t.name,i.ns))return n();if(7===t.type&&"bind"===t.name){if(t.arg&&(8===t.arg.type||t.arg.isStatic&&!w(t.arg.content,i.ns)))return n();if(t.exp&&(8===t.exp.type||t.exp.constType<3))return n()}}for(let n=0;n<i.children.length;n++){t++;const o=i.children[n];if(1===o.type&&(o.props.length>0&&s++,e(o),r))return!1}return!0}(e)&&[t,s]}function k(e,t){if(n.isString(e))return e;if(n.isSymbol(e))return"";switch(e.type){case 1:return function(e,t){let s=`<${e.tag}`,r="";for(let t=0;t<e.props.length;t++){const i=e.props[t];if(6===i.type)s+=` ${i.name}`,i.value&&(s+=`="${n.escapeHtml(i.value.content)}"`);else if(7===i.type)if("bind"===i.name){const e=i.exp;if("_"===e.content[0]){s+=` ${i.arg.content}="__VUE_EXP_START__${e.content}__VUE_EXP_END__"`;continue}if(n.isBooleanAttr(i.arg.content)&&"false"===e.content)continue;let t=L(e);if(null!=t){const e=i.arg&&i.arg.content;"class"===e?t=n.normalizeClass(t):"style"===e&&(t=n.stringifyStyle(n.normalizeStyle(t))),s+=` ${i.arg.content}="${n.escapeHtml(t)}"`}}else"html"===i.name?r=L(i.exp):"text"===i.name&&(r=n.escapeHtml(n.toDisplayString(L(i.exp))))}t.scopeId&&(s+=` ${t.scopeId}`);if(s+=">",r)s+=r;else for(let r=0;r<e.children.length;r++)s+=k(e.children[r],t);n.isVoidTag(e.tag)||(s+=`</${e.tag}>`);return s}(e,t);case 2:return n.escapeHtml(e.content);case 3:return`\x3c!--${n.escapeHtml(e.content)}--\x3e`;case 5:return n.escapeHtml(n.toDisplayString(L(e.content)));case 8:return n.escapeHtml(L(e));case 12:return k(e.content,t);default:return""}}function L(e){if(4===e.type)return new Function(`return (${e.content})`)();{let t="";return e.children.forEach((e=>{n.isString(e)||n.isSymbol(e)||(2===e.type?t+=e.content:5===e.type?t+=n.toDisplayString(L(e.content)):t+=L(e))})),t}}const R=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},D=[g],F={cloak:r.noopDirectiveTransform,html:(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(S(53,i)),t.children.length&&(s.onError(S(54,i)),t.children.length=0),{props:[r.createObjectProperty(r.createSimpleExpression("innerHTML",!0,i),n||r.createSimpleExpression("",!0))]}},text:(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(S(55,i)),t.children.length&&(s.onError(S(56,i)),t.children.length=0),{props:[r.createObjectProperty(r.createSimpleExpression("textContent",!0),n?r.getConstantType(n,s)>0?n:r.createCallExpression(s.helperString(r.TO_DISPLAY_STRING),[n],i):r.createSimpleExpression("",!0))]}},model:(e,t,s)=>{const n=r.transformModel(e,t,s);if(!n.props.length||1===t.tagType)return n;e.arg&&s.onError(S(58,e.arg.loc));const{tag:u}=t,h=s.isCustomElement(u);if("input"===u||"textarea"===u||"select"===u||h){let p=a,d=!1;if("input"===u||h){const n=r.findProp(t,"type");if(n){if(7===n.type)p=l;else if(n.value)switch(n.value.content){case"radio":p=i;break;case"checkbox":p=o;break;case"file":d=!0,s.onError(S(59,e.loc))}}else r.hasDynamicKeyVBind(t)&&(p=l)}else"select"===u&&(p=c);d||(n.needRuntime=s.helper(p))}else s.onError(S(57,e.loc));return n.props=n.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),n},on:(e,t,s)=>r.transformOn(e,t,s,(t=>{const{modifiers:i}=e;if(!i.length)return t;let{key:o,value:a}=t.props[0];const{keyModifiers:c,nonKeyModifiers:l,eventOptionModifiers:p}=((e,t,s,n)=>{const i=[],o=[],a=[];for(let c=0;c<t.length;c++){const l=t[c];"native"===l&&r.checkCompatEnabled("COMPILER_V_ON_NATIVE",s,n)||v(l)?a.push(l):b(l)?r.isStaticExp(e)?A(e.content)?i.push(l):o.push(l):(i.push(l),o.push(l)):T(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}})(o,i,s,e.loc);if(l.includes("right")&&(o=P(o,"onContextmenu")),l.includes("middle")&&(o=P(o,"onMouseup")),l.length&&(a=r.createCallExpression(s.helper(u),[a,JSON.stringify(l)])),!c.length||r.isStaticExp(o)&&!A(o.content)||(a=r.createCallExpression(s.helper(h),[a,JSON.stringify(c)])),p.length){const e=p.map(n.capitalize).join("");o=r.isStaticExp(o)?r.createSimpleExpression(`${o.content}${e}`,!0):r.createCompoundExpression(["(",o,`) + "${e}"`])}return{props:[r.createObjectProperty(o,a)]}})),show:(e,t,s)=>{const{exp:r,loc:n}=e;return r||s.onError(S(61,n)),{props:[],needRuntime:s.helper(p)}}};t.DOMDirectiveTransforms=F,t.DOMErrorCodes={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},t.DOMErrorMessages=E,t.DOMNodeTransforms=D,t.TRANSITION=d,t.TRANSITION_GROUP=f,t.V_MODEL_CHECKBOX=o,t.V_MODEL_DYNAMIC=l,t.V_MODEL_RADIO=i,t.V_MODEL_SELECT=c,t.V_MODEL_TEXT=a,t.V_ON_WITH_KEYS=h,t.V_ON_WITH_MODIFIERS=u,t.V_SHOW=p,t.compile=function(e,t={}){return r.baseCompile(e,n.extend({},m,t,{nodeTransforms:[R,...D,...t.nodeTransforms||[]],directiveTransforms:n.extend({},F,t.directiveTransforms||{}),transformHoist:C}))},t.createDOMCompilerError=S,t.parse=function(e,t={}){return r.baseParse(e,n.extend({},m,t))},t.parserOptions=m,t.transformStyle=g,Object.keys(r).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r[e])}))},256:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(8952);let n,i;class o{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=n,!e&&n&&(this.index=(n.scopes||(n.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=n;try{return n=this,e()}finally{n=t}}}on(){n=this}off(){n=this.parent}stop(e){if(this._active){let t,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function a(e,t=n){t&&t.active&&t.effects.push(e)}class c{constructor(e,t,s,r){this.fn=e,this.trigger=t,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,a(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,g();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(l(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),y()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=d,t=i;try{return d=!0,i=this,this._runnings++,u(this),this.fn()}finally{h(this),this._runnings--,i=t,d=e}}stop(){var e;this.active&&(u(this),h(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function l(e){return e.value}function u(e){e._trackId++,e._depsLength=0}function h(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)p(e.deps[t],e);e.deps.length=e._depsLength}}function p(e,t){const s=e.get(t);void 0!==s&&t._trackId!==s&&(e.delete(t),0===e.size&&e.cleanup())}let d=!0,f=0;const m=[];function g(){m.push(d),d=!1}function y(){const e=m.pop();d=void 0===e||e}function S(){f++}function E(){for(f--;!f&&T.length;)T.shift()()}function v(e,t,s){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&p(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const T=[];function b(e,t,s){S();for(const s of e.keys()){let r;s._dirtyLevel<t&&(null!=r?r:r=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=r?r:r=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&T.push(s.scheduler)))}E()}const A=(e,t)=>{const s=new Map;return s.cleanup=e,s.computed=t,s},P=new WeakMap,I=Symbol(""),C=Symbol("");function N(e,t,s){if(d&&i){let t=P.get(e);t||P.set(e,t=new Map);let r=t.get(s);r||t.set(s,r=A((()=>t.delete(s)))),v(i,r)}}function _(e,t,s,n,i,o){const a=P.get(e);if(!a)return;let c=[];if("clear"===t)c=[...a.values()];else if("length"===s&&r.isArray(e)){const e=Number(n);a.forEach(((t,s)=>{("length"===s||!r.isSymbol(s)&&s>=e)&&c.push(t)}))}else switch(void 0!==s&&c.push(a.get(s)),t){case"add":r.isArray(e)?r.isIntegerKey(s)&&c.push(a.get("length")):(c.push(a.get(I)),r.isMap(e)&&c.push(a.get(C)));break;case"delete":r.isArray(e)||(c.push(a.get(I)),r.isMap(e)&&c.push(a.get(C)));break;case"set":r.isMap(e)&&c.push(a.get(I))}S();for(const e of c)e&&b(e,4);E()}const w=r.makeMap("__proto__,__v_isRef,__isVue"),x=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.isSymbol)),O=M();function M(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const s=Ee(this);for(let e=0,t=this.length;e<t;e++)N(s,0,e+"");const r=s[t](...e);return-1===r||!1===r?s[t](...e.map(Ee)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){g(),S();const s=Ee(this)[t].apply(this,e);return E(),y(),s}})),e}function k(e){const t=Ee(this);return N(t,0,e),t.hasOwnProperty(e)}class L{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,s){const n=this._isReadonly,i=this._shallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return s===(n?i?pe:he:i?ue:le).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=r.isArray(e);if(!n){if(o&&r.hasOwn(O,t))return Reflect.get(O,t,s);if("hasOwnProperty"===t)return k}const a=Reflect.get(e,t,s);return(r.isSymbol(t)?x.has(t):w(t))?a:(n||N(e,0,t),i?a:Ce(a)?o&&r.isIntegerKey(t)?a:a.value:r.isObject(a)?n?fe(a):de(a):a)}}class R extends L{constructor(e=!1){super(!1,e)}set(e,t,s,n){let i=e[t];if(!this._shallow){const t=ye(i);if(Se(s)||ye(s)||(i=Ee(i),s=Ee(s)),!r.isArray(e)&&Ce(i)&&!Ce(s))return!t&&(i.value=s,!0)}const o=r.isArray(e)&&r.isIntegerKey(t)?Number(t)<e.length:r.hasOwn(e,t),a=Reflect.set(e,t,s,n);return e===Ee(n)&&(o?r.hasChanged(s,i)&&_(e,"set",t,s):_(e,"add",t,s)),a}deleteProperty(e,t){const s=r.hasOwn(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&s&&_(e,"delete",t,void 0),n}has(e,t){const s=Reflect.has(e,t);return r.isSymbol(t)&&x.has(t)||N(e,0,t),s}ownKeys(e){return N(e,0,r.isArray(e)?"length":I),Reflect.ownKeys(e)}}class D extends L{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const F=new R,B=new D,U=new R(!0),H=new D(!0),G=e=>e,K=e=>Reflect.getPrototypeOf(e);function j(e,t,s=!1,n=!1){const i=Ee(e=e.__v_raw),o=Ee(t);s||(r.hasChanged(t,o)&&N(i,0,t),N(i,0,o));const{has:a}=K(i),c=n?G:s?Te:ve;return a.call(i,t)?c(e.get(t)):a.call(i,o)?c(e.get(o)):void(e!==i&&e.get(t))}function $(e,t=!1){const s=this.__v_raw,n=Ee(s),i=Ee(e);return t||(r.hasChanged(e,i)&&N(n,0,e),N(n,0,i)),e===i?s.has(e):s.has(e)||s.has(i)}function V(e,t=!1){return e=e.__v_raw,!t&&N(Ee(e),0,I),Reflect.get(e,"size",e)}function W(e){e=Ee(e);const t=Ee(this);return K(t).has.call(t,e)||(t.add(e),_(t,"add",e,e)),this}function q(e,t){t=Ee(t);const s=Ee(this),{has:n,get:i}=K(s);let o=n.call(s,e);o||(e=Ee(e),o=n.call(s,e));const a=i.call(s,e);return s.set(e,t),o?r.hasChanged(t,a)&&_(s,"set",e,t):_(s,"add",e,t),this}function J(e){const t=Ee(this),{has:s,get:r}=K(t);let n=s.call(t,e);n||(e=Ee(e),n=s.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return n&&_(t,"delete",e,void 0),i}function Y(){const e=Ee(this),t=0!==e.size,s=e.clear();return t&&_(e,"clear",void 0,void 0),s}function z(e,t){return function(s,r){const n=this,i=n.__v_raw,o=Ee(i),a=t?G:e?Te:ve;return!e&&N(o,0,I),i.forEach(((e,t)=>s.call(r,a(e),a(t),n)))}}function X(e,t,s){return function(...n){const i=this.__v_raw,o=Ee(i),a=r.isMap(o),c="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,u=i[e](...n),h=s?G:t?Te:ve;return!t&&N(o,0,l?C:I),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function Q(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Z(){const e={get(e){return j(this,e)},get size(){return V(this)},has:$,add:W,set:q,delete:J,clear:Y,forEach:z(!1,!1)},t={get(e){return j(this,e,!1,!0)},get size(){return V(this)},has:$,add:W,set:q,delete:J,clear:Y,forEach:z(!1,!0)},s={get(e){return j(this,e,!0)},get size(){return V(this,!0)},has(e){return $.call(this,e,!0)},add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear"),forEach:z(!0,!1)},r={get(e){return j(this,e,!0,!0)},get size(){return V(this,!0)},has(e){return $.call(this,e,!0)},add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear"),forEach:z(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((n=>{e[n]=X(n,!1,!1),s[n]=X(n,!0,!1),t[n]=X(n,!1,!0),r[n]=X(n,!0,!0)})),[e,s,t,r]}const[ee,te,se,re]=Z();function ne(e,t){const s=t?e?re:se:e?te:ee;return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(r.hasOwn(s,n)&&n in t?s:t,n,i)}const ie={get:ne(!1,!1)},oe={get:ne(!1,!0)},ae={get:ne(!0,!1)},ce={get:ne(!0,!0)},le=new WeakMap,ue=new WeakMap,he=new WeakMap,pe=new WeakMap;function de(e){return ye(e)?e:me(e,!1,F,ie,le)}function fe(e){return me(e,!0,B,ae,he)}function me(e,t,s,n,i){if(!r.isObject(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(r.toRawType(c));var c;if(0===a)return e;const l=new Proxy(e,2===a?n:s);return i.set(e,l),l}function ge(e){return ye(e)?ge(e.__v_raw):!(!e||!e.__v_isReactive)}function ye(e){return!(!e||!e.__v_isReadonly)}function Se(e){return!(!e||!e.__v_isShallow)}function Ee(e){const t=e&&e.__v_raw;return t?Ee(t):e}const ve=e=>r.isObject(e)?de(e):e,Te=e=>r.isObject(e)?fe(e):e;class be{constructor(e,t,s,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new c((()=>e(this._value)),(()=>Ie(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const e=Ee(this);return e._cacheable&&!e.effect.dirty||!r.hasChanged(e._value,e._value=e.effect.run())||Ie(e,4),Pe(e),e.effect._dirtyLevel>=2&&Ie(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ae(e,t,s=!1){let n,i;const o=r.isFunction(e);o?(n=e,i=r.NOOP):(n=e.get,i=e.set);return new be(n,i,o||!i,s)}function Pe(e){var t;d&&i&&(e=Ee(e),v(i,null!=(t=e.dep)?t:e.dep=A((()=>e.dep=void 0),e instanceof be?e:void 0)))}function Ie(e,t=4,s){const r=(e=Ee(e)).dep;r&&b(r,t)}function Ce(e){return!(!e||!0!==e.__v_isRef)}function Ne(e){return _e(e,!1)}function _e(e,t){return Ce(e)?e:new we(e,t)}class we{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ee(e),this._value=t?e:ve(e)}get value(){return Pe(this),this._value}set value(e){const t=this.__v_isShallow||Se(e)||ye(e);e=t?e:Ee(e),r.hasChanged(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ve(e),Ie(this,4))}}function xe(e){return Ce(e)?e.value:e}const Oe={get:(e,t,s)=>xe(Reflect.get(e,t,s)),set:(e,t,s,r)=>{const n=e[t];return Ce(n)&&!Ce(s)?(n.value=s,!0):Reflect.set(e,t,s,r)}};class Me{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:s}=e((()=>Pe(this)),(()=>Ie(this)));this._get=t,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}class ke{constructor(e,t,s){this._object=e,this._key=t,this._defaultValue=s,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Ee(this._object),t=this._key,null==(s=P.get(e))?void 0:s.get(t);var e,t,s}}class Le{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Re(e,t,s){const r=e[t];return Ce(r)?r:new ke(e,t,s)}const De=Ae;t.EffectScope=o,t.ITERATE_KEY=I,t.ReactiveEffect=c,t.ReactiveFlags={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw"},t.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},t.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},t.computed=Ae,t.customRef=function(e){return new Me(e)},t.deferredComputed=De,t.effect=function(e,t){e.effect instanceof c&&(e=e.effect.fn);const s=new c(e,r.NOOP,(()=>{s.dirty&&s.run()}));t&&(r.extend(s,t),t.scope&&a(s,t.scope)),t&&t.lazy||s.run();const n=s.run.bind(s);return n.effect=s,n},t.effectScope=function(e){return new o(e)},t.enableTracking=function(){m.push(d),d=!0},t.getCurrentScope=function(){return n},t.isProxy=function(e){return ge(e)||ye(e)},t.isReactive=ge,t.isReadonly=ye,t.isRef=Ce,t.isShallow=Se,t.markRaw=function(e){return Object.isExtensible(e)&&r.def(e,"__v_skip",!0),e},t.onScopeDispose=function(e){n&&n.cleanups.push(e)},t.pauseScheduling=S,t.pauseTracking=g,t.proxyRefs=function(e){return ge(e)?e:new Proxy(e,Oe)},t.reactive=de,t.readonly=fe,t.ref=Ne,t.resetScheduling=E,t.resetTracking=y,t.shallowReactive=function(e){return me(e,!1,U,oe,ue)},t.shallowReadonly=function(e){return me(e,!0,H,ce,pe)},t.shallowRef=function(e){return _e(e,!0)},t.stop=function(e){e.effect.stop()},t.toRaw=Ee,t.toRef=function(e,t,s){return Ce(e)?e:r.isFunction(e)?new Le(e):r.isObject(e)&&arguments.length>1?Re(e,t,s):Ne(e)},t.toRefs=function(e){const t=r.isArray(e)?new Array(e.length):{};for(const s in e)t[s]=Re(e,s);return t},t.toValue=function(e){return r.isFunction(e)?e():xe(e)},t.track=N,t.trigger=_,t.triggerRef=function(e){Ie(e,4)},t.unref=xe},8528:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(256),n=s(8952);const i={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function o(e,t,s,r){let n;try{n=r?e(...r):e()}catch(e){c(e,t,s)}return n}function a(e,t,s,r){if(n.isFunction(e)){const i=o(e,t,s,r);return i&&n.isPromise(i)&&i.catch((e=>{c(e,t,s)})),i}const i=[];for(let n=0;n<e.length;n++)i.push(a(e[n],t,s,r));return i}function c(e,t,s,r=!0){t&&t.vnode;if(t){let r=t.parent;const n=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const t=r.ec;if(t)for(let s=0;s<t.length;s++)if(!1===t[s](e,n,i))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void o(a,null,10,[e,n,i])}!function(e,t,s,r=!0){console.error(e)}(e,0,0,r)}let l=!1,u=!1;const h=[];let p=0;const d=[];let f=null,m=0;const g=Promise.resolve();let y=null;function S(e){const t=y||g;return e?t.then(this?e.bind(this):e):t}function E(e){h.length&&h.includes(e,l&&e.allowRecurse?p+1:p)||(null==e.id?h.push(e):h.splice(function(e){let t=p+1,s=h.length;for(;t<s;){const r=t+s>>>1,n=h[r],i=P(n);i<e||i===e&&n.pre?t=r+1:s=r}return t}(e.id),0,e),v())}function v(){l||u||(u=!0,y=g.then(C))}function T(e){n.isArray(e)?d.push(...e):f&&f.includes(e,e.allowRecurse?m+1:m)||d.push(e),v()}function b(e,t,s=(l?p+1:0)){for(;s<h.length;s++){const t=h[s];if(t&&t.pre){if(e&&t.id!==e.uid)continue;h.splice(s,1),s--,t()}}}function A(e){if(d.length){const e=[...new Set(d)].sort(((e,t)=>P(e)-P(t)));if(d.length=0,f)return void f.push(...e);for(f=e,m=0;m<f.length;m++)f[m]();f=null,m=0}}const P=e=>null==e.id?1/0:e.id,I=(e,t)=>{const s=P(e)-P(t);if(0===s){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return s};function C(e){u=!1,l=!0,h.sort(I);try{for(p=0;p<h.length;p++){const e=h[p];e&&!1!==e.active&&o(e,null,14)}}finally{p=0,h.length=0,A(),l=!1,y=null,(h.length||d.length)&&C()}}function N(e,t,...s){if(e.isUnmounted)return;const r=e.vnode.props||n.EMPTY_OBJ;let i=s;const o=t.startsWith("update:"),c=o&&t.slice(7);if(c&&c in r){const e=`${"modelValue"===c?"model":c}Modifiers`,{number:t,trim:o}=r[e]||n.EMPTY_OBJ;o&&(i=s.map((e=>n.isString(e)?e.trim():e))),t&&(i=s.map(n.looseToNumber))}let l,u=r[l=n.toHandlerKey(t)]||r[l=n.toHandlerKey(n.camelize(t))];!u&&o&&(u=r[l=n.toHandlerKey(n.hyphenate(t))]),u&&a(u,e,6,i);const h=r[l+"Once"];if(h){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,a(h,e,6,i)}}function _(e,t,s=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let a={},c=!1;if(!n.isFunction(e)){const r=e=>{const s=_(e,t,!0);s&&(c=!0,n.extend(a,s))};!s&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||c?(n.isArray(o)?o.forEach((e=>a[e]=null)):n.extend(a,o),n.isObject(e)&&r.set(e,a),a):(n.isObject(e)&&r.set(e,null),null)}function w(e,t){return!(!e||!n.isOn(t))&&(t=t.slice(2).replace(/Once$/,""),n.hasOwn(e,t[0].toLowerCase()+t.slice(1))||n.hasOwn(e,n.hyphenate(t))||n.hasOwn(e,t))}let x=null,O=null;function M(e){const t=x;return x=e,O=e&&e.type.__scopeId||null,t}function k(e,t=x,s){if(!t)return e;if(e._n)return e;const r=(...s)=>{r._d&&rs(-1);const n=M(t);let i;try{i=e(...s)}finally{M(n),r._d&&rs(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function L(e){const{type:t,vnode:s,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:l,attrs:u,emit:h,render:p,renderCache:d,data:f,setupState:m,ctx:g,inheritAttrs:y}=e;let S,E;const v=M(e);try{if(4&s.shapeFlag){const e=i||r,t=e;S=gs(p.call(t,e,d,o,m,f,g)),E=u}else{const e=t;0,S=gs(e.length>1?e(o,{attrs:u,slots:l,emit:h}):e(o,null)),E=t.props?u:R(u)}}catch(t){Qt.length=0,c(t,e,1),S=ps(zt)}let T=S;if(E&&!1!==y){const e=Object.keys(E),{shapeFlag:t}=T;e.length&&7&t&&(a&&e.some(n.isModelListener)&&(E=D(E,a)),T=fs(T,E))}return s.dirs&&(T=fs(T),T.dirs=T.dirs?T.dirs.concat(s.dirs):s.dirs),s.transition&&(T.transition=s.transition),S=T,M(v),S}const R=e=>{let t;for(const s in e)("class"===s||"style"===s||n.isOn(s))&&((t||(t={}))[s]=e[s]);return t},D=(e,t)=>{const s={};for(const r in e)n.isModelListener(r)&&r.slice(9)in t||(s[r]=e[r]);return s};function F(e,t,s){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let n=0;n<r.length;n++){const i=r[n];if(t[i]!==e[i]&&!w(s,i))return!0}return!1}function B({vnode:e,parent:t},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=s,t=t.parent}}const U="components";const H=Symbol.for("v-ndc");function G(e,t,s=!0,r=!1){const i=x||Ps;if(i){const s=i.type;if(e===U){const e=Us(s,!1);if(e&&(e===t||e===n.camelize(t)||e===n.capitalize(n.camelize(t))))return s}const o=K(i[e]||s[e],t)||K(i.appContext[e],t);return!o&&r?s:o}}function K(e,t){return e&&(e[t]||e[n.camelize(t)]||e[n.capitalize(n.camelize(t))])}const j=e=>e.__isSuspense;let $=0;const V={name:"Suspense",__isSuspense:!0,process(e,t,s,r,n,i,o,a,c,l){if(null==e)!function(e,t,s,r,n,i,o,a,c){const{p:l,o:{createElement:u}}=c,h=u("div"),p=e.suspense=q(e,n,r,t,h,s,i,o,a,c);l(null,p.pendingBranch=e.ssContent,h,null,r,p,i,o),p.deps>0?(W(e,"onPending"),W(e,"onFallback"),l(null,e.ssFallback,t,s,r,null,i,o),z(p,e.ssFallback)):p.resolve(!1,!0)}(t,s,r,n,i,o,a,c,l);else{if(i&&i.deps>0)return void(t.suspense=e.suspense);!function(e,t,s,r,n,i,o,a,{p:c,um:l,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const p=t.ssContent,d=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=h;if(m)h.pendingBranch=p,as(p,m)?(c(m,p,h.hiddenContainer,null,n,h,i,o,a),h.deps<=0?h.resolve():g&&(y||(c(f,d,s,r,n,null,i,o,a),z(h,d)))):(h.pendingId=$++,y?(h.isHydrating=!1,h.activeBranch=m):l(m,n,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),g?(c(null,p,h.hiddenContainer,null,n,h,i,o,a),h.deps<=0?h.resolve():(c(f,d,s,r,n,null,i,o,a),z(h,d))):f&&as(p,f)?(c(f,p,s,r,n,h,i,o,a),h.resolve(!0)):(c(null,p,h.hiddenContainer,null,n,h,i,o,a),h.deps<=0&&h.resolve()));else if(f&&as(p,f))c(f,p,s,r,n,h,i,o,a),z(h,p);else if(W(t,"onPending"),h.pendingBranch=p,512&p.shapeFlag?h.pendingId=p.component.suspenseId:h.pendingId=$++,c(null,p,h.hiddenContainer,null,n,h,i,o,a),h.deps<=0)h.resolve();else{const{timeout:e,pendingId:t}=h;e>0?setTimeout((()=>{h.pendingId===t&&h.fallback(d)}),e):0===e&&h.fallback(d)}}(e,t,s,r,n,o,a,c,l)}},hydrate:function(e,t,s,r,n,i,o,a,c){const l=t.suspense=q(t,r,s,e.parentNode,document.createElement("div"),null,n,i,o,a,!0),u=c(e,l.pendingBranch=t.ssContent,s,l,i,o);0===l.deps&&l.resolve(!1,!0);return u},create:q,normalize:function(e){const{shapeFlag:t,children:s}=e,r=32&t;e.ssContent=J(r?s.default:s),e.ssFallback=r?J(s.fallback):ps(zt)}};function W(e,t){const s=e.props&&e.props[t];n.isFunction(s)&&s()}function q(e,t,s,r,i,o,a,l,u,h,p=!1){const{p:d,m:f,um:m,n:g,o:{parentNode:y,remove:S}}=h;let E;const v=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);v&&(null==t?void 0:t.pendingBranch)&&(E=t.pendingId,t.deps++);const b=e.props?n.toNumber(e.props.timeout):void 0,A=o,P={vnode:e,parent:t,parentComponent:s,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:$++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(e=!1,s=!1){const{vnode:r,activeBranch:n,pendingBranch:i,pendingId:a,effects:c,parentComponent:l,container:u}=P;let h=!1;P.isHydrating?P.isHydrating=!1:e||(h=n&&i.transition&&"out-in"===i.transition.mode,h&&(n.transition.afterLeave=()=>{a===P.pendingId&&(f(i,u,o===A?g(n):o,0),T(c))}),n&&(y(n.el)!==P.hiddenContainer&&(o=g(n)),m(n,l,P,!0)),h||f(i,u,o,0)),z(P,i),P.pendingBranch=null,P.isInFallback=!1;let p=P.parent,d=!1;for(;p;){if(p.pendingBranch){p.effects.push(...c),d=!0;break}p=p.parent}d||h||T(c),P.effects=[],v&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,0!==t.deps||s||t.resolve()),W(r,"onResolve")},fallback(e){if(!P.pendingBranch)return;const{vnode:t,activeBranch:s,parentComponent:r,container:n,namespace:i}=P;W(t,"onFallback");const o=g(s),a=()=>{P.isInFallback&&(d(null,e,n,o,r,null,i,l,u),z(P,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(s.transition.afterLeave=a),P.isInFallback=!0,m(s,r,null,!0),c||a()},move(e,t,s){P.activeBranch&&f(P.activeBranch,e,t,s),P.container=e},next:()=>P.activeBranch&&g(P.activeBranch),registerDep(e,t){const s=!!P.pendingBranch;s&&P.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{c(t,e,0)})).then((n=>{if(e.isUnmounted||P.isUnmounted||P.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Rs(e,n,!1),r&&(i.el=r);const o=!r&&e.subTree.el;t(e,i,y(r||e.subTree.el),r?null:g(e.subTree),P,a,u),o&&S(o),B(e,i.el),s&&0==--P.deps&&P.resolve()}))},unmount(e,t){P.isUnmounted=!0,P.activeBranch&&m(P.activeBranch,s,e,t),P.pendingBranch&&m(P.pendingBranch,s,e,t)}};return P}function J(e){let t;if(n.isFunction(e)){const s=ss&&e._c;s&&(e._d=!1,es()),e=e(),s&&(e._d=!0,t=Zt,ts())}if(n.isArray(e)){const t=function(e,t=!0){let s;for(let t=0;t<e.length;t++){const r=e[t];if(!os(r))return;if(r.type!==zt||"v-if"===r.children){if(s)return;s=r}}return s}(e);e=t}return e=gs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Y(e,t){t&&t.pendingBranch?n.isArray(e)?t.effects.push(...e):t.effects.push(e):T(e)}function z(e,t){e.activeBranch=t;const{vnode:s,parentComponent:r}=e;let n=t.el;for(;!n&&t.component;)n=(t=t.component.subTree).el;s.el=n,r&&r.subTree===s&&(r.vnode.el=n,B(r,n))}const X=Symbol.for("v-scx"),Q=()=>ft(X);function Z(e,t){return se(e,null,{flush:"sync"})}const ee={};function te(e,t,s){return se(e,t,s)}function se(e,t,{immediate:s,deep:i,flush:c,once:l,onTrack:u,onTrigger:h}=n.EMPTY_OBJ){if(t&&l){const e=t;t=(...t)=>{e(...t),C()}}const p=Ps,d=e=>!0===i?e:ie(e,!1===i?1:void 0);let f,m,g=!1,y=!1;if(r.isRef(e)?(f=()=>e.value,g=r.isShallow(e)):r.isReactive(e)?(f=()=>d(e),g=!0):n.isArray(e)?(y=!0,g=e.some((e=>r.isReactive(e)||r.isShallow(e))),f=()=>e.map((e=>r.isRef(e)?e.value:r.isReactive(e)?d(e):n.isFunction(e)?o(e,p,2):void 0))):f=n.isFunction(e)?t?()=>o(e,p,2):()=>(m&&m(),a(e,p,3,[v])):n.NOOP,t&&i){const e=f;f=()=>ie(e())}let S,v=e=>{m=P.onStop=()=>{o(e,p,4),m=P.onStop=void 0}};if(ks){if(v=n.NOOP,t?s&&a(t,p,3,[f(),y?[]:void 0,v]):f(),"sync"!==c)return n.NOOP;{const e=Q();S=e.__watcherHandles||(e.__watcherHandles=[])}}let T=y?new Array(e.length).fill(ee):ee;const b=()=>{if(P.active&&P.dirty)if(t){const e=P.run();(i||g||(y?e.some(((e,t)=>n.hasChanged(e,T[t]))):n.hasChanged(e,T)))&&(m&&m(),a(t,p,3,[e,T===ee?void 0:y&&T[0]===ee?[]:T,v]),T=e)}else P.run()};let A;b.allowRecurse=!!t,"sync"===c?A=b:"post"===c?A=()=>Lt(b,p&&p.suspense):(b.pre=!0,p&&(b.id=p.uid),A=()=>E(b));const P=new r.ReactiveEffect(f,n.NOOP,A),I=r.getCurrentScope(),C=()=>{P.stop(),I&&n.remove(I.effects,P)};return t?s?b():T=P.run():"post"===c?Lt(P.run.bind(P),p&&p.suspense):P.run(),S&&S.push(C),C}function re(e,t,s){const r=this.proxy,i=n.isString(e)?e.includes(".")?ne(r,e):()=>r[e]:e.bind(r,r);let o;n.isFunction(t)?o=t:(o=t.handler,s=t);const a=_s(this),c=se(i,o.bind(r),s);return a(),c}function ne(e,t){const s=t.split(".");return()=>{let t=e;for(let e=0;e<s.length&&t;e++)t=t[s[e]];return t}}function ie(e,t,s=0,i){if(!n.isObject(e)||e.__v_skip)return e;if(t&&t>0){if(s>=t)return e;s++}if((i=i||new Set).has(e))return e;if(i.add(e),r.isRef(e))ie(e.value,t,s,i);else if(n.isArray(e))for(let r=0;r<e.length;r++)ie(e[r],t,s,i);else if(n.isSet(e)||n.isMap(e))e.forEach((e=>{ie(e,t,s,i)}));else if(n.isPlainObject(e))for(const r in e)ie(e[r],t,s,i);return e}function oe(e,t,s,n){const i=e.dirs,o=t&&t.dirs;for(let c=0;c<i.length;c++){const l=i[c];o&&(l.oldValue=o[c].value);let u=l.dir[n];u&&(r.pauseTracking(),a(u,s,8,[e.el,l,e,t]),r.resetTracking())}}const ae=Symbol("_leaveCb"),ce=Symbol("_enterCb");function le(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Le((()=>{e.isMounted=!0})),Fe((()=>{e.isUnmounting=!0})),e}const ue=[Function,Array],he={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ue,onEnter:ue,onAfterEnter:ue,onEnterCancelled:ue,onBeforeLeave:ue,onLeave:ue,onAfterLeave:ue,onLeaveCancelled:ue,onBeforeAppear:ue,onAppear:ue,onAfterAppear:ue,onAppearCancelled:ue},pe={name:"BaseTransition",props:he,setup(e,{slots:t}){const s=Is(),n=le();let i;return()=>{const o=t.default&&Se(t.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1)for(const e of o)if(e.type!==zt){a=e;break}const c=r.toRaw(e),{mode:l}=c;if(n.isLeaving)return me(a);const u=ge(a);if(!u)return me(a);const h=fe(u,c,n,s);ye(u,h);const p=s.subTree,d=p&&ge(p);let f=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,f=!0)}if(d&&d.type!==zt&&(!as(u,d)||f)){const e=fe(d,c,n,s);if(ye(d,e),"out-in"===l)return n.isLeaving=!0,e.afterLeave=()=>{n.isLeaving=!1,!1!==s.update.active&&(s.effect.dirty=!0,s.update())},me(a);"in-out"===l&&u.type!==zt&&(e.delayLeave=(e,t,s)=>{de(n,d)[String(d.key)]=d,e[ae]=()=>{t(),e[ae]=void 0,delete h.delayedLeave},h.delayedLeave=s})}return a}}};function de(e,t){const{leavingVNodes:s}=e;let r=s.get(t.type);return r||(r=Object.create(null),s.set(t.type,r)),r}function fe(e,t,s,r){const{appear:i,mode:o,persisted:c=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:d,onLeave:f,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:y,onAppear:S,onAfterAppear:E,onAppearCancelled:v}=t,T=String(e.key),b=de(s,e),A=(e,t)=>{e&&a(e,r,9,t)},P=(e,t)=>{const s=t[1];A(e,t),n.isArray(e)?e.every((e=>e.length<=1))&&s():e.length<=1&&s()},I={mode:o,persisted:c,beforeEnter(t){let r=l;if(!s.isMounted){if(!i)return;r=y||l}t[ae]&&t[ae](!0);const n=b[T];n&&as(e,n)&&n.el[ae]&&n.el[ae](),A(r,[t])},enter(e){let t=u,r=h,n=p;if(!s.isMounted){if(!i)return;t=S||u,r=E||h,n=v||p}let o=!1;const a=e[ce]=t=>{o||(o=!0,A(t?n:r,[e]),I.delayedLeave&&I.delayedLeave(),e[ce]=void 0)};t?P(t,[e,a]):a()},leave(t,r){const n=String(e.key);if(t[ce]&&t[ce](!0),s.isUnmounting)return r();A(d,[t]);let i=!1;const o=t[ae]=s=>{i||(i=!0,r(),A(s?g:m,[t]),t[ae]=void 0,b[n]===e&&delete b[n])};b[n]=e,f?P(f,[t,o]):o()},clone:e=>fe(e,t,s,r)};return I}function me(e){if(be(e))return(e=fs(e)).children=null,e}function ge(e){return be(e)?e.children?e.children[0]:void 0:e}function ye(e,t){6&e.shapeFlag&&e.component?ye(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Se(e,t=!1,s){let r=[],n=0;for(let i=0;i<e.length;i++){let o=e[i];const a=null==s?o.key:String(s)+String(null!=o.key?o.key:i);o.type===Jt?(128&o.patchFlag&&n++,r=r.concat(Se(o.children,t,a))):(t||o.type!==zt)&&r.push(null!=a?fs(o,{key:a}):o)}if(n>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Ee(e,t){return n.isFunction(e)?(()=>n.extend({name:e.name},t,{setup:e}))():e}const ve=e=>!!e.type.__asyncLoader;function Te(e,t){const{ref:s,props:r,children:n,ce:i}=t.vnode,o=ps(e,r,n);return o.ref=s,o.ce=i,delete t.vnode.ce,o}const be=e=>e.type.__isKeepAlive,Ae={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=Is(),r=s.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,o=new Set;let a=null;const c=s.suspense,{renderer:{p:l,m:u,um:h,o:{createElement:p}}}=r,d=p("div");function f(e){we(e),h(e,s,c,!0)}function m(e){i.forEach(((t,s)=>{const r=Us(t.type);!r||e&&e(r)||g(s)}))}function g(e){const t=i.get(e);a&&as(t,a)?a&&we(a):f(t),i.delete(e),o.delete(e)}r.activate=(e,t,s,r,i)=>{const o=e.component;u(e,t,s,0,c),l(o.vnode,e,t,s,o,c,r,e.slotScopeIds,i),Lt((()=>{o.isDeactivated=!1,o.a&&n.invokeArrayFns(o.a);const t=e.props&&e.props.onVnodeMounted;t&&vs(t,o.parent,e)}),c)},r.deactivate=e=>{const t=e.component;u(e,d,null,1,c),Lt((()=>{t.da&&n.invokeArrayFns(t.da);const s=e.props&&e.props.onVnodeUnmounted;s&&vs(s,t.parent,e),t.isDeactivated=!0}),c)},te((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>Pe(e,t))),t&&m((e=>!Pe(t,e)))}),{flush:"post",deep:!0});let y=null;const S=()=>{null!=y&&i.set(y,xe(s.subTree))};return Le(S),De(S),Fe((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=s,n=xe(t);if(e.type!==n.type||e.key!==n.key)f(e);else{we(n);const e=n.component.da;e&&Lt(e,r)}}))})),()=>{if(y=null,!t.default)return null;const s=t.default(),r=s[0];if(s.length>1)return a=null,s;if(!(os(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return a=null,r;let n=xe(r);const c=n.type,l=Us(ve(n)?n.type.__asyncResolved||{}:c),{include:u,exclude:h,max:p}=e;if(u&&(!l||!Pe(u,l))||h&&l&&Pe(h,l))return a=n,r;const d=null==n.key?c:n.key,f=i.get(d);return n.el&&(n=fs(n),128&r.shapeFlag&&(r.ssContent=n)),y=d,f?(n.el=f.el,n.component=f.component,n.transition&&ye(n,n.transition),n.shapeFlag|=512,o.delete(d),o.add(d)):(o.add(d),p&&o.size>parseInt(p,10)&&g(o.values().next().value)),n.shapeFlag|=256,a=n,j(r.type)?r:n}}};function Pe(e,t){return n.isArray(e)?e.some((e=>Pe(e,t))):n.isString(e)?e.split(",").includes(t):!!n.isRegExp(e)&&e.test(t)}function Ie(e,t){Ne(e,"a",t)}function Ce(e,t){Ne(e,"da",t)}function Ne(e,t,s=Ps){const r=e.__wdc||(e.__wdc=()=>{let t=s;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Oe(t,r,s),s){let e=s.parent;for(;e&&e.parent;)be(e.parent.vnode)&&_e(r,t,s,e),e=e.parent}}function _e(e,t,s,r){const i=Oe(t,e,r,!0);Be((()=>{n.remove(r[t],i)}),s)}function we(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function xe(e){return 128&e.shapeFlag?e.ssContent:e}function Oe(e,t,s=Ps,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...n)=>{if(s.isUnmounted)return;r.pauseTracking();const i=_s(s),o=a(t,s,e,n);return i(),r.resetTracking(),o});return n?i.unshift(o):i.push(o),o}}const Me=e=>(t,s=Ps)=>(!ks||"sp"===e)&&Oe(e,((...e)=>t(...e)),s),ke=Me("bm"),Le=Me("m"),Re=Me("bu"),De=Me("u"),Fe=Me("bum"),Be=Me("um"),Ue=Me("sp"),He=Me("rtg"),Ge=Me("rtc");function Ke(e,t=Ps){Oe("ec",e,t)}function je(e){return e.some((e=>!os(e)||e.type!==zt&&!(e.type===Jt&&!je(e.children))))?e:null}const $e=e=>e?xs(e)?Bs(e)||e.proxy:$e(e.parent):null,Ve=n.extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$e(e.parent),$root:e=>$e(e.root),$emit:e=>e.emit,$options:e=>tt(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,E(e.update)}),$nextTick:e=>e.n||(e.n=S.bind(e.proxy)),$watch:e=>re.bind(e)}),We=(e,t)=>e!==n.EMPTY_OBJ&&!e.__isScriptSetup&&n.hasOwn(e,t),qe={get({_:e},t){const{ctx:s,setupState:i,data:o,props:a,accessCache:c,type:l,appContext:u}=e;let h;if("$"!==t[0]){const r=c[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return o[t];case 4:return s[t];case 3:return a[t]}else{if(We(i,t))return c[t]=1,i[t];if(o!==n.EMPTY_OBJ&&n.hasOwn(o,t))return c[t]=2,o[t];if((h=e.propsOptions[0])&&n.hasOwn(h,t))return c[t]=3,a[t];if(s!==n.EMPTY_OBJ&&n.hasOwn(s,t))return c[t]=4,s[t];Xe&&(c[t]=0)}}const p=Ve[t];let d,f;return p?("$attrs"===t&&r.track(e,"get",t),p(e)):(d=l.__cssModules)&&(d=d[t])?d:s!==n.EMPTY_OBJ&&n.hasOwn(s,t)?(c[t]=4,s[t]):(f=u.config.globalProperties,n.hasOwn(f,t)?f[t]:void 0)},set({_:e},t,s){const{data:r,setupState:i,ctx:o}=e;return We(i,t)?(i[t]=s,!0):r!==n.EMPTY_OBJ&&n.hasOwn(r,t)?(r[t]=s,!0):!n.hasOwn(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=s,!0))},has({_:{data:e,setupState:t,accessCache:s,ctx:r,appContext:i,propsOptions:o}},a){let c;return!!s[a]||e!==n.EMPTY_OBJ&&n.hasOwn(e,a)||We(t,a)||(c=o[0])&&n.hasOwn(c,a)||n.hasOwn(r,a)||n.hasOwn(Ve,a)||n.hasOwn(i.config.globalProperties,a)},defineProperty(e,t,s){return null!=s.get?e._.accessCache[t]=0:n.hasOwn(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}},Je=n.extend({},qe,{get(e,t){if(t!==Symbol.unscopables)return qe.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!n.isGloballyAllowed(t)});function Ye(){const e=Is();return e.setupContext||(e.setupContext=Fs(e))}function ze(e){return n.isArray(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Xe=!0;function Qe(e){const t=tt(e),s=e.proxy,i=e.ctx;Xe=!1,t.beforeCreate&&Ze(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:c,watch:l,provide:u,inject:h,created:p,beforeMount:d,mounted:f,beforeUpdate:m,updated:g,activated:y,deactivated:S,beforeDestroy:E,beforeUnmount:v,destroyed:T,unmounted:b,render:A,renderTracked:P,renderTriggered:I,errorCaptured:C,serverPrefetch:N,expose:_,inheritAttrs:w,components:x,directives:O,filters:M}=t;if(h&&function(e,t,s=n.NOOP){n.isArray(e)&&(e=it(e));for(const s in e){const i=e[s];let o;o=n.isObject(i)?"default"in i?ft(i.from||s,i.default,!0):ft(i.from||s):ft(i),r.isRef(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[s]=o}}(h,i,null),c)for(const e in c){const t=c[e];n.isFunction(t)&&(i[e]=t.bind(s))}if(o){const t=o.call(s,s);n.isObject(t)&&(e.data=r.reactive(t))}if(Xe=!0,a)for(const e in a){const t=a[e],r=n.isFunction(t)?t.bind(s,s):n.isFunction(t.get)?t.get.bind(s,s):n.NOOP,o=!n.isFunction(t)&&n.isFunction(t.set)?t.set.bind(s):n.NOOP,c=Hs({get:r,set:o});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(l)for(const e in l)et(l[e],i,s,e);if(u){const e=n.isFunction(u)?u.call(s):u;Reflect.ownKeys(e).forEach((t=>{dt(t,e[t])}))}function k(e,t){n.isArray(t)?t.forEach((t=>e(t.bind(s)))):t&&e(t.bind(s))}if(p&&Ze(p,e,"c"),k(ke,d),k(Le,f),k(Re,m),k(De,g),k(Ie,y),k(Ce,S),k(Ke,C),k(Ge,P),k(He,I),k(Fe,v),k(Be,b),k(Ue,N),n.isArray(_))if(_.length){const t=e.exposed||(e.exposed={});_.forEach((e=>{Object.defineProperty(t,e,{get:()=>s[e],set:t=>s[e]=t})}))}else e.exposed||(e.exposed={});A&&e.render===n.NOOP&&(e.render=A),null!=w&&(e.inheritAttrs=w),x&&(e.components=x),O&&(e.directives=O)}function Ze(e,t,s){a(n.isArray(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,s)}function et(e,t,s,r){const i=r.includes(".")?ne(s,r):()=>s[r];if(n.isString(e)){const s=t[e];n.isFunction(s)&&te(i,s)}else if(n.isFunction(e))te(i,e.bind(s));else if(n.isObject(e))if(n.isArray(e))e.forEach((e=>et(e,t,s,r)));else{const r=n.isFunction(e.handler)?e.handler.bind(s):t[e.handler];n.isFunction(r)&&te(i,r,e)}}function tt(e){const t=e.type,{mixins:s,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,c=o.get(t);let l;return c?l=c:i.length||s||r?(l={},i.length&&i.forEach((e=>st(l,e,a,!0))),st(l,t,a)):l=t,n.isObject(t)&&o.set(t,l),l}function st(e,t,s,r=!1){const{mixins:n,extends:i}=t;i&&st(e,i,s,!0),n&&n.forEach((t=>st(e,t,s,!0)));for(const n in t)if(r&&"expose"===n);else{const r=rt[n]||s&&s[n];e[n]=r?r(e[n],t[n]):t[n]}return e}const rt={data:nt,props:ct,emits:ct,methods:at,computed:at,beforeCreate:ot,created:ot,beforeMount:ot,mounted:ot,beforeUpdate:ot,updated:ot,beforeDestroy:ot,beforeUnmount:ot,destroyed:ot,unmounted:ot,activated:ot,deactivated:ot,errorCaptured:ot,serverPrefetch:ot,components:at,directives:at,watch:function(e,t){if(!e)return t;if(!t)return e;const s=n.extend(Object.create(null),e);for(const r in t)s[r]=ot(e[r],t[r]);return s},provide:nt,inject:function(e,t){return at(it(e),it(t))}};function nt(e,t){return t?e?function(){return n.extend(n.isFunction(e)?e.call(this,this):e,n.isFunction(t)?t.call(this,this):t)}:t:e}function it(e){if(n.isArray(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ot(e,t){return e?[...new Set([].concat(e,t))]:t}function at(e,t){return e?n.extend(Object.create(null),e,t):t}function ct(e,t){return e?n.isArray(e)&&n.isArray(t)?[...new Set([...e,...t])]:n.extend(Object.create(null),ze(e),ze(null!=t?t:{})):t}function lt(){return{app:null,config:{isNativeTag:n.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ut=0;function ht(e,t){return function(s,r=null){n.isFunction(s)||(s=n.extend({},s)),null==r||n.isObject(r)||(r=null);const i=lt(),o=new WeakSet;let a=!1;const c=i.app={_uid:ut++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Ks,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&n.isFunction(e.install)?(o.add(e),e.install(c,...t)):n.isFunction(e)&&(o.add(e),e(c,...t))),c),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),c),component:(e,t)=>t?(i.components[e]=t,c):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,c):i.directives[e],mount(n,o,l){if(!a){const u=ps(s,r);return u.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),o&&t?t(u,n):e(u,n,l),a=!0,c._container=n,n.__vue_app__=c,Bs(u.component)||u.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,c),runWithContext(e){const t=pt;pt=c;try{return e()}finally{pt=t}}};return c}}let pt=null;function dt(e,t){if(Ps){let s=Ps.provides;const r=Ps.parent&&Ps.parent.provides;r===s&&(s=Ps.provides=Object.create(r)),s[e]=t}else;}function ft(e,t,s=!1){const r=Ps||x;if(r||pt){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:pt._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return s&&n.isFunction(t)?t.call(r&&r.proxy):t}}function mt(e,t,s,i){const[o,a]=e.propsOptions;let c,l=!1;if(t)for(let r in t){if(n.isReservedProp(r))continue;const u=t[r];let h;o&&n.hasOwn(o,h=n.camelize(r))?a&&a.includes(h)?(c||(c={}))[h]=u:s[h]=u:w(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,l=!0)}if(a){const t=r.toRaw(s),i=c||n.EMPTY_OBJ;for(let r=0;r<a.length;r++){const c=a[r];s[c]=gt(o,t,c,i[c],e,!n.hasOwn(i,c))}}return l}function gt(e,t,s,r,i,o){const a=e[s];if(null!=a){const e=n.hasOwn(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&n.isFunction(e)){const{propsDefaults:n}=i;if(s in n)r=n[s];else{const o=_s(i);r=n[s]=e.call(null,t),o()}}else r=e}a[0]&&(o&&!e?r=!1:!a[1]||""!==r&&r!==n.hyphenate(s)||(r=!0))}return r}function yt(e,t,s=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},c=[];let l=!1;if(!n.isFunction(e)){const r=e=>{l=!0;const[s,r]=yt(e,t,!0);n.extend(a,s),r&&c.push(...r)};!s&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!l)return n.isObject(e)&&r.set(e,n.EMPTY_ARR),n.EMPTY_ARR;if(n.isArray(o))for(let e=0;e<o.length;e++){const t=n.camelize(o[e]);St(t)&&(a[t]=n.EMPTY_OBJ)}else if(o)for(const e in o){const t=n.camelize(e);if(St(t)){const s=o[e],r=a[t]=n.isArray(s)||n.isFunction(s)?{type:s}:n.extend({},s);if(r){const e=Tt(Boolean,r.type),s=Tt(String,r.type);r[0]=e>-1,r[1]=s<0||e<s,(e>-1||n.hasOwn(r,"default"))&&c.push(t)}}}const u=[a,c];return n.isObject(e)&&r.set(e,u),u}function St(e){return"$"!==e[0]&&!n.isReservedProp(e)}function Et(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function vt(e,t){return Et(e)===Et(t)}function Tt(e,t){return n.isArray(t)?t.findIndex((t=>vt(t,e))):n.isFunction(t)&&vt(t,e)?0:-1}const bt=e=>"_"===e[0]||"$stable"===e,At=e=>n.isArray(e)?e.map(gs):[gs(e)],Pt=(e,t,s)=>{if(t._n)return t;const r=k(((...e)=>At(t(...e))),s);return r._c=!1,r},It=(e,t,s)=>{const r=e._ctx;for(const s in e){if(bt(s))continue;const i=e[s];if(n.isFunction(i))t[s]=Pt(0,i,r);else if(null!=i){const e=At(i);t[s]=()=>e}}},Ct=(e,t)=>{const s=At(t);e.slots.default=()=>s},Nt=(e,t)=>{if(32&e.vnode.shapeFlag){const s=t._;s?(e.slots=r.toRaw(t),n.def(t,"_",s)):It(t,e.slots={})}else e.slots={},t&&Ct(e,t);n.def(e.slots,cs,1)},_t=(e,t,s)=>{const{vnode:r,slots:i}=e;let o=!0,a=n.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?s&&1===e?o=!1:(n.extend(i,t),s||1!==e||delete i._):(o=!t.$stable,It(t,i)),a=t}else t&&(Ct(e,t),a={default:1});if(o)for(const e in i)bt(e)||null!=a[e]||delete i[e]};function wt(e,t,s,i,a=!1){if(n.isArray(e))return void e.forEach(((e,r)=>wt(e,t&&(n.isArray(t)?t[r]:t),s,i,a)));if(ve(i)&&!a)return;const c=4&i.shapeFlag?Bs(i.component)||i.component.proxy:i.el,l=a?null:c,{i:u,r:h}=e,p=t&&t.r,d=u.refs===n.EMPTY_OBJ?u.refs={}:u.refs,f=u.setupState;if(null!=p&&p!==h&&(n.isString(p)?(d[p]=null,n.hasOwn(f,p)&&(f[p]=null)):r.isRef(p)&&(p.value=null)),n.isFunction(h))o(h,u,12,[l,d]);else{const t=n.isString(h),i=r.isRef(h);if(t||i){const r=()=>{if(e.f){const s=t?n.hasOwn(f,h)?f[h]:d[h]:h.value;a?n.isArray(s)&&n.remove(s,c):n.isArray(s)?s.includes(c)||s.push(c):t?(d[h]=[c],n.hasOwn(f,h)&&(f[h]=d[h])):(h.value=[c],e.k&&(d[e.k]=h.value))}else t?(d[h]=l,n.hasOwn(f,h)&&(f[h]=l)):i&&(h.value=l,e.k&&(d[e.k]=l))};l?(r.id=-1,Lt(r,s)):r()}}}let xt=!1;const Ot=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Mt=e=>8===e.nodeType;function kt(e){const{mt:t,p:s,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:c,insert:l,createComment:u}}=e,h=(s,r,n,c,u,E=!1)=>{const v=Mt(s)&&"["===s.data,T=()=>m(s,r,n,c,u,v),{type:b,ref:A,shapeFlag:P,patchFlag:I}=r;let C=s.nodeType;r.el=s,-2===I&&(E=!1,r.dynamicChildren=null);let N=null;switch(b){case Yt:3!==C?""===r.children?(l(r.el=i(""),a(s),s),N=s):N=T():(s.data!==r.children&&(xt=!0,s.data=r.children),N=o(s));break;case zt:S(s)?(N=o(s),y(r.el=s.content.firstChild,s,n)):N=8!==C||v?T():o(s);break;case Xt:if(v&&(C=(s=o(s)).nodeType),1===C||3===C){N=s;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===N.nodeType?N.outerHTML:N.data),t===r.staticCount-1&&(r.anchor=N),N=o(N);return v?o(N):N}T();break;case Jt:N=v?f(s,r,n,c,u,E):T();break;default:if(1&P)N=1===C&&r.type.toLowerCase()===s.tagName.toLowerCase()||S(s)?p(s,r,n,c,u,E):T();else if(6&P){r.slotScopeIds=u;const e=a(s);if(N=v?g(s):Mt(s)&&"teleport start"===s.data?g(s,s.data,"teleport end"):o(s),t(r,e,null,n,c,Ot(e),E),ve(r)){let t;v?(t=ps(Jt),t.anchor=N?N.previousSibling:e.lastChild):t=3===s.nodeType?ms(""):ps("div"),t.el=s,r.component.subTree=t}}else 64&P?N=8!==C?T():r.type.hydrate(s,r,n,c,u,E,e,d):128&P&&(N=r.type.hydrate(s,r,n,c,Ot(a(s)),u,E,e,h))}return null!=A&&wt(A,null,c,r),N},p=(e,t,s,i,o,a)=>{a=a||!!t.dynamicChildren;const{type:l,props:u,patchFlag:h,shapeFlag:p,dirs:f,transition:m}=t,g="input"===l||"option"===l;if(g||-1!==h){f&&oe(t,null,s,"created");let l,E=!1;if(S(e)){E=Bt(i,m)&&s&&s.vnode.props&&s.vnode.props.appear;const r=e.content.firstChild;E&&m.beforeEnter(r),y(r,e,s),t.el=e=r}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let r=d(e.firstChild,t,e,s,i,o,a);for(;r;){xt=!0;const e=r;r=r.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(xt=!0,e.textContent=t.children);if(u)if(g||!a||48&h)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||n.isOn(t)&&!n.isReservedProp(t)||"."===t[0])&&r(e,t,null,u[t],void 0,void 0,s);else u.onClick&&r(e,"onClick",null,u.onClick,void 0,void 0,s);(l=u&&u.onVnodeBeforeMount)&&vs(l,s,t),f&&oe(t,null,s,"beforeMount"),((l=u&&u.onVnodeMounted)||f||E)&&Y((()=>{l&&vs(l,s,t),E&&m.enter(e),f&&oe(t,null,s,"mounted")}),i)}return e.nextSibling},d=(e,t,r,n,i,o,a)=>{a=a||!!t.dynamicChildren;const c=t.children,l=c.length;for(let t=0;t<l;t++){const l=a?c[t]:c[t]=gs(c[t]);if(e)e=h(e,l,n,i,o,a);else{if(l.type===Yt&&!l.children)continue;xt=!0,s(null,l,r,null,n,i,Ot(r),o)}}return e},f=(e,t,s,r,n,i)=>{const{slotScopeIds:c}=t;c&&(n=n?n.concat(c):c);const h=a(e),p=d(o(e),t,h,s,r,n,i);return p&&Mt(p)&&"]"===p.data?o(t.anchor=p):(xt=!0,l(t.anchor=u("]"),h,p),p)},m=(e,t,r,n,i,l)=>{if(xt=!0,t.el=null,l){const t=g(e);for(;;){const s=o(e);if(!s||s===t)break;c(s)}}const u=o(e),h=a(e);return c(e),s(null,t,h,u,r,n,Ot(h),i),u},g=(e,t="[",s="]")=>{let r=0;for(;e;)if((e=o(e))&&Mt(e)&&(e.data===t&&r++,e.data===s)){if(0===r)return o(e);r--}return e},y=(e,t,s)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let n=s;for(;n;)n.vnode.el===t&&(n.vnode.el=n.subTree.el=e),n=n.parent},S=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return s(null,e,t),A(),void(t._vnode=e);xt=!1,h(t.firstChild,e,null,null,null),A(),t._vnode=e,xt&&console.error("Hydration completed but contains mismatches.")},h]}const Lt=Y;function Rt(e,t){n.getGlobalThis().__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:a,createText:c,createComment:l,setText:u,setElementText:d,parentNode:f,nextSibling:m,setScopeId:g=n.NOOP,insertStaticContent:y}=e,S=(e,t,s,r=null,n=null,i=null,o=void 0,a=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!as(e,t)&&(r=X(e),W(e,n,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:h}=t;switch(l){case Yt:v(e,t,s,r);break;case zt:T(e,t,s,r);break;case Xt:null==e&&P(t,s,r,o);break;case Jt:k(e,t,s,r,n,i,o,a,c);break;default:1&h?I(e,t,s,r,n,i,o,a,c):6&h?R(e,t,s,r,n,i,o,a,c):(64&h||128&h)&&l.process(e,t,s,r,n,i,o,a,c,ee)}null!=u&&n&&wt(u,e&&e.ref,i,t||e,!t)},v=(e,t,r,n)=>{if(null==e)s(t.el=c(t.children),r,n);else{const s=t.el=e.el;t.children!==e.children&&u(s,t.children)}},T=(e,t,r,n)=>{null==e?s(t.el=l(t.children||""),r,n):t.el=e.el},P=(e,t,s,r)=>{[e.el,e.anchor]=y(e.children,t,s,r,e.el,e.anchor)},I=(e,t,s,r,n,i,o,a,c)=>{"svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e?C(t,s,r,n,i,o,a,c):x(e,t,n,i,o,a,c)},C=(e,t,r,i,c,l,u,h)=>{let p,f;const{props:m,shapeFlag:g,transition:y,dirs:S}=e;if(p=e.el=a(e.type,l,m&&m.is,m),8&g?d(p,e.children):16&g&&_(e.children,p,null,i,c,Dt(e,l),u,h),S&&oe(e,null,i,"created"),N(p,e,e.scopeId,u,i),m){for(const t in m)"value"===t||n.isReservedProp(t)||o(p,t,null,m[t],l,e.children,i,c,z);"value"in m&&o(p,"value",null,m.value,l),(f=m.onVnodeBeforeMount)&&vs(f,i,e)}S&&oe(e,null,i,"beforeMount");const E=Bt(c,y);E&&y.beforeEnter(p),s(p,t,r),((f=m&&m.onVnodeMounted)||E||S)&&Lt((()=>{f&&vs(f,i,e),E&&y.enter(p),S&&oe(e,null,i,"mounted")}),c)},N=(e,t,s,r,n)=>{if(s&&g(e,s),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(n){if(t===n.subTree){const t=n.vnode;N(e,t,t.scopeId,t.slotScopeIds,n.parent)}}},_=(e,t,s,r,n,i,o,a,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=a?ys(e[l]):gs(e[l]);S(null,c,t,s,r,n,i,o,a)}},x=(e,t,s,r,i,a,c)=>{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||n.EMPTY_OBJ,m=t.props||n.EMPTY_OBJ;let g;if(s&&Ft(s,!1),(g=m.onVnodeBeforeUpdate)&&vs(g,s,t,e),p&&oe(t,e,s,"beforeUpdate"),s&&Ft(s,!0),h?O(e.dynamicChildren,h,l,s,r,Dt(t,i),a):c||K(e,t,l,null,s,r,Dt(t,i),a,!1),u>0){if(16&u)M(l,t,f,m,s,r,i);else if(2&u&&f.class!==m.class&&o(l,"class",null,m.class,i),4&u&&o(l,"style",f.style,m.style,i),8&u){const n=t.dynamicProps;for(let t=0;t<n.length;t++){const a=n[t],c=f[a],u=m[a];u===c&&"value"!==a||o(l,a,c,u,i,e.children,s,r,z)}}1&u&&e.children!==t.children&&d(l,t.children)}else c||null!=h||M(l,t,f,m,s,r,i);((g=m.onVnodeUpdated)||p)&&Lt((()=>{g&&vs(g,s,t,e),p&&oe(t,e,s,"updated")}),r)},O=(e,t,s,r,n,i,o)=>{for(let a=0;a<t.length;a++){const c=e[a],l=t[a],u=c.el&&(c.type===Jt||!as(c,l)||70&c.shapeFlag)?f(c.el):s;S(c,l,u,null,r,n,i,o,!0)}},M=(e,t,s,r,i,a,c)=>{if(s!==r){if(s!==n.EMPTY_OBJ)for(const l in s)n.isReservedProp(l)||l in r||o(e,l,s[l],null,c,t.children,i,a,z);for(const l in r){if(n.isReservedProp(l))continue;const u=r[l],h=s[l];u!==h&&"value"!==l&&o(e,l,h,u,c,t.children,i,a,z)}"value"in r&&o(e,"value",s.value,r.value,c)}},k=(e,t,r,n,i,o,a,l,u)=>{const h=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:d,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(s(h,r,n),s(p,r,n),_(t.children||[],r,p,i,o,a,l,u)):d>0&&64&d&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,r,i,o,a,l),(null!=t.key||i&&t===i.subTree)&&Ut(e,t,!0)):K(e,t,r,p,i,o,a,l,u)},R=(e,t,s,r,n,i,o,a,c)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?n.ctx.activate(t,s,r,o,c):D(t,s,r,n,i,o,c):U(e,t,c)},D=(e,t,s,r,n,i,o)=>{const a=e.component=As(e,r,n);if(be(e)&&(a.ctx.renderer=ee),Ls(a),a.asyncDep){if(n&&n.registerDep(a,H),!e.el){const e=a.subTree=ps(zt);T(null,e,t,s)}}else H(a,e,t,s,n,i,o)},U=(e,t,s)=>{const r=t.component=e.component;if(function(e,t,s){const{props:r,children:n,component:i}=e,{props:o,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(s&&c>=0))return!(!n&&!a||a&&a.$stable)||r!==o&&(r?!o||F(r,o,l):!!o);if(1024&c)return!0;if(16&c)return r?F(r,o,l):!!o;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t];if(o[s]!==r[s]&&!w(l,s))return!0}}return!1}(e,t,s)){if(r.asyncDep&&!r.asyncResolved)return void G(r,t,s);r.next=t,function(e){const t=h.indexOf(e);t>p&&h.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},H=(e,t,s,i,o,a,c)=>{const l=()=>{if(e.isMounted){let{next:t,bu:s,u:r,parent:i,vnode:u}=e;{const s=Ht(e);if(s)return t&&(t.el=u.el,G(e,t,c)),void s.asyncDep.then((()=>{e.isUnmounted||l()}))}let h,p=t;Ft(e,!1),t?(t.el=u.el,G(e,t,c)):t=u,s&&n.invokeArrayFns(s),(h=t.props&&t.props.onVnodeBeforeUpdate)&&vs(h,i,t,u),Ft(e,!0);const d=L(e),m=e.subTree;e.subTree=d,S(m,d,f(m.el),X(m),e,o,a),t.el=d.el,null===p&&B(e,d.el),r&&Lt(r,o),(h=t.props&&t.props.onVnodeUpdated)&&Lt((()=>vs(h,i,t,u)),o)}else{let r;const{el:c,props:l}=t,{bm:u,m:h,parent:p}=e,d=ve(t);if(Ft(e,!1),u&&n.invokeArrayFns(u),!d&&(r=l&&l.onVnodeBeforeMount)&&vs(r,p,t),Ft(e,!0),c&&se){const s=()=>{e.subTree=L(e),se(c,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&s())):s()}else{const r=e.subTree=L(e);S(null,r,s,i,e,o,a),t.el=r.el}if(h&&Lt(h,o),!d&&(r=l&&l.onVnodeMounted)){const e=t;Lt((()=>vs(r,p,e)),o)}(256&t.shapeFlag||p&&ve(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Lt(e.a,o),e.isMounted=!0,t=s=i=null}},u=e.effect=new r.ReactiveEffect(l,n.NOOP,(()=>E(h)),e.scope),h=e.update=()=>{u.dirty&&u.run()};h.id=e.uid,Ft(e,!0),h()},G=(e,t,s)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,s,i){const{props:o,attrs:a,vnode:{patchFlag:c}}=e,l=r.toRaw(o),[u]=e.propsOptions;let h=!1;if(!(i||c>0)||16&c){let r;mt(e,t,o,a)&&(h=!0);for(const i in l)t&&(n.hasOwn(t,i)||(r=n.hyphenate(i))!==i&&n.hasOwn(t,r))||(u?!s||void 0===s[i]&&void 0===s[r]||(o[i]=gt(u,l,i,void 0,e,!0)):delete o[i]);if(a!==l)for(const e in a)t&&n.hasOwn(t,e)||(delete a[e],h=!0)}else if(8&c){const s=e.vnode.dynamicProps;for(let r=0;r<s.length;r++){let i=s[r];if(w(e.emitsOptions,i))continue;const c=t[i];if(u)if(n.hasOwn(a,i))c!==a[i]&&(a[i]=c,h=!0);else{const t=n.camelize(i);o[t]=gt(u,l,t,c,e,!1)}else c!==a[i]&&(a[i]=c,h=!0)}}h&&r.trigger(e,"set","$attrs")}(e,t.props,i,s),_t(e,t.children,s),r.pauseTracking(),b(e),r.resetTracking()},K=(e,t,s,r,n,i,o,a,c=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void $(l,h,s,r,n,i,o,a,c);if(256&p)return void j(l,h,s,r,n,i,o,a,c)}8&f?(16&u&&z(l,n,i),h!==l&&d(s,h)):16&u?16&f?$(l,h,s,r,n,i,o,a,c):z(l,n,i,!0):(8&u&&d(s,""),16&f&&_(h,s,r,n,i,o,a,c))},j=(e,t,s,r,i,o,a,c,l)=>{e=e||n.EMPTY_ARR,t=t||n.EMPTY_ARR;const u=e.length,h=t.length,p=Math.min(u,h);let d;for(d=0;d<p;d++){const r=t[d]=l?ys(t[d]):gs(t[d]);S(e[d],r,s,null,i,o,a,c,l)}u>h?z(e,i,o,!0,!1,p):_(t,s,r,i,o,a,c,l,p)},$=(e,t,s,r,i,o,a,c,l)=>{let u=0;const h=t.length;let p=e.length-1,d=h-1;for(;u<=p&&u<=d;){const r=e[u],n=t[u]=l?ys(t[u]):gs(t[u]);if(!as(r,n))break;S(r,n,s,null,i,o,a,c,l),u++}for(;u<=p&&u<=d;){const r=e[p],n=t[d]=l?ys(t[d]):gs(t[d]);if(!as(r,n))break;S(r,n,s,null,i,o,a,c,l),p--,d--}if(u>p){if(u<=d){const e=d+1,n=e<h?t[e].el:r;for(;u<=d;)S(null,t[u]=l?ys(t[u]):gs(t[u]),s,n,i,o,a,c,l),u++}}else if(u>d)for(;u<=p;)W(e[u],i,o,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=d;u++){const e=t[u]=l?ys(t[u]):gs(t[u]);null!=e.key&&g.set(e.key,u)}let y,E=0;const v=d-m+1;let T=!1,b=0;const A=new Array(v);for(u=0;u<v;u++)A[u]=0;for(u=f;u<=p;u++){const r=e[u];if(E>=v){W(r,i,o,!0);continue}let n;if(null!=r.key)n=g.get(r.key);else for(y=m;y<=d;y++)if(0===A[y-m]&&as(r,t[y])){n=y;break}void 0===n?W(r,i,o,!0):(A[n-m]=u+1,n>=b?b=n:T=!0,S(r,t[n],s,null,i,o,a,c,l),E++)}const P=T?function(e){const t=e.slice(),s=[0];let r,n,i,o,a;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(n=s[s.length-1],e[n]<c){t[r]=n,s.push(r);continue}for(i=0,o=s.length-1;i<o;)a=i+o>>1,e[s[a]]<c?i=a+1:o=a;c<e[s[i]]&&(i>0&&(t[r]=s[i-1]),s[i]=r)}}i=s.length,o=s[i-1];for(;i-- >0;)s[i]=o,o=t[o];return s}(A):n.EMPTY_ARR;for(y=P.length-1,u=v-1;u>=0;u--){const e=m+u,n=t[e],p=e+1<h?t[e+1].el:r;0===A[u]?S(null,n,s,p,i,o,a,c,l):T&&(y<0||u!==P[y]?V(n,s,p,2):y--)}}},V=(e,t,r,n,i=null)=>{const{el:o,type:a,transition:c,children:l,shapeFlag:u}=e;if(6&u)return void V(e.component.subTree,t,r,n);if(128&u)return void e.suspense.move(t,r,n);if(64&u)return void a.move(e,t,r,ee);if(a===Jt){s(o,t,r);for(let e=0;e<l.length;e++)V(l[e],t,r,n);return void s(e.anchor,t,r)}if(a===Xt)return void(({el:e,anchor:t},r,n)=>{let i;for(;e&&e!==t;)i=m(e),s(e,r,n),e=i;s(t,r,n)})(e,t,r);if(2!==n&&1&u&&c)if(0===n)c.beforeEnter(o),s(o,t,r),Lt((()=>c.enter(o)),i);else{const{leave:e,delayLeave:n,afterLeave:i}=c,a=()=>s(o,t,r),l=()=>{e(o,(()=>{a(),i&&i()}))};n?n(o,a,l):l()}else s(o,t,r)},W=(e,t,s,r=!1,n=!1)=>{const{type:i,props:o,ref:a,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:p}=e;if(null!=a&&wt(a,null,s,e,!0),256&u)return void t.ctx.deactivate(e);const d=1&u&&p,f=!ve(e);let m;if(f&&(m=o&&o.onVnodeBeforeUnmount)&&vs(m,t,e),6&u)Y(e.component,s,r);else{if(128&u)return void e.suspense.unmount(s,r);d&&oe(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,s,n,ee,r):l&&(i!==Jt||h>0&&64&h)?z(l,t,s,!1,!0):(i===Jt&&384&h||!n&&16&u)&&z(c,t,s),r&&q(e)}(f&&(m=o&&o.onVnodeUnmounted)||d)&&Lt((()=>{m&&vs(m,t,e),d&&oe(e,null,t,"unmounted")}),s)},q=e=>{const{type:t,el:s,anchor:r,transition:n}=e;if(t===Jt)return void J(s,r);if(t===Xt)return void(({el:e,anchor:t})=>{let s;for(;e&&e!==t;)s=m(e),i(e),e=s;i(t)})(e);const o=()=>{i(s),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&e.shapeFlag&&n&&!n.persisted){const{leave:t,delayLeave:r}=n,i=()=>t(s,o);r?r(e.el,o,i):i()}else o()},J=(e,t)=>{let s;for(;e!==t;)s=m(e),i(e),e=s;i(t)},Y=(e,t,s)=>{const{bum:r,scope:i,update:o,subTree:a,um:c}=e;r&&n.invokeArrayFns(r),i.stop(),o&&(o.active=!1,W(a,e,t,s)),c&&Lt(c,t),Lt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},z=(e,t,s,r=!1,n=!1,i=0)=>{for(let o=i;o<e.length;o++)W(e[o],t,s,r,n)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el);let Q=!1;const Z=(e,t,s)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):S(t._vnode||null,e,t,null,null,null,s),Q||(Q=!0,b(),A(),Q=!1),t._vnode=e},ee={p:S,um:W,m:V,r:q,mt:D,mc:_,pc:K,pbc:O,n:X,o:e};let te,se;return t&&([te,se]=t(ee)),{render:Z,hydrate:te,createApp:ht(Z,te)}}function Dt({type:e,props:t},s){return"svg"===s&&"foreignObject"===e||"mathml"===s&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Ft({effect:e,update:t},s){e.allowRecurse=t.allowRecurse=s}function Bt(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ut(e,t,s=!1){const r=e.children,i=t.children;if(n.isArray(r)&&n.isArray(i))for(let e=0;e<r.length;e++){const t=r[e];let n=i[e];1&n.shapeFlag&&!n.dynamicChildren&&((n.patchFlag<=0||32===n.patchFlag)&&(n=i[e]=ys(i[e]),n.el=t.el),s||Ut(t,n)),n.type===Yt&&(n.el=t.el)}}function Ht(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ht(t)}const Gt=e=>e&&(e.disabled||""===e.disabled),Kt=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,jt=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,$t=(e,t)=>{const s=e&&e.to;if(n.isString(s)){if(t){return t(s)}return null}return s};function Vt(e,t,s,{o:{insert:r},m:n},i=2){0===i&&r(e.targetAnchor,t,s);const{el:o,anchor:a,shapeFlag:c,children:l,props:u}=e,h=2===i;if(h&&r(o,t,s),(!h||Gt(u))&&16&c)for(let e=0;e<l.length;e++)n(l[e],t,s,2);h&&r(a,t,s)}const Wt={name:"Teleport",__isTeleport:!0,process(e,t,s,r,n,i,o,a,c,l){const{mc:u,pc:h,pbc:p,o:{insert:d,querySelector:f,createText:m,createComment:g}}=l,y=Gt(t.props);let{shapeFlag:S,children:E,dynamicChildren:v}=t;if(null==e){const e=t.el=m(""),l=t.anchor=m("");d(e,s,r),d(l,s,r);const h=t.target=$t(t.props,f),p=t.targetAnchor=m("");h&&(d(p,h),"svg"===o||Kt(h)?o="svg":("mathml"===o||jt(h))&&(o="mathml"));const g=(e,t)=>{16&S&&u(E,e,t,n,i,o,a,c)};y?g(s,l):h&&g(h,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,d=t.targetAnchor=e.targetAnchor,m=Gt(e.props),g=m?s:u,S=m?r:d;if("svg"===o||Kt(u)?o="svg":("mathml"===o||jt(u))&&(o="mathml"),v?(p(e.dynamicChildren,v,g,n,i,o,a),Ut(e,t,!0)):c||h(e,t,g,S,n,i,o,a,!1),y)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Vt(t,s,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=$t(t.props,f);e&&Vt(t,e,null,l,0)}else m&&Vt(t,u,d,l,1)}qt(t)},remove(e,t,s,r,{um:n,o:{remove:i}},o){const{shapeFlag:a,children:c,anchor:l,targetAnchor:u,target:h,props:p}=e;if(h&&i(u),o&&i(l),16&a){const e=o||!Gt(p);for(let r=0;r<c.length;r++){const i=c[r];n(i,t,s,e,!!i.dynamicChildren)}}},move:Vt,hydrate:function(e,t,s,r,n,i,{o:{nextSibling:o,parentNode:a,querySelector:c}},l){const u=t.target=$t(t.props,c);if(u){const c=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Gt(t.props))t.anchor=l(o(e),t,a(e),s,r,n,i),t.targetAnchor=c;else{t.anchor=o(e);let a=c;for(;a;)if(a=o(a),a&&8===a.nodeType&&"teleport anchor"===a.data){t.targetAnchor=a,u._lpa=t.targetAnchor&&o(t.targetAnchor);break}l(c,t,u,s,r,n,i)}qt(t)}return t.anchor&&o(t.anchor)}};function qt(e){const t=e.ctx;if(t&&t.ut){let s=e.children[0].el;for(;s&&s!==e.targetAnchor;)1===s.nodeType&&s.setAttribute("data-v-owner",t.uid),s=s.nextSibling;t.ut()}}const Jt=Symbol.for("v-fgt"),Yt=Symbol.for("v-txt"),zt=Symbol.for("v-cmt"),Xt=Symbol.for("v-stc"),Qt=[];let Zt=null;function es(e=!1){Qt.push(Zt=e?null:[])}function ts(){Qt.pop(),Zt=Qt[Qt.length-1]||null}let ss=1;function rs(e){ss+=e}function ns(e){return e.dynamicChildren=ss>0?Zt||n.EMPTY_ARR:null,ts(),ss>0&&Zt&&Zt.push(e),e}function is(e,t,s,r,n){return ns(ps(e,t,s,r,n,!0))}function os(e){return!!e&&!0===e.__v_isVNode}function as(e,t){return e.type===t.type&&e.key===t.key}const cs="__vInternal",ls=({key:e})=>null!=e?e:null,us=({ref:e,ref_key:t,ref_for:s})=>("number"==typeof e&&(e=""+e),null!=e?n.isString(e)||r.isRef(e)||n.isFunction(e)?{i:x,r:e,k:t,f:!!s}:e:null);function hs(e,t=null,s=null,r=0,i=null,o=(e===Jt?0:1),a=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ls(t),ref:t&&us(t),scopeId:O,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:x};return c?(Ss(l,s),128&o&&e.normalize(l)):s&&(l.shapeFlag|=n.isString(s)?8:16),ss>0&&!a&&Zt&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Zt.push(l),l}const ps=function(e,t=null,s=null,i=0,o=null,a=!1){e&&e!==H||(e=zt);if(os(e)){const r=fs(e,t,!0);return s&&Ss(r,s),ss>0&&!a&&Zt&&(6&r.shapeFlag?Zt[Zt.indexOf(e)]=r:Zt.push(r)),r.patchFlag|=-2,r}c=e,n.isFunction(c)&&"__vccOpts"in c&&(e=e.__vccOpts);var c;if(t){t=ds(t);let{class:e,style:s}=t;e&&!n.isString(e)&&(t.class=n.normalizeClass(e)),n.isObject(s)&&(r.isProxy(s)&&!n.isArray(s)&&(s=n.extend({},s)),t.style=n.normalizeStyle(s))}const l=n.isString(e)?1:j(e)?128:(e=>e.__isTeleport)(e)?64:n.isObject(e)?4:n.isFunction(e)?2:0;return hs(e,t,s,i,o,l,a,!0)};function ds(e){return e?r.isProxy(e)||cs in e?n.extend({},e):e:null}function fs(e,t,s=!1){const{props:r,ref:i,patchFlag:o,children:a}=e,c=t?Es(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ls(c),ref:t&&t.ref?s&&i?n.isArray(i)?i.concat(us(t)):[i,us(t)]:us(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jt?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fs(e.ssContent),ssFallback:e.ssFallback&&fs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ms(e=" ",t=0){return ps(Yt,null,e,t)}function gs(e){return null==e||"boolean"==typeof e?ps(zt):n.isArray(e)?ps(Jt,null,e.slice()):"object"==typeof e?ys(e):ps(Yt,null,String(e))}function ys(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:fs(e)}function Ss(e,t){let s=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(n.isArray(t))s=16;else if("object"==typeof t){if(65&r){const s=t.default;return void(s&&(s._c&&(s._d=!1),Ss(e,s()),s._c&&(s._d=!0)))}{s=32;const r=t._;r||cs in t?3===r&&x&&(1===x.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=x}}else n.isFunction(t)?(t={default:t,_ctx:x},s=32):(t=String(t),64&r?(s=16,t=[ms(t)]):s=8);e.children=t,e.shapeFlag|=s}function Es(...e){const t={};for(let s=0;s<e.length;s++){const r=e[s];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=n.normalizeClass([t.class,r.class]));else if("style"===e)t.style=n.normalizeStyle([t.style,r.style]);else if(n.isOn(e)){const s=t[e],i=r[e];!i||s===i||n.isArray(s)&&s.includes(i)||(t[e]=s?[].concat(s,i):i)}else""!==e&&(t[e]=r[e])}return t}function vs(e,t,s,r=null){a(e,t,7,[s,r])}const Ts=lt();let bs=0;function As(e,t,s){const i=e.type,o=(t?t.appContext:e.appContext)||Ts,a={uid:bs++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yt(i,o),emitsOptions:_(i,o),emit:null,emitted:null,propsDefaults:n.EMPTY_OBJ,inheritAttrs:i.inheritAttrs,ctx:n.EMPTY_OBJ,data:n.EMPTY_OBJ,props:n.EMPTY_OBJ,attrs:n.EMPTY_OBJ,slots:n.EMPTY_OBJ,refs:n.EMPTY_OBJ,setupState:n.EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=N.bind(null,a),e.ce&&e.ce(a),a}let Ps=null;const Is=()=>Ps||x;let Cs,Ns;{const e=n.getGlobalThis(),t=(t,s)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(s),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};Cs=t("__VUE_INSTANCE_SETTERS__",(e=>Ps=e)),Ns=t("__VUE_SSR_SETTERS__",(e=>ks=e))}const _s=e=>{const t=Ps;return Cs(e),e.scope.on(),()=>{e.scope.off(),Cs(t)}},ws=()=>{Ps&&Ps.scope.off(),Cs(null)};function xs(e){return 4&e.vnode.shapeFlag}let Os,Ms,ks=!1;function Ls(e,t=!1){t&&Ns(t);const{props:s,children:i}=e.vnode,a=xs(e);!function(e,t,s,i=!1){const o={},a={};n.def(a,cs,1),e.propsDefaults=Object.create(null),mt(e,t,o,a);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);s?e.props=i?o:r.shallowReactive(o):e.type.props?e.props=o:e.props=a,e.attrs=a}(e,s,a,t),Nt(e,i);const l=a?function(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=r.markRaw(new Proxy(e.ctx,qe));const{setup:i}=s;if(i){const s=e.setupContext=i.length>1?Fs(e):null,a=_s(e);r.pauseTracking();const l=o(i,e,0,[e.props,s]);if(r.resetTracking(),a(),n.isPromise(l)){if(l.then(ws,ws),t)return l.then((s=>{Rs(e,s,t)})).catch((t=>{c(t,e,0)}));e.asyncDep=l}else Rs(e,l,t)}else Ds(e,t)}(e,t):void 0;return t&&Ns(!1),l}function Rs(e,t,s){n.isFunction(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:n.isObject(t)&&(e.setupState=r.proxyRefs(t)),Ds(e,s)}function Ds(e,t,s){const i=e.type;if(!e.render){if(!t&&Os&&!i.render){const t=i.template||tt(e).template;if(t){const{isCustomElement:s,compilerOptions:r}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,c=n.extend(n.extend({isCustomElement:s,delimiters:o},r),a);i.render=Os(t,c)}}e.render=i.render||n.NOOP,Ms&&Ms(e)}{const t=_s(e);r.pauseTracking();try{Qe(e)}finally{r.resetTracking(),t()}}}function Fs(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,s)=>(r.track(e,"get","$attrs"),t[s])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Bs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(r.proxyRefs(r.markRaw(e.exposed)),{get:(t,s)=>s in t?t[s]:s in Ve?Ve[s](e):void 0,has:(e,t)=>t in e||t in Ve}))}function Us(e,t=!0){return n.isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>r.computed(e,t,ks);function Gs(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let e=0;e<s.length;e++)if(n.hasChanged(s[e],t[e]))return!1;return ss>0&&Zt&&Zt.push(e),!0}const Ks="3.4.18",js=n.NOOP,$s=i,Vs=n.NOOP,Ws={createComponentInstance:As,setupComponent:Ls,renderComponentRoot:L,setCurrentRenderingInstance:M,isVNode:os,normalizeVNode:gs};t.EffectScope=r.EffectScope,t.ReactiveEffect=r.ReactiveEffect,t.TrackOpTypes=r.TrackOpTypes,t.TriggerOpTypes=r.TriggerOpTypes,t.customRef=r.customRef,t.effect=r.effect,t.effectScope=r.effectScope,t.getCurrentScope=r.getCurrentScope,t.isProxy=r.isProxy,t.isReactive=r.isReactive,t.isReadonly=r.isReadonly,t.isRef=r.isRef,t.isShallow=r.isShallow,t.markRaw=r.markRaw,t.onScopeDispose=r.onScopeDispose,t.proxyRefs=r.proxyRefs,t.reactive=r.reactive,t.readonly=r.readonly,t.ref=r.ref,t.shallowReactive=r.shallowReactive,t.shallowReadonly=r.shallowReadonly,t.shallowRef=r.shallowRef,t.stop=r.stop,t.toRaw=r.toRaw,t.toRef=r.toRef,t.toRefs=r.toRefs,t.toValue=r.toValue,t.triggerRef=r.triggerRef,t.unref=r.unref,t.camelize=n.camelize,t.capitalize=n.capitalize,t.normalizeClass=n.normalizeClass,t.normalizeProps=n.normalizeProps,t.normalizeStyle=n.normalizeStyle,t.toDisplayString=n.toDisplayString,t.toHandlerKey=n.toHandlerKey,t.BaseTransition=pe,t.BaseTransitionPropsValidators=he,t.Comment=zt,t.DeprecationTypes=null,t.ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},t.ErrorTypeStrings=$s,t.Fragment=Jt,t.KeepAlive=Ae,t.Static=Xt,t.Suspense=V,t.Teleport=Wt,t.Text=Yt,t.assertNumber=function(e,t){},t.callWithAsyncErrorHandling=a,t.callWithErrorHandling=o,t.cloneVNode=fs,t.compatUtils=null,t.computed=Hs,t.createBlock=is,t.createCommentVNode=function(e="",t=!1){return t?(es(),is(zt,null,e)):ps(zt,null,e)},t.createElementBlock=function(e,t,s,r,n,i){return ns(hs(e,t,s,r,n,i,!0))},t.createElementVNode=hs,t.createHydrationRenderer=function(e){return Rt(e,kt)},t.createPropsRestProxy=function(e,t){const s={};for(const r in e)t.includes(r)||Object.defineProperty(s,r,{enumerable:!0,get:()=>e[r]});return s},t.createRenderer=function(e){return Rt(e)},t.createSlots=function(e,t){for(let s=0;s<t.length;s++){const r=t[s];if(n.isArray(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e},t.createStaticVNode=function(e,t){const s=ps(Xt,null,e);return s.staticCount=t,s},t.createTextVNode=ms,t.createVNode=ps,t.defineAsyncComponent=function(e){n.isFunction(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:i,delay:o=200,timeout:a,suspensible:l=!0,onError:u}=e;let h,p=null,d=0;const f=()=>{let e;return p||(e=p=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise(((t,s)=>{u(e,(()=>t((d++,p=null,f()))),(()=>s(e)),d+1)}));throw e})).then((t=>e!==p&&p?p:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),h=t,t))))};return Ee({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return h},setup(){const e=Ps;if(h)return()=>Te(h,e);const t=t=>{p=null,c(t,e,13,!i)};if(l&&e.suspense||ks)return f().then((t=>()=>Te(t,e))).catch((e=>(t(e),()=>i?ps(i,{error:e}):null)));const n=r.ref(!1),u=r.ref(),d=r.ref(!!o);return o&&setTimeout((()=>{d.value=!1}),o),null!=a&&setTimeout((()=>{if(!n.value&&!u.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),u.value=e}}),a),f().then((()=>{n.value=!0,e.parent&&be(e.parent.vnode)&&(e.parent.effect.dirty=!0,E(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>n.value&&h?Te(h,e):u.value&&i?ps(i,{error:u.value}):s&&!d.value?ps(s):void 0}})},t.defineComponent=Ee,t.defineEmits=function(){return null},t.defineExpose=function(e){},t.defineModel=function(){},t.defineOptions=function(e){},t.defineProps=function(){return null},t.defineSlots=function(){return null},t.devtools=void 0,t.getCurrentInstance=Is,t.getTransitionRawChildren=Se,t.guardReactiveProps=ds,t.h=function(e,t,s){const r=arguments.length;return 2===r?n.isObject(t)&&!n.isArray(t)?os(t)?ps(e,null,[t]):ps(e,t):ps(e,null,t):(r>3?s=Array.prototype.slice.call(arguments,2):3===r&&os(s)&&(s=[s]),ps(e,t,s))},t.handleError=c,t.hasInjectionContext=function(){return!!(Ps||x||pt)},t.initCustomFormatter=function(){},t.inject=ft,t.isMemoSame=Gs,t.isRuntimeOnly=()=>!Os,t.isVNode=os,t.mergeDefaults=function(e,t){const s=ze(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=s[e];r?n.isArray(r)||n.isFunction(r)?r=s[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=s[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return s},t.mergeModels=function(e,t){return e&&t?n.isArray(e)&&n.isArray(t)?e.concat(t):n.extend({},ze(e),ze(t)):e||t},t.mergeProps=Es,t.nextTick=S,t.onActivated=Ie,t.onBeforeMount=ke,t.onBeforeUnmount=Fe,t.onBeforeUpdate=Re,t.onDeactivated=Ce,t.onErrorCaptured=Ke,t.onMounted=Le,t.onRenderTracked=Ge,t.onRenderTriggered=He,t.onServerPrefetch=Ue,t.onUnmounted=Be,t.onUpdated=De,t.openBlock=es,t.popScopeId=function(){O=null},t.provide=dt,t.pushScopeId=function(e){O=e},t.queuePostFlushCb=T,t.registerRuntimeCompiler=function(e){Os=e,Ms=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Je))}},t.renderList=function(e,t,s,r){let i;const o=s&&s[r];if(n.isArray(e)||n.isString(e)){i=new Array(e.length);for(let s=0,r=e.length;s<r;s++)i[s]=t(e[s],s,void 0,o&&o[s])}else if("number"==typeof e){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(n.isObject(e))if(e[Symbol.iterator])i=Array.from(e,((e,s)=>t(e,s,void 0,o&&o[s])));else{const s=Object.keys(e);i=new Array(s.length);for(let r=0,n=s.length;r<n;r++){const n=s[r];i[r]=t(e[n],n,r,o&&o[r])}}else i=[];return s&&(s[r]=i),i},t.renderSlot=function(e,t,s={},r,n){if(x.isCE||x.parent&&ve(x.parent)&&x.parent.isCE)return"default"!==t&&(s.name=t),ps("slot",s,r&&r());let i=e[t];i&&i._c&&(i._d=!1),es();const o=i&&je(i(s)),a=is(Jt,{key:s.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&1===e._?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a},t.resolveComponent=function(e,t){return G(U,e,!0,t)||e},t.resolveDirective=function(e){return G("directives",e)},t.resolveDynamicComponent=function(e){return n.isString(e)?G(U,e,!1)||e:e||H},t.resolveFilter=null,t.resolveTransitionHooks=fe,t.setBlockTracking=rs,t.setDevtoolsHook=Vs,t.setTransitionHooks=ye,t.ssrContextKey=X,t.ssrUtils=Ws,t.toHandlers=function(e,t){const s={};for(const r in e)s[t&&/[A-Z]/.test(r)?`on:${r}`:n.toHandlerKey(r)]=e[r];return s},t.transformVNodeArgs=function(e){},t.useAttrs=function(){return Ye().attrs},t.useModel=function(e,t,s=n.EMPTY_OBJ){const i=Is(),o=n.camelize(t),a=n.hyphenate(t),c=r.customRef(((r,c)=>{let l;return Z((()=>{const s=e[t];n.hasChanged(l,s)&&(l=s,c())})),{get:()=>(r(),s.get?s.get(l):l),set(e){const r=i.vnode.props;r&&(t in r||o in r||a in r)&&(`onUpdate:${t}`in r||`onUpdate:${o}`in r||`onUpdate:${a}`in r)||!n.hasChanged(e,l)||(l=e,c()),i.emit(`update:${t}`,s.set?s.set(e):e)}}})),l="modelValue"===t?"modelModifiers":`${t}Modifiers`;return c[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[l]||{}:c,done:!1}:{done:!0}}},c},t.useSSRContext=Q,t.useSlots=function(){return Ye().slots},t.useTransitionState=le,t.version=Ks,t.warn=js,t.watch=te,t.watchEffect=function(e,t){return se(e,null,t)},t.watchPostEffect=function(e,t){return se(e,null,{flush:"post"})},t.watchSyncEffect=Z,t.withAsyncContext=function(e){const t=Is();let s=e();return ws(),n.isPromise(s)&&(s=s.catch((e=>{throw _s(t),e}))),[s,()=>_s(t)]},t.withCtx=k,t.withDefaults=function(e,t){return null},t.withDirectives=function(e,t){if(null===x)return e;const s=Bs(x)||x.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,o,a,c=n.EMPTY_OBJ]=t[e];i&&(n.isFunction(i)&&(i={mounted:i,updated:i}),i.deep&&ie(o),r.push({dir:i,instance:s,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e},t.withMemo=function(e,t,s,r){const n=s[r];if(n&&Gs(n,e))return n;const i=t();return i.memo=e.slice(),s[r]=i},t.withScopeId=e=>k},2016:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(8528),n=s(8952);const i="undefined"!=typeof document?document:null,o=i&&i.createElement("template"),a={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,r)=>{const n="svg"===t?i.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?i.createElementNS("http://www.w3.org/1998/Math/MathML",e):i.createElement(e,s?{is:s}:void 0);return"select"===e&&r&&null!=r.multiple&&n.setAttribute("multiple",r.multiple),n},createText:e=>i.createTextNode(e),createComment:e=>i.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>i.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,r,n,i){const a=s?s.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),s),n!==i&&(n=n.nextSibling););else{o.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const n=o.content;if("svg"===r||"mathml"===r){const e=n.firstChild;for(;e.firstChild;)n.appendChild(e.firstChild);n.removeChild(e)}t.insertBefore(n,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},c="transition",l="animation",u=Symbol("_vtc"),h=(e,{slots:t})=>r.h(r.BaseTransition,g(e),t);h.displayName="Transition";const p={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},d=h.props=n.extend({},r.BaseTransitionPropsValidators,p),f=(e,t=[])=>{n.isArray(e)?e.forEach((e=>e(...t))):e&&e(...t)},m=e=>!!e&&(n.isArray(e)?e.some((e=>e.length>1)):e.length>1);function g(e){const t={};for(const s in e)s in p||(t[s]=e[s]);if(!1===e.css)return t;const{name:s="v",type:r,duration:i,enterFromClass:o=`${s}-enter-from`,enterActiveClass:a=`${s}-enter-active`,enterToClass:c=`${s}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:h=c,leaveFromClass:d=`${s}-leave-from`,leaveActiveClass:g=`${s}-leave-active`,leaveToClass:T=`${s}-leave-to`}=e,A=function(e){if(null==e)return null;if(n.isObject(e))return[y(e.enter),y(e.leave)];{const t=y(e);return[t,t]}}(i),P=A&&A[0],I=A&&A[1],{onBeforeEnter:N,onEnter:_,onEnterCancelled:w,onLeave:x,onLeaveCancelled:O,onBeforeAppear:M=N,onAppear:k=_,onAppearCancelled:L=w}=t,R=(e,t,s)=>{E(e,t?h:c),E(e,t?u:a),s&&s()},D=(e,t)=>{e._isLeaving=!1,E(e,d),E(e,T),E(e,g),t&&t()},F=e=>(t,s)=>{const n=e?k:_,i=()=>R(t,e,s);f(n,[t,i]),v((()=>{E(t,e?l:o),S(t,e?h:c),m(n)||b(t,r,P,i)}))};return n.extend(t,{onBeforeEnter(e){f(N,[e]),S(e,o),S(e,a)},onBeforeAppear(e){f(M,[e]),S(e,l),S(e,u)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const s=()=>D(e,t);S(e,d),C(),S(e,g),v((()=>{e._isLeaving&&(E(e,d),S(e,T),m(x)||b(e,r,I,s))})),f(x,[e,s])},onEnterCancelled(e){R(e,!1),f(w,[e])},onAppearCancelled(e){R(e,!0),f(L,[e])},onLeaveCancelled(e){D(e),f(O,[e])}})}function y(e){return n.toNumber(e)}function S(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[u]||(e[u]=new Set)).add(t)}function E(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const s=e[u];s&&(s.delete(t),s.size||(e[u]=void 0))}function v(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let T=0;function b(e,t,s,r){const n=e._endId=++T,i=()=>{n===e._endId&&r()};if(s)return setTimeout(i,s);const{type:o,timeout:a,propCount:c}=A(e,t);if(!o)return r();const l=o+"end";let u=0;const h=()=>{e.removeEventListener(l,p),i()},p=t=>{t.target===e&&++u>=c&&h()};setTimeout((()=>{u<c&&h()}),a+1),e.addEventListener(l,p)}function A(e,t){const s=window.getComputedStyle(e),r=e=>(s[e]||"").split(", "),n=r(`${c}Delay`),i=r(`${c}Duration`),o=P(n,i),a=r(`${l}Delay`),u=r(`${l}Duration`),h=P(a,u);let p=null,d=0,f=0;t===c?o>0&&(p=c,d=o,f=i.length):t===l?h>0&&(p=l,d=h,f=u.length):(d=Math.max(o,h),p=d>0?o>h?c:l:null,f=p?p===c?i.length:u.length:0);return{type:p,timeout:d,propCount:f,hasTransform:p===c&&/\b(transform|all)(,|$)/.test(r(`${c}Property`).toString())}}function P(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,s)=>I(t)+I(e[s]))))}function I(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function C(){return document.body.offsetHeight}const N=Symbol("_vod"),_={beforeMount(e,{value:t},{transition:s}){e[N]="none"===e.style.display?"":e.style.display,s&&t?s.beforeEnter(e):w(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:r}){!t==!s&&e.style.display===e[N]||(r?t?(r.beforeEnter(e),w(e,!0),r.enter(e)):r.leave(e,(()=>{w(e,!1)})):w(e,t))},beforeUnmount(e,{value:t}){w(e,t)}};function w(e,t){e.style.display=t?e[N]:"none"}const x=Symbol("");const O=/(^|;)\s*display\s*:/;const M=/\s*!important$/;function k(e,t,s){if(n.isArray(s))s.forEach((s=>k(e,t,s)));else if(null==s&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const i=function(e,t){const s=R[t];if(s)return s;let i=r.camelize(t);if("filter"!==i&&i in e)return R[t]=i;i=n.capitalize(i);for(let s=0;s<L.length;s++){const r=L[s]+i;if(r in e)return R[t]=r}return t}(e,t);M.test(s)?e.setProperty(n.hyphenate(i),s.replace(M,""),"important"):e[i]=s}}const L=["Webkit","Moz","ms"],R={};const D="http://www.w3.org/1999/xlink";function F(e,t,s,r){e.addEventListener(t,s,r)}const B=Symbol("_vei");function U(e,t,s,i,o=null){const a=e[B]||(e[B]={}),c=a[t];if(i&&c)c.value=i;else{const[s,l]=function(e){let t;if(H.test(e)){let s;for(t={};s=e.match(H);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}const s=":"===e[2]?e.slice(3):n.hyphenate(e.slice(2));return[s,t]}(t);if(i){const c=a[t]=function(e,t){const s=e=>{if(e._vts){if(e._vts<=s.attached)return}else e._vts=Date.now();r.callWithAsyncErrorHandling(function(e,t){if(n.isArray(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,s.value),t,5,[e])};return s.value=e,s.attached=j(),s}(i,o);F(e,s,c,l)}else c&&(!function(e,t,s,r){e.removeEventListener(t,s,r)}(e,s,c,l),a[t]=void 0)}}const H=/(?:Once|Passive|Capture)$/;let G=0;const K=Promise.resolve(),j=()=>G||(K.then((()=>G=0)),G=Date.now());const $=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function V(e,t){const s=r.defineComponent(e);class n extends q{constructor(e){super(s,e,t)}}return n.def=s,n}const W="undefined"!=typeof HTMLElement?HTMLElement:class{};class q extends W{constructor(e,t={},s){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),r.nextTick((()=>{this._connected||(Ce(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:s,styles:r}=e;let i;if(s&&!n.isArray(s))for(const e in s){const t=s[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=n.toNumber(this._props[e])),(i||(i=Object.create(null)))[n.camelize(e)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,s=n.isArray(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&s.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of s.map(n.camelize))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const s=n.camelize(e);this._numberProps&&this._numberProps[s]&&(t=n.toNumber(t)),this._setProp(s,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,s=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),s&&(!0===t?this.setAttribute(n.hyphenate(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(n.hyphenate(e),t+""):t||this.removeAttribute(n.hyphenate(e))))}_update(){Ce(this._createVNode(),this.shadowRoot)}_createVNode(){const e=r.createVNode(this._def,n.extend({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...s)=>{t(e,s),n.hyphenate(e)!==e&&t(n.hyphenate(e),s)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof q){e.parent=s._instance,e.provides=s._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const J=new WeakMap,Y=new WeakMap,z=Symbol("_moveCb"),X=Symbol("_enterCb"),Q={name:"TransitionGroup",props:n.extend({},d,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=r.getCurrentInstance(),n=r.useTransitionState();let i,o;return r.onUpdated((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,s){const r=e.cloneNode(),n=e[u];n&&n.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));s.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=A(r);return i.removeChild(r),o}(i[0].el,s.vnode.el,t))return;i.forEach(ee),i.forEach(te);const r=i.filter(se);C(),r.forEach((e=>{const s=e.el,r=s.style;S(s,t),r.transform=r.webkitTransform=r.transitionDuration="";const n=s[z]=e=>{e&&e.target!==s||e&&!/transform$/.test(e.propertyName)||(s.removeEventListener("transitionend",n),s[z]=null,E(s,t))};s.addEventListener("transitionend",n)}))})),()=>{const a=r.toRaw(e),c=g(a);let l=a.tag||r.Fragment;i=o,o=t.default?r.getTransitionRawChildren(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&r.setTransitionHooks(t,r.resolveTransitionHooks(t,c,n,s))}if(i)for(let e=0;e<i.length;e++){const t=i[e];r.setTransitionHooks(t,r.resolveTransitionHooks(t,c,n,s)),J.set(t,t.el.getBoundingClientRect())}return r.createVNode(l,null,o)}}},Z=Q;function ee(e){const t=e.el;t[z]&&t[z](),t[X]&&t[X]()}function te(e){Y.set(e,e.el.getBoundingClientRect())}function se(e){const t=J.get(e),s=Y.get(e),r=t.left-s.left,n=t.top-s.top;if(r||n){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${n}px)`,t.transitionDuration="0s",e}}const re=e=>{const t=e.props["onUpdate:modelValue"]||!1;return n.isArray(t)?e=>n.invokeArrayFns(t,e):t};function ne(e){e.target.composing=!0}function ie(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const oe=Symbol("_assign"),ae={created(e,{modifiers:{lazy:t,trim:s,number:r}},i){e[oe]=re(i);const o=r||i.props&&"number"===i.props.type;F(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;s&&(r=r.trim()),o&&(r=n.looseToNumber(r)),e[oe](r)})),s&&F(e,"change",(()=>{e.value=e.value.trim()})),t||(F(e,"compositionstart",ne),F(e,"compositionend",ie),F(e,"change",ie))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:s,trim:r,number:i}},o){if(e[oe]=re(o),e.composing)return;const a=null==t?"":t;if((i||"number"===e.type?n.looseToNumber(e.value):e.value)!==a){if(document.activeElement===e&&"range"!==e.type){if(s)return;if(r&&e.value.trim()===a)return}e.value=a}}},ce={deep:!0,created(e,t,s){e[oe]=re(s),F(e,"change",(()=>{const t=e._modelValue,s=de(e),r=e.checked,i=e[oe];if(n.isArray(t)){const e=n.looseIndexOf(t,s),o=-1!==e;if(r&&!o)i(t.concat(s));else if(!r&&o){const s=[...t];s.splice(e,1),i(s)}}else if(n.isSet(t)){const e=new Set(t);r?e.add(s):e.delete(s),i(e)}else i(fe(e,r))}))},mounted:le,beforeUpdate(e,t,s){e[oe]=re(s),le(e,t,s)}};function le(e,{value:t,oldValue:s},r){e._modelValue=t,n.isArray(t)?e.checked=n.looseIndexOf(t,r.props.value)>-1:n.isSet(t)?e.checked=t.has(r.props.value):t!==s&&(e.checked=n.looseEqual(t,fe(e,!0)))}const ue={created(e,{value:t},s){e.checked=n.looseEqual(t,s.props.value),e[oe]=re(s),F(e,"change",(()=>{e[oe](de(e))}))},beforeUpdate(e,{value:t,oldValue:s},r){e[oe]=re(r),t!==s&&(e.checked=n.looseEqual(t,r.props.value))}},he={deep:!0,created(e,{value:t,modifiers:{number:s}},i){const o=n.isSet(t);F(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>s?n.looseToNumber(de(e)):de(e)));e[oe](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,r.nextTick((()=>{e._assigning=!1}))})),e[oe]=re(i)},mounted(e,{value:t,oldValue:s,modifiers:{number:r}}){pe(e,t,s,r)},beforeUpdate(e,t,s){e[oe]=re(s)},updated(e,{value:t,oldValue:s,modifiers:{number:r}}){e._assigning||pe(e,t,s,r)}};function pe(e,t,s,r){const i=e.multiple,o=n.isArray(t);if(!i||o||n.isSet(t)){for(let s=0,a=e.options.length;s<a;s++){const a=e.options[s],c=de(a);if(i)if(o){const e=typeof c;a.selected="string"===e||"number"===e?t.includes(r?n.looseToNumber(c):c):n.looseIndexOf(t,c)>-1}else a.selected=t.has(c);else if(n.looseEqual(de(a),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}i||-1===e.selectedIndex||(e.selectedIndex=-1)}}function de(e){return"_value"in e?e._value:e.value}function fe(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const me={created(e,t,s){ye(e,t,s,null,"created")},mounted(e,t,s){ye(e,t,s,null,"mounted")},beforeUpdate(e,t,s,r){ye(e,t,s,r,"beforeUpdate")},updated(e,t,s,r){ye(e,t,s,r,"updated")}};function ge(e,t){switch(e){case"SELECT":return he;case"TEXTAREA":return ae;default:switch(t){case"checkbox":return ce;case"radio":return ue;default:return ae}}}function ye(e,t,s,r,n){const i=ge(e.tagName,s.props&&s.props.type)[n];i&&i(e,t,s,r)}const Se=["ctrl","shift","alt","meta"],Ee={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Se.some((s=>e[`${s}Key`]&&!t.includes(s)))},ve={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Te=n.extend({patchProp:(e,t,s,r,i,o,a,c,l)=>{const h="svg"===i;"class"===t?function(e,t,s){const r=e[u];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}(e,r,h):"style"===t?function(e,t,s){const r=e.style,i=n.isString(s),o=r.display;let a=!1;if(s&&!i){if(t&&!n.isString(t))for(const e in t)null==s[e]&&k(r,e,"");for(const e in s)"display"===e&&(a=!0),k(r,e,s[e])}else if(i){if(t!==s){const e=r[x];e&&(s+=";"+e),r.cssText=s,a=O.test(s)}}else t&&e.removeAttribute("style");N in e&&(e[N]=a?r.display:"",r.display=o)}(e,s,r):n.isOn(t)?n.isModelListener(t)||U(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,s,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&$(t)&&n.isFunction(s));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if($(t)&&n.isString(s))return!1;return t in e}(e,t,r,h))?function(e,t,s,r,i,o,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,o),void(e[t]=null==s?"":s);const c=e.tagName;if("value"===t&&"PROGRESS"!==c&&!c.includes("-")){e._value=s;const r=null==s?"":s;return("OPTION"===c?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==s&&e.removeAttribute(t))}let l=!1;if(""===s||null==s){const r=typeof e[t];"boolean"===r?s=n.includeBooleanAttr(s):null==s&&"string"===r?(s="",l=!0):"number"===r&&(s=0,l=!0)}try{e[t]=s}catch(e){}l&&e.removeAttribute(t)}(e,t,r,o,a,c,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,s,r,i){if(r&&t.startsWith("xlink:"))null==s?e.removeAttributeNS(D,t.slice(6,t.length)):e.setAttributeNS(D,t,s);else{const r=n.isSpecialBooleanAttr(t);null==s||r&&!n.includeBooleanAttr(s)?e.removeAttribute(t):e.setAttribute(t,r?"":s)}}(e,t,r,h))}},a);let be,Ae=!1;function Pe(){return be||(be=r.createRenderer(Te))}function Ie(){return be=Ae?be:r.createHydrationRenderer(Te),Ae=!0,be}const Ce=(...e)=>{Pe().render(...e)},Ne=(...e)=>{Ie().hydrate(...e)};function _e(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function we(e){if(n.isString(e)){return document.querySelector(e)}return e}let xe=!1;t.Transition=h,t.TransitionGroup=Z,t.VueElement=q,t.createApp=(...e)=>{const t=Pe().createApp(...e),{mount:s}=t;return t.mount=e=>{const r=we(e);if(!r)return;const i=t._component;n.isFunction(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=s(r,!1,_e(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},t.createSSRApp=(...e)=>{const t=Ie().createApp(...e),{mount:s}=t;return t.mount=e=>{const t=we(e);if(t)return s(t,!0,_e(t))},t},t.defineCustomElement=V,t.defineSSRCustomElement=e=>V(e,Ne),t.hydrate=Ne,t.initDirectivesForSSR=()=>{xe||(xe=!0,ae.getSSRProps=({value:e})=>({value:e}),ue.getSSRProps=({value:e},t)=>{if(t.props&&n.looseEqual(t.props.value,e))return{checked:!0}},ce.getSSRProps=({value:e},t)=>{if(n.isArray(e)){if(t.props&&n.looseIndexOf(e,t.props.value)>-1)return{checked:!0}}else if(n.isSet(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},me.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const s=ge(t.type.toUpperCase(),t.props&&t.props.type);return s.getSSRProps?s.getSSRProps(e,t):void 0},_.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},t.render=Ce,t.useCssModule=function(e="$style"){{const t=r.getCurrentInstance();if(!t)return n.EMPTY_OBJ;const s=t.type.__cssModules;if(!s)return n.EMPTY_OBJ;const i=s[e];return i||n.EMPTY_OBJ}},t.useCssVars=function(e){},t.vModelCheckbox=ce,t.vModelDynamic=me,t.vModelRadio=ue,t.vModelSelect=he,t.vModelText=ae,t.vShow=_,t.withKeys=(e,t)=>{const s=e._withKeys||(e._withKeys={}),r=t.join(".");return s[r]||(s[r]=s=>{if(!("key"in s))return;const r=n.hyphenate(s.key);return t.some((e=>e===r||ve[e]===r))?e(s):void 0})},t.withModifiers=(e,t)=>{const s=e._withMods||(e._withMods={}),r=t.join(".");return s[r]||(s[r]=(s,...r)=>{for(let e=0;e<t.length;e++){const r=Ee[t[e]];if(r&&r(s,t))return}return e(s,...r)})},Object.keys(r).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r[e])}))},8952:(e,t)=>{"use strict";function s(e,t){const s=new Set(e.split(","));return t?e=>s.has(e.toLowerCase()):e=>s.has(e)}Object.defineProperty(t,"__esModule",{value:!0});const r=Object.assign,n=Object.prototype.hasOwnProperty,i=Array.isArray,o=e=>"[object Map]"===f(e),a=e=>"[object Set]"===f(e),c=e=>"[object Date]"===f(e),l=e=>"function"==typeof e,u=e=>"string"==typeof e,h=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,f=e=>d.call(e),m=e=>"[object Object]"===f(e),g=s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),y=s("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),S=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},E=/-(\w)/g,v=S((e=>e.replace(E,((e,t)=>t?t.toUpperCase():"")))),T=/\B([A-Z])/g,b=S((e=>e.replace(T,"-$1").toLowerCase())),A=S((e=>e.charAt(0).toUpperCase()+e.slice(1))),P=S((e=>e?`on${A(e)}`:""));let I;const C=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;const N={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},_={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},w=s("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),x=w;function O(e){if(i(e)){const t={};for(let s=0;s<e.length;s++){const r=e[s],n=u(r)?R(r):O(r);if(n)for(const e in n)t[e]=n[e]}return t}if(u(e)||p(e))return e}const M=/;(?![^(]*\))/g,k=/:([^]+)/,L=/\/\*[^]*?\*\//g;function R(e){const t={};return e.replace(L,"").split(M).forEach((e=>{if(e){const s=e.split(k);s.length>1&&(t[s[0].trim()]=s[1].trim())}})),t}function D(e){let t="";if(u(e))t=e;else if(i(e))for(let s=0;s<e.length;s++){const r=D(e[s]);r&&(t+=r+" ")}else if(p(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const F=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),B=s("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),U=s("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),H=s("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),G="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",K=s(G),j=s(G+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");const $=/[>/="'\u0009\u000a\u000c\u0020]/,V={};const W=s("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),q=s("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");const J=/["'&<>]/;const Y=/^-?>|<!--|-->|--!>|<!-$/g;function z(e,t){if(e===t)return!0;let s=c(e),r=c(t);if(s||r)return!(!s||!r)&&e.getTime()===t.getTime();if(s=h(e),r=h(t),s||r)return e===t;if(s=i(e),r=i(t),s||r)return!(!s||!r)&&function(e,t){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=z(e[r],t[r]);return s}(e,t);if(s=p(e),r=p(t),s||r){if(!s||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e){const r=e.hasOwnProperty(s),n=t.hasOwnProperty(s);if(r&&!n||!r&&n||!z(e[s],t[s]))return!1}}return String(e)===String(t)}const X=(e,t)=>t&&t.__v_isRef?X(e,t.value):o(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,s],r)=>(e[Q(t,r)+" =>"]=s,e)),{})}:a(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Q(e)))}:h(t)?Q(t):!p(t)||i(t)||m(t)?t:String(t),Q=(e,t="")=>{var s;return h(e)?`Symbol(${null!=(s=e.description)?s:t})`:e};t.EMPTY_ARR=[],t.EMPTY_OBJ={},t.NO=()=>!1,t.NOOP=()=>{},t.PatchFlagNames=N,t.PatchFlags={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},t.ShapeFlags={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},t.SlotFlags={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},t.camelize=v,t.capitalize=A,t.def=(e,t,s)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:s})},t.escapeHtml=function(e){const t=""+e,s=J.exec(t);if(!s)return t;let r,n,i="",o=0;for(n=s.index;n<t.length;n++){switch(t.charCodeAt(n)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}o!==n&&(i+=t.slice(o,n)),o=n+1,i+=r}return o!==n?i+t.slice(o,n):i},t.escapeHtmlComment=function(e){return e.replace(Y,"")},t.extend=r,t.genPropsAccessExp=function(e){return C.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`},t.generateCodeFrame=function(e,t=0,s=e.length){let r=e.split(/(\r?\n)/);const n=r.filter(((e,t)=>t%2==1));r=r.filter(((e,t)=>t%2==0));let i=0;const o=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+(n[e]&&n[e].length||0),i>=t){for(let a=e-2;a<=e+2||s>i;a++){if(a<0||a>=r.length)continue;const c=a+1;o.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${r[a]}`);const l=r[a].length,u=n[a]&&n[a].length||0;if(a===e){const e=t-(i-(l+u)),r=Math.max(1,s>i?l-e:s-t);o.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(a>e){if(s>i){const e=Math.max(Math.min(s-i,l),1);o.push(" | "+"^".repeat(e))}i+=l+u}}break}return o.join("\n")},t.getGlobalThis=()=>I||(I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),t.hasChanged=(e,t)=>!Object.is(e,t),t.hasOwn=(e,t)=>n.call(e,t),t.hyphenate=b,t.includeBooleanAttr=function(e){return!!e||""===e},t.invokeArrayFns=(e,t)=>{for(let s=0;s<e.length;s++)e[s](t)},t.isArray=i,t.isBooleanAttr=j,t.isBuiltInDirective=y,t.isDate=c,t.isFunction=l,t.isGloballyAllowed=w,t.isGloballyWhitelisted=x,t.isHTMLTag=F,t.isIntegerKey=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,t.isKnownHtmlAttr=W,t.isKnownSvgAttr=q,t.isMap=o,t.isMathMLTag=U,t.isModelListener=e=>e.startsWith("onUpdate:"),t.isObject=p,t.isOn=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),t.isPlainObject=m,t.isPromise=e=>(p(e)||l(e))&&l(e.then)&&l(e.catch),t.isRegExp=e=>"[object RegExp]"===f(e),t.isRenderableAttrValue=function(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t},t.isReservedProp=g,t.isSSRSafeAttrName=function(e){if(V.hasOwnProperty(e))return V[e];const t=$.test(e);return t&&console.error(`unsafe attribute name: ${e}`),V[e]=!t},t.isSVGTag=B,t.isSet=a,t.isSpecialBooleanAttr=K,t.isString=u,t.isSymbol=h,t.isVoidTag=H,t.looseEqual=z,t.looseIndexOf=function(e,t){return e.findIndex((e=>z(e,t)))},t.looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},t.makeMap=s,t.normalizeClass=D,t.normalizeProps=function(e){if(!e)return null;let{class:t,style:s}=e;return t&&!u(t)&&(e.class=D(t)),s&&(e.style=O(s)),e},t.normalizeStyle=O,t.objectToString=d,t.parseStringStyle=R,t.propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},t.remove=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},t.slotFlagsText=_,t.stringifyStyle=function(e){let t="";if(!e||u(e))return t;for(const s in e){const r=e[s],n=s.startsWith("--")?s:b(s);(u(r)||"number"==typeof r)&&(t+=`${n}:${r};`)}return t},t.toDisplayString=e=>u(e)?e:null==e?"":i(e)||p(e)&&(e.toString===d||!l(e.toString))?JSON.stringify(e,X,2):String(e),t.toHandlerKey=P,t.toNumber=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t},t.toRawType=e=>f(e).slice(8,-1),t.toTypeString=f},656:e=>{"use strict";function t(e,t){for(var s=e.toString();s.length<t;)s="0"+s;return s}function s(e){return t(e,2)}function r(r,n){"string"!=typeof r&&(n=r,r=e.exports.ISO8601_FORMAT),n||(n=e.exports.now());var i,o,a,c,l=s(n.getDate()),u=s(n.getMonth()+1),h=s(n.getFullYear()),p=s(h.substring(2,4)),d=r.indexOf("yyyy")>-1?h:p,f=s(n.getHours()),m=s(n.getMinutes()),g=s(n.getSeconds()),y=t(n.getMilliseconds(),3),S=(i=n.getTimezoneOffset(),o=Math.abs(i),a=String(Math.floor(o/60)),c=String(o%60),a=("0"+a).slice(-2),c=("0"+c).slice(-2),0===i?"Z":(i<0?"+":"-")+a+":"+c);return r.replace(/dd/g,l).replace(/MM/g,u).replace(/y{1,4}/g,d).replace(/hh/g,f).replace(/mm/g,m).replace(/ss/g,g).replace(/SSS/g,y).replace(/O/g,S)}function n(e,t,s,r){e["set"+(r?"":"UTC")+t](s)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,s,r){if(!t)throw new Error("pattern must be supplied");return function(t,s,r){var i=t.indexOf("O")<0,o=!1,a=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){n(e,"FullYear",t,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){n(e,"Month",t-1,i),e.getMonth()!==t-1&&(o=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){o&&n(e,"Month",e.getMonth()-1,i),n(e,"Date",t,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){n(e,"Hours",t,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){n(e,"Minutes",t,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){n(e,"Seconds",t,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){n(e,"Milliseconds",t,i)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var s=Math.abs(t),r=(t>0?-1:1)*(s%100+60*Math.floor(s/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=a.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),l=a.filter((function(e){return e.index>-1}));l.sort((function(e,t){return e.index-t.index}));var u=new RegExp(c.regexp).exec(s);if(u){var h=r||e.exports.now();return l.forEach((function(e,t){e.fn(h,u[t+1])})),h}throw new Error("String '"+s+"' could not be parsed as '"+t+"'")}(t,s,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},9448:(e,t,s)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(n=r))})),t.splice(n,0,s)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=s(4656)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},4656:(e,t,s)=>{e.exports=function(e){function t(e){let s,n,i,o=null;function a(...e){if(!a.enabled)return;const r=a,n=Number(new Date),i=n-(s||n);r.diff=i,r.prev=s,r.curr=n,s=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((s,n)=>{if("%%"===s)return"%";o++;const i=t.formatters[n];if("function"==typeof i){const t=e[o];s=i.call(r,t),e.splice(o,1),o--}return s})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,s){const r=t(this.namespace+(void 0===s?":":s)+e);return r.log=this.log,r}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let s;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(s=0;s<n;s++)r[s]&&("-"===(e=r[s].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let s,r;for(s=0,r=t.skips.length;s<r;s++)if(t.skips[s].test(e))return!1;for(s=0,r=t.names.length;s<r;s++)if(t.names[s].test(e))return!0;return!1},t.humanize=s(6952),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((s=>{t[s]=e[s]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let s=0;for(let t=0;t<e.length;t++)s=(s<<5)-s+e.charCodeAt(t),s|=0;return t.colors[Math.abs(s)%t.colors.length]},t.enable(t.load()),t}},5432:(e,t,s)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=s(9448):e.exports=s(2040)},2040:(e,t,s)=>{const r=s(3340),n=s(970);t.init=function(e){e.inspectOpts={};const s=Object.keys(t.inspectOpts);for(let r=0;r<s.length;r++)e.inspectOpts[s[r]]=t.inspectOpts[s[r]]},t.log=function(...e){return process.stderr.write(n.format(...e)+"\n")},t.formatArgs=function(s){const{namespace:r,useColors:n}=this;if(n){const t=this.color,n="[3"+(t<8?t:"8;5;"+t),i=` ${n};1m${r} `;s[0]=i+s[0].split("\n").join("\n"+i),s.push(n+"m+"+e.exports.humanize(this.diff)+"")}else s[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+s[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=s(5176);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const s=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[s]=r,e}),{}),e.exports=s(4656)(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},4124:(e,t,s)=>{var r=s(2912),n=s(6992);t.FALLBACK_CHARACTER=63;var i=t.HAS_TYPED="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array,o=!1,a=!1;try{"a"===String.fromCharCode.apply(null,[97])&&(o=!0)}catch(e){}if(i)try{"a"===String.fromCharCode.apply(null,new Uint8Array([97]))&&(a=!0)}catch(e){}t.CAN_CHARCODE_APPLY=o,t.CAN_CHARCODE_APPLY_TYPED=a,t.APPLY_BUFFER_SIZE=65533,t.APPLY_BUFFER_SIZE_OK=null;var c=t.EncodingNames={UTF32:{order:0},UTF32BE:{alias:["UCS4"]},UTF32LE:null,UTF16:{order:1},UTF16BE:{alias:["UCS2"]},UTF16LE:null,BINARY:{order:2},ASCII:{order:3,alias:["ISO646","CP367"]},JIS:{order:4,alias:["ISO2022JP"]},UTF8:{order:5},EUCJP:{order:6},SJIS:{order:7,alias:["CP932","MSKANJI","WINDOWS31J"]},UNICODE:{order:8}},l={};t.EncodingAliases=l,t.EncodingOrders=function(){for(var e,t,s,n,i=l,o=r.objectKeys(c),a=[],u=0,h=o.length;u<h;u++)if(i[e=o[u]]=e,null!=(t=c[e])&&(null!=t.order&&(a[a.length]=e),t.alias))for(s=0,n=t.alias.length;s<n;s++)i[t.alias[s]]=e;return a.sort((function(e,t){return c[e].order-c[t].order})),a}(),t.init_JIS_TO_UTF8_TABLE=function(){if(null===n.JIS_TO_UTF8_TABLE){n.JIS_TO_UTF8_TABLE={};for(var e,t,s=r.objectKeys(n.UTF8_TO_JIS_TABLE),i=0,o=s.length;i<o;i++)e=s[i],(t=n.UTF8_TO_JIS_TABLE[e])>95&&(n.JIS_TO_UTF8_TABLE[t]=0|e);for(n.JISX0212_TO_UTF8_TABLE={},o=(s=r.objectKeys(n.UTF8_TO_JISX0212_TABLE)).length,i=0;i<o;i++)e=s[i],t=n.UTF8_TO_JISX0212_TABLE[e],n.JISX0212_TO_UTF8_TABLE[t]=0|e}}},6492:(e,t,s)=>{var r=s(4124),n=s(2912),i=s(227),o=s(6992);function a(e){r.init_JIS_TO_UTF8_TABLE();for(var t,s,n,i,a,c,l,u=[],h=0,p=e&&e.length;h<p;h++)(t=e[h])>=161&&t<=223?(i=188|(n=t-64)>>6&3,a=128|63&n,u[u.length]=239,u[u.length]=255&i,u[u.length]=255&a):t>=128?(s=t<<1,(n=e[++h])<159?(s-=s<319?225:97,n-=n>126?32:31):(s-=s<319?224:96,n-=126),c=((s&=255)<<8)+n,void 0===(l=o.JIS_TO_UTF8_TABLE[c])?u[u.length]=r.FALLBACK_CHARACTER:l<65535?(u[u.length]=l>>8&255,u[u.length]=255&l):(u[u.length]=l>>16&255,u[u.length]=l>>8&255,u[u.length]=255&l)):u[u.length]=255&e[h];return u}function c(e){r.init_JIS_TO_UTF8_TABLE();for(var t,s,n,i,a,c,l=[],u=0,h=e&&e.length;u<h;u++)142===(t=e[u])?(n=188|(s=e[++u]-64)>>6&3,i=128|63&s,l[l.length]=239,l[l.length]=255&n,l[l.length]=255&i):143===t?(a=(e[++u]-128<<8)+(e[++u]-128),void 0===(c=o.JISX0212_TO_UTF8_TABLE[a])?l[l.length]=r.FALLBACK_CHARACTER:c<65535?(l[l.length]=c>>8&255,l[l.length]=255&c):(l[l.length]=c>>16&255,l[l.length]=c>>8&255,l[l.length]=255&c)):t>=128?(a=(t-128<<8)+(e[++u]-128),void 0===(c=o.JIS_TO_UTF8_TABLE[a])?l[l.length]=r.FALLBACK_CHARACTER:c<65535?(l[l.length]=c>>8&255,l[l.length]=255&c):(l[l.length]=c>>16&255,l[l.length]=c>>8&255,l[l.length]=255&c)):l[l.length]=255&e[u];return l}function l(e){r.init_JIS_TO_UTF8_TABLE();for(var t,s,n,i,a,c=[],l=0,u=0,h=e&&e.length;u<h;u++){for(;27===e[u];)if(36===e[u+1]&&66===e[u+2]||36===e[u+1]&&64===e[u+2]?l=1:40===e[u+1]&&73===e[u+2]?l=2:36===e[u+1]&&40===e[u+2]&&68===e[u+3]?(l=3,u++):l=0,void 0===e[u+=3])return c;1===l?(i=(e[u]<<8)+e[++u],void 0===(a=o.JIS_TO_UTF8_TABLE[i])?c[c.length]=r.FALLBACK_CHARACTER:a<65535?(c[c.length]=a>>8&255,c[c.length]=255&a):(c[c.length]=a>>16&255,c[c.length]=a>>8&255,c[c.length]=255&a)):2===l?(s=188|(t=e[u]+64)>>6&3,n=128|63&t,c[c.length]=239,c[c.length]=255&s,c[c.length]=255&n):3===l?(i=(e[u]<<8)+e[++u],void 0===(a=o.JISX0212_TO_UTF8_TABLE[i])?c[c.length]=r.FALLBACK_CHARACTER:a<65535?(c[c.length]=a>>8&255,c[c.length]=255&a):(c[c.length]=a>>16&255,c[c.length]=a>>8&255,c[c.length]=255&a)):c[c.length]=255&e[u]}return c}function u(e,t){for(var s,n,i,a,c,l,u=[],h=0,p=e&&e.length,d=t&&t.fallback;h<p;h++)(s=e[h])>=128?(s<=223?(a=[s,e[h+1]],c=(s<<8)+e[++h]):s<=239?(a=[s,e[h+1],e[h+2]],c=(s<<16)+(e[++h]<<8)+(255&e[++h])):(a=[s,e[h+1],e[h+2],e[h+3]],c=(s<<24)+(e[++h]<<16)+(e[++h]<<8)+(255&e[++h])),null==(l=o.UTF8_TO_JIS_TABLE[c])?d?_(u,a,d):u[u.length]=r.FALLBACK_CHARACTER:l<255?u[u.length]=l+128:(l>65536&&(l-=65536),i=255&l,1&(n=l>>8)?((n>>=1)<47?n+=113:n-=79,i+=i>95?32:31):((n>>=1)<=47?n+=112:n-=80,i+=126),u[u.length]=255&n,u[u.length]=255&i)):u[u.length]=255&e[h];return u}function h(e,t){for(var s,n,i,a,c=[],l=0,u=e&&e.length,h=t&&t.fallback;l<u;l++)(s=e[l])>=128?(s<=223?(n=[s,e[l+1]],i=(s<<8)+e[++l]):s<=239?(n=[s,e[l+1],e[l+2]],i=(s<<16)+(e[++l]<<8)+(255&e[++l])):(n=[s,e[l+1],e[l+2],e[l+3]],i=(s<<24)+(e[++l]<<16)+(e[++l]<<8)+(255&e[++l])),null==(a=o.UTF8_TO_JIS_TABLE[i])?null==(a=o.UTF8_TO_JISX0212_TABLE[i])?h?_(c,n,h):c[c.length]=r.FALLBACK_CHARACTER:(c[c.length]=143,c[c.length]=(a>>8)-128&255,c[c.length]=(255&a)-128&255):(a>65536&&(a-=65536),a<255?(c[c.length]=142,c[c.length]=a-128&255):(c[c.length]=(a>>8)-128&255,c[c.length]=(255&a)-128&255))):c[c.length]=255&e[l];return c}function p(e,t){for(var s,n,i,a,c=[],l=0,u=e&&e.length,h=0,p=t&&t.fallback,d=[27,40,66,27,36,66,27,40,73,27,36,40,68];h<u;h++)(s=e[h])<128?(0!==l&&(l=0,c[c.length]=d[0],c[c.length]=d[1],c[c.length]=d[2]),c[c.length]=255&s):(s<=223?(n=[s,e[h+1]],i=(s<<8)+e[++h]):s<=239?(n=[s,e[h+1],e[h+2]],i=(s<<16)+(e[++h]<<8)+(255&e[++h])):(n=[s,e[h+1],e[h+2],e[h+3]],i=(s<<24)+(e[++h]<<16)+(e[++h]<<8)+(255&e[++h])),null==(a=o.UTF8_TO_JIS_TABLE[i])?null==(a=o.UTF8_TO_JISX0212_TABLE[i])?(0!==l&&(l=0,c[c.length]=d[0],c[c.length]=d[1],c[c.length]=d[2]),p?_(c,n,p):c[c.length]=r.FALLBACK_CHARACTER):(3!==l&&(l=3,c[c.length]=d[9],c[c.length]=d[10],c[c.length]=d[11],c[c.length]=d[12]),c[c.length]=a>>8&255,c[c.length]=255&a):(a>65536&&(a-=65536),a<255?(2!==l&&(l=2,c[c.length]=d[6],c[c.length]=d[7],c[c.length]=d[8]),c[c.length]=255&a):(1!==l&&(l=1,c[c.length]=d[3],c[c.length]=d[4],c[c.length]=d[5]),c[c.length]=a>>8&255,c[c.length]=255&a)));return 0!==l&&(c[c.length]=d[0],c[c.length]=d[1],c[c.length]=d[2]),c}function d(e){for(var t,s,r=[],n=0,i=e&&e.length;n<i;n++)(t=e[n])>=55296&&t<=56319&&n+1<i&&(s=e[n+1])>=56320&&s<=57343&&(t=1024*(t-55296)+s-56320+65536,n++),t<128?r[r.length]=t:t<2048?(r[r.length]=192|t>>6&31,r[r.length]=128|63&t):t<65536?(r[r.length]=224|t>>12&15,r[r.length]=128|t>>6&63,r[r.length]=128|63&t):t<2097152&&(r[r.length]=240|t>>18&15,r[r.length]=128|t>>12&63,r[r.length]=128|t>>6&63,r[r.length]=128|63&t);return r}function f(e,t){for(var s,r,n,i=[],o=0,a=e&&e.length,c=t&&t.ignoreSurrogatePair;o<a;)(s=(r=e[o++])>>4)>=0&&s<=7?n=r:12===s||13===s?n=(31&r)<<6|63&e[o++]:14===s?n=(15&r)<<12|(63&e[o++])<<6|63&e[o++]:15===s&&(n=(7&r)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++]),n<=65535||c?i[i.length]=n:(n-=65536,i[i.length]=55296+(n>>10),i[i.length]=n%1024+56320);return i}function m(e,t){var s;if(t&&t.bom){var r,i,o=t.bom;n.isString(o)||(o="BE"),"B"===o.charAt(0).toUpperCase()?(r=[254,255],i=g(e)):(r=[255,254],i=y(e)),(s=[])[0]=r[0],s[1]=r[1];for(var a=0,c=i.length;a<c;a++)s[s.length]=i[a]}else s=g(e);return s}function g(e){for(var t,s=[],r=0,n=e&&e.length;r<n;)(t=e[r++])<=255?(s[s.length]=0,s[s.length]=t):t<=65535&&(s[s.length]=t>>8&255,s[s.length]=255&t);return s}function y(e){for(var t,s=[],r=0,n=e&&e.length;r<n;)(t=e[r++])<=255?(s[s.length]=t,s[s.length]=0):t<=65535&&(s[s.length]=255&t,s[s.length]=t>>8&255);return s}function S(e){var t,s,r=[],n=0,i=e&&e.length;for(i>=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(n=2);n<i;)t=e[n++],s=e[n++],r[r.length]=0===t?s:(255&t)<<8|255&s;return r}function E(e){var t,s,r=[],n=0,i=e&&e.length;for(i>=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(n=2);n<i;)t=e[n++],s=e[n++],r[r.length]=0===s?t:(255&s)<<8|255&t;return r}function v(e){for(var t,s,r=[],n=0,o=e&&e.length,a=!1,c=!0;n<o;)t=e[n++],s=e[n++],c&&2===n?(c=!1,254===t&&255===s?a=!1:255===t&&254===s?a=!0:(a=i.isUTF16LE(e),n=0)):r[r.length]=a?0===s?t:(255&s)<<8|255&t:0===t?s:(255&t)<<8|255&s;return r}function T(e){var t,s,r=[],n=0,i=e&&e.length;for(i>=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(n=2);n<i;)t=e[n++],s=e[n++],r[r.length]=s,r[r.length]=t;return r}function b(e,t){return m(f(e),t)}function A(e){return d(v(e))}function P(e){return g(f(e))}function I(e){return d(S(e))}function C(e){return y(f(e))}function N(e){return d(E(e))}function _(e,t,s){switch(s){case"html-entity":case"html-entity-hex":var r=f(t,{ignoreSurrogatePair:!0})[0];if(r){e[e.length]=38,e[e.length]=35;var n="hex"===s.slice(-3)?16:10;16===n&&(e[e.length]=120);for(var i=r.toString(n),o=0,a=i.length;o<a;o++)e[e.length]=i.charCodeAt(o);e[e.length]=59}}}t.JISToSJIS=function(e){for(var t,s,n=[],i=0,o=0,a=e&&e.length;o<a;o++){for(;27===e[o];)if(36===e[o+1]&&66===e[o+2]||36===e[o+1]&&64===e[o+2]?i=1:40===e[o+1]&&73===e[o+2]?i=2:36===e[o+1]&&40===e[o+2]&&68===e[o+3]?(i=3,o++):i=0,void 0===e[o+=3])return n;1===i?(t=e[o],s=e[++o],1&t?((t>>=1)<47?t+=113:t-=79,s+=s>95?32:31):((t>>=1)<=47?t+=112:t-=80,s+=126),n[n.length]=255&t,n[n.length]=255&s):n[n.length]=2===i?e[o]+128&255:3===i?r.FALLBACK_CHARACTER:255&e[o]}return n},t.JISToEUCJP=function(e){for(var t=[],s=0,r=e&&e.length,n=0;n<r;n++){for(;27===e[n];)if(36===e[n+1]&&66===e[n+2]||36===e[n+1]&&64===e[n+2]?s=1:40===e[n+1]&&73===e[n+2]?s=2:36===e[n+1]&&40===e[n+2]&&68===e[n+3]?(s=3,n++):s=0,void 0===e[n+=3])return t;1===s?(t[t.length]=e[n]+128&255,t[t.length]=e[++n]+128&255):2===s?(t[t.length]=142,t[t.length]=e[n]+128&255):3===s?(t[t.length]=143,t[t.length]=e[n]+128&255,t[t.length]=e[++n]+128&255):t[t.length]=255&e[n]}return t},t.SJISToJIS=function(e){for(var t,s,r=[],n=0,i=e&&e.length,o=0,a=[27,40,66,27,36,66,27,40,73];o<i;o++)(t=e[o])>=161&&t<=223?(2!==n&&(n=2,r[r.length]=a[6],r[r.length]=a[7],r[r.length]=a[8]),r[r.length]=t-128&255):t>=128?(1!==n&&(n=1,r[r.length]=a[3],r[r.length]=a[4],r[r.length]=a[5]),t<<=1,(s=e[++o])<159?(t-=t<319?225:97,s-=s>126?32:31):(t-=t<319?224:96,s-=126),r[r.length]=255&t,r[r.length]=255&s):(0!==n&&(n=0,r[r.length]=a[0],r[r.length]=a[1],r[r.length]=a[2]),r[r.length]=255&t);return 0!==n&&(r[r.length]=a[0],r[r.length]=a[1],r[r.length]=a[2]),r},t.SJISToEUCJP=function(e){for(var t,s,r=[],n=e&&e.length,i=0;i<n;i++)(t=e[i])>=161&&t<=223?(r[r.length]=142,r[r.length]=t):t>=129?(t<<=1,(s=e[++i])<159?(t-=t<319?97:225,s+=s>126?96:97):(t-=t<319?96:224,s+=2),r[r.length]=255&t,r[r.length]=255&s):r[r.length]=255&t;return r},t.EUCJPToJIS=function(e){for(var t,s=[],r=0,n=e&&e.length,i=0,o=[27,40,66,27,36,66,27,40,73,27,36,40,68];i<n;i++)142===(t=e[i])?(2!==r&&(r=2,s[s.length]=o[6],s[s.length]=o[7],s[s.length]=o[8]),s[s.length]=e[++i]-128&255):143===t?(3!==r&&(r=3,s[s.length]=o[9],s[s.length]=o[10],s[s.length]=o[11],s[s.length]=o[12]),s[s.length]=e[++i]-128&255,s[s.length]=e[++i]-128&255):t>142?(1!==r&&(r=1,s[s.length]=o[3],s[s.length]=o[4],s[s.length]=o[5]),s[s.length]=t-128&255,s[s.length]=e[++i]-128&255):(0!==r&&(r=0,s[s.length]=o[0],s[s.length]=o[1],s[s.length]=o[2]),s[s.length]=255&t);return 0!==r&&(s[s.length]=o[0],s[s.length]=o[1],s[s.length]=o[2]),s},t.EUCJPToSJIS=function(e){for(var t,s,n=[],i=e&&e.length,o=0;o<i;o++)143===(t=e[o])?(n[n.length]=r.FALLBACK_CHARACTER,o+=2):t>142?(s=e[++o],1&t?(t>>=1,t+=t<111?49:113,s-=s>223?96:97):(t>>=1,t+=t<=111?48:112,s-=2),n[n.length]=255&t,n[n.length]=255&s):n[n.length]=142===t?255&e[++o]:255&t;return n},t.SJISToUTF8=a,t.EUCJPToUTF8=c,t.JISToUTF8=l,t.UTF8ToSJIS=u,t.UTF8ToEUCJP=h,t.UTF8ToJIS=p,t.UNICODEToUTF8=d,t.UTF8ToUNICODE=f,t.UNICODEToUTF16=m,t.UNICODEToUTF16BE=g,t.UNICODEToUTF16LE=y,t.UTF16BEToUNICODE=S,t.UTF16LEToUNICODE=E,t.UTF16ToUNICODE=v,t.UTF16ToUTF16BE=function(e){for(var t,s,r=[],n=0,o=e&&e.length,a=!1,c=!0;n<o;)t=e[n++],s=e[n++],c&&2===n?(c=!1,254===t&&255===s?a=!1:255===t&&254===s?a=!0:(a=i.isUTF16LE(e),n=0)):a?(r[r.length]=s,r[r.length]=t):(r[r.length]=t,r[r.length]=s);return r},t.UTF16BEToUTF16=function(e,t){var s,r=!1;if(t&&t.bom){var i=t.bom;n.isString(i)||(i="BE"),"B"===i.charAt(0).toUpperCase()?s=[254,255]:(s=[255,254],r=!0)}var o,a,c=[],l=e&&e.length,u=0;for(l>=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(u=2),s&&(c[0]=s[0],c[1]=s[1]);u<l;)o=e[u++],a=e[u++],r?(c[c.length]=a,c[c.length]=o):(c[c.length]=o,c[c.length]=a);return c},t.UTF16ToUTF16LE=function(e){for(var t,s,r=[],n=0,o=e&&e.length,a=!1,c=!0;n<o;)t=e[n++],s=e[n++],c&&2===n?(c=!1,254===t&&255===s?a=!1:255===t&&254===s?a=!0:(a=i.isUTF16LE(e),n=0)):a?(r[r.length]=t,r[r.length]=s):(r[r.length]=s,r[r.length]=t);return r},t.UTF16LEToUTF16=function(e,t){var s,r=!1;if(t&&t.bom){var i=t.bom;n.isString(i)||(i="BE"),"B"===i.charAt(0).toUpperCase()?s=[254,255]:(s=[255,254],r=!0)}var o,a,c=[],l=e&&e.length,u=0;for(l>=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(u=2),s&&(c[0]=s[0],c[1]=s[1]);u<l;)o=e[u++],a=e[u++],r?(c[c.length]=o,c[c.length]=a):(c[c.length]=a,c[c.length]=o);return c},t.UTF16BEToUTF16LE=T,t.UTF16LEToUTF16BE=function(e){return T(e)},t.UNICODEToJIS=function(e,t){return p(d(e),t)},t.JISToUNICODE=function(e){return f(l(e))},t.UNICODEToEUCJP=function(e,t){return h(d(e),t)},t.EUCJPToUNICODE=function(e){return f(c(e))},t.UNICODEToSJIS=function(e,t){return u(d(e),t)},t.SJISToUNICODE=function(e){return f(a(e))},t.UTF8ToUTF16=b,t.UTF16ToUTF8=A,t.UTF8ToUTF16BE=P,t.UTF16BEToUTF8=I,t.UTF8ToUTF16LE=C,t.UTF16LEToUTF8=N,t.JISToUTF16=function(e,t){return b(l(e),t)},t.UTF16ToJIS=function(e,t){return p(A(e),t)},t.JISToUTF16BE=function(e){return P(l(e))},t.UTF16BEToJIS=function(e,t){return p(I(e),t)},t.JISToUTF16LE=function(e){return C(l(e))},t.UTF16LEToJIS=function(e,t){return p(N(e),t)},t.EUCJPToUTF16=function(e,t){return b(c(e),t)},t.UTF16ToEUCJP=function(e,t){return h(A(e),t)},t.EUCJPToUTF16BE=function(e){return P(c(e))},t.UTF16BEToEUCJP=function(e,t){return h(I(e),t)},t.EUCJPToUTF16LE=function(e){return C(c(e))},t.UTF16LEToEUCJP=function(e,t){return h(N(e),t)},t.SJISToUTF16=function(e,t){return b(a(e),t)},t.UTF16ToSJIS=function(e,t){return u(A(e),t)},t.SJISToUTF16BE=function(e){return P(a(e))},t.UTF16BEToSJIS=function(e,t){return u(I(e),t)},t.SJISToUTF16LE=function(e){return C(a(e))},t.UTF16LEToSJIS=function(e,t){return u(N(e),t)}},227:(e,t)=>{t.isBINARY=function(e){for(var t,s=0,r=e&&e.length;s<r;s++){if((t=e[s])>255)return!1;if(t>=0&&t<=7||255===t)return!0}return!1},t.isASCII=function(e){for(var t,s=0,r=e&&e.length;s<r;s++)if((t=e[s])>255||t>=128&&t<=255||27===t)return!1;return!0},t.isJIS=function(e){for(var t,s,r,n=0,i=e&&e.length;n<i;n++){if((t=e[n])>255||t>=128&&t<=255)return!1;if(27===t){if(n+2>=i)return!1;if(s=e[n+1],r=e[n+2],36===s){if(40===r||64===r||66===r)return!0}else{if(38===s&&64===r)return!0;if(40===s&&(66===r||73===r||74===r))return!0}}}return!1},t.isEUCJP=function(e){for(var t,s=0,r=e&&e.length;s<r;s++)if(!((t=e[s])<128)){if(t>255||t<142)return!1;if(142===t){if(s+1>=r)return!1;if((t=e[++s])<161||223<t)return!1}else if(143===t){if(s+2>=r)return!1;if((t=e[++s])<162||237<t)return!1;if((t=e[++s])<161||254<t)return!1}else{if(!(161<=t&&t<=254))return!1;if(s+1>=r)return!1;if((t=e[++s])<161||254<t)return!1}}return!0},t.isSJIS=function(e){for(var t,s=0,r=e&&e.length;s<r&&e[s]>128;)if(e[s++]>255)return!1;for(;s<r;s++)if(!((t=e[s])<=128||161<=t&&t<=223)){if(160===t||t>239||s+1>=r)return!1;if((t=e[++s])<64||127===t||t>252)return!1}return!0},t.isUTF8=function(e){for(var t,s=0,r=e&&e.length;s<r;s++){if((t=e[s])>255)return!1;if(!(9===t||10===t||13===t||t>=32&&t<=126))if(t>=194&&t<=223){if(s+1>=r||e[s+1]<128||e[s+1]>191)return!1;s++}else if(224===t){if(s+2>=r||e[s+1]<160||e[s+1]>191||e[s+2]<128||e[s+2]>191)return!1;s+=2}else if(t>=225&&t<=236||238===t||239===t){if(s+2>=r||e[s+1]<128||e[s+1]>191||e[s+2]<128||e[s+2]>191)return!1;s+=2}else if(237===t){if(s+2>=r||e[s+1]<128||e[s+1]>159||e[s+2]<128||e[s+2]>191)return!1;s+=2}else if(240===t){if(s+3>=r||e[s+1]<144||e[s+1]>191||e[s+2]<128||e[s+2]>191||e[s+3]<128||e[s+3]>191)return!1;s+=3}else if(t>=241&&t<=243){if(s+3>=r||e[s+1]<128||e[s+1]>191||e[s+2]<128||e[s+2]>191||e[s+3]<128||e[s+3]>191)return!1;s+=3}else{if(244!==t)return!1;if(s+3>=r||e[s+1]<128||e[s+1]>143||e[s+2]<128||e[s+2]>191||e[s+3]<128||e[s+3]>191)return!1;s+=3}}return!0},t.isUTF16=function(e){var t,s,r,n,i=0,o=e&&e.length,a=null;if(o<2){if(e[0]>255)return!1}else{if(t=e[0],s=e[1],255===t&&254===s)return!0;if(254===t&&255===s)return!0;for(;i<o;i++){if(0===e[i]){a=i;break}if(e[i]>255)return!1}if(null===a)return!1;if(void 0!==(r=e[a+1])&&r>0&&r<128)return!0;if(void 0!==(n=e[a-1])&&n>0&&n<128)return!0}return!1},t.isUTF16BE=function(e){var t,s,r=0,n=e&&e.length,i=null;if(n<2){if(e[0]>255)return!1}else{if(t=e[0],s=e[1],254===t&&255===s)return!0;for(;r<n;r++){if(0===e[r]){i=r;break}if(e[r]>255)return!1}if(null===i)return!1;if(i%2==0)return!0}return!1},t.isUTF16LE=function(e){var t,s,r=0,n=e&&e.length,i=null;if(n<2){if(e[0]>255)return!1}else{if(t=e[0],s=e[1],255===t&&254===s)return!0;for(;r<n;r++){if(0===e[r]){i=r;break}if(e[r]>255)return!1}if(null===i)return!1;if(i%2!=0)return!0}return!1},t.isUTF32=function(e){var t,s,r,n,i,o,a=0,c=e&&e.length,l=null;if(c<4){for(;a<c;a++)if(e[a]>255)return!1}else{if(t=e[0],s=e[1],r=e[2],n=e[3],0===t&&0===s&&254===r&&255===n)return!0;if(255===t&&254===s&&0===r&&0===n)return!0;for(;a<c;a++){if(0===e[a]&&0===e[a+1]&&0===e[a+2]){l=a;break}if(e[a]>255)return!1}if(null===l)return!1;if(void 0!==(i=e[l+3])&&i>0&&i<=127)return 0===e[l+2]&&0===e[l+1];if(void 0!==(o=e[l-1])&&o>0&&o<=127)return 0===e[l+1]&&0===e[l+2]}return!1},t.isUNICODE=function(e){for(var t,s=0,r=e&&e.length;s<r;s++)if((t=e[s])<0||t>1114111)return!1;return!0}},6992:(e,t,s)=>{t.UTF8_TO_JIS_TABLE=s(9152),t.UTF8_TO_JISX0212_TABLE=s(8024),t.JIS_TO_UTF8_TABLE=s(9444),t.JISX0212_TO_UTF8_TABLE=s(6432)},2228:(e,t,s)=>{var r=s(4124),n=s(2912),i=s(227),o=s(6492),a=s(3552),c=s(6408).WU,l=Object.prototype.hasOwnProperty,u={version:c,orders:r.EncodingOrders,detect:function(e,t){if(null==e||0===e.length)return!1;n.isObject(t)&&!n.isArray(t)&&(t=t.encoding),n.isString(e)&&(e=n.stringToBuffer(e)),null==t?t=u.orders:n.isString(t)&&(t="AUTO"===(t=t.toUpperCase())?u.orders:~t.indexOf(",")?t.split(/\s*,\s*/):[t]);for(var s,r,o,a=t.length,c=0;c<a;c++)if(s=t[c],r=n.canonicalizeEncodingName(s)){if(o="is"+r,!l.call(i,o))throw new Error("Undefined encoding: "+s);if(i[o](e))return r}return!1},convert:function(e,t,s){var r,i,a;n.isObject(t)?(s=(a=t).from,t=a.to,a.type&&(i=a.type)):a={},n.isString(e)?(i=i||"string",e=n.stringToBuffer(e)):null!=e&&0!==e.length||(e=[]);var c=(null!=s&&n.isString(s)&&"AUTO"!==s.toUpperCase()&&!~s.indexOf(",")?n.canonicalizeEncodingName(s):u.detect(e))+"To"+n.canonicalizeEncodingName(t);switch(r=l.call(o,c)?o[c](e,a):e,(""+i).toLowerCase()){case"string":return n.codeToString_fast(r);case"arraybuffer":return n.codeToBuffer(r);default:return n.bufferToCode(r)}},urlEncode:function(e){n.isString(e)&&(e=n.stringToBuffer(e));for(var t,s=n.stringToCode("0123456789ABCDEF"),r=[],i=0,o=e&&e.length;i<o;i++){if((t=e[i])>255)return encodeURIComponent(n.codeToString_fast(e));t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||33===t||t>=39&&t<=42||45===t||46===t||95===t||126===t?r[r.length]=t:(r[r.length]=37,t<16?(r[r.length]=48,r[r.length]=s[t]):(r[r.length]=s[t>>4&15],r[r.length]=s[15&t]))}return n.codeToString_fast(r)},urlDecode:function(e){for(var t,s=[],r=0,n=e&&e.length;r<n;)t=e.charCodeAt(r++),s[s.length]=37===t?parseInt(e.charAt(r++)+e.charAt(r++),16):t;return s},base64Encode:function(e){return n.isString(e)&&(e=n.stringToBuffer(e)),n.base64encode(e)},base64Decode:function(e){return n.base64decode(e)},codeToString:n.codeToString_fast,stringToCode:n.stringToCode,toHankakuCase:function(e){var t=!1;n.isString(e)&&(t=!0,e=n.stringToBuffer(e));for(var s,r=[],i=e&&e.length,o=0;o<i;)(s=e[o++])>=65281&&s<=65374&&(s-=65248),r[r.length]=s;return t?n.codeToString_fast(r):r},toZenkakuCase:function(e){var t=!1;n.isString(e)&&(t=!0,e=n.stringToBuffer(e));for(var s,r=[],i=e&&e.length,o=0;o<i;)(s=e[o++])>=33&&s<=126&&(s+=65248),r[r.length]=s;return t?n.codeToString_fast(r):r},toHiraganaCase:function(e){var t=!1;n.isString(e)&&(t=!0,e=n.stringToBuffer(e));for(var s,r=[],i=e&&e.length,o=0;o<i;)(s=e[o++])>=12449&&s<=12534?s-=96:12535===s?(r[r.length]=12431,s=12443):12538===s&&(r[r.length]=12434,s=12443),r[r.length]=s;return t?n.codeToString_fast(r):r},toKatakanaCase:function(e){var t=!1;n.isString(e)&&(t=!0,e=n.stringToBuffer(e));for(var s,r=[],i=e&&e.length,o=0;o<i;)(s=e[o++])>=12353&&s<=12438&&((12431===s||12434===s)&&o<i&&12443===e[o]?(s=12431===s?12535:12538,o++):s+=96),r[r.length]=s;return t?n.codeToString_fast(r):r},toHankanaCase:function(e){var t=!1;n.isString(e)&&(t=!0,e=n.stringToBuffer(e));for(var s,r,i,o=[],c=e&&e.length,l=0;l<c;)(s=e[l++])>=12289&&s<=12540&&void 0!==(i=a.HANKANA_TABLE[s])?o[o.length]=i:12532===s||12535===s||12538===s?(o[o.length]=a.HANKANA_SONANTS[s],o[o.length]=65438):s>=12459&&s<=12489?(o[o.length]=a.HANKANA_TABLE[s-1],o[o.length]=65438):s>=12495&&s<=12509?(r=s%3,o[o.length]=a.HANKANA_TABLE[s-r],o[o.length]=a.HANKANA_MARKS[r-1]):o[o.length]=s;return t?n.codeToString_fast(o):o},toZenkanaCase:function(e){var t=!1;n.isString(e)&&(t=!0,e=n.stringToBuffer(e));var s,r,i,o=[],c=e&&e.length,l=0;for(l=0;l<c;l++)(s=e[l])>65376&&s<65440&&(r=a.ZENKANA_TABLE[s-65377],l+1<c&&(65438===(i=e[l+1])&&65395===s?(r=12532,l++):65438===i&&65436===s?(r=12535,l++):65438===i&&65382===s?(r=12538,l++):65438===i&&(s>65397&&s<65413||s>65417&&s<65423)?(r++,l++):65439===i&&s>65417&&s<65423&&(r+=2,l++)),s=r),o[o.length]=s;return t?n.codeToString_fast(o):o},toHankakuSpace:function(e){if(n.isString(e))return e.replace(/\u3000/g," ");for(var t,s=[],r=e&&e.length,i=0;i<r;)12288===(t=e[i++])&&(t=32),s[s.length]=t;return s},toZenkakuSpace:function(e){if(n.isString(e))return e.replace(/\u0020/g," ");for(var t,s=[],r=e&&e.length,i=0;i<r;)32===(t=e[i++])&&(t=12288),s[s.length]=t;return s}};e.exports=u},9444:e=>{e.exports=null},6432:e=>{e.exports=null},3552:(e,t)=>{t.HANKANA_TABLE={12289:65380,12290:65377,12300:65378,12301:65379,12443:65438,12444:65439,12449:65383,12450:65393,12451:65384,12452:65394,12453:65385,12454:65395,12455:65386,12456:65396,12457:65387,12458:65397,12459:65398,12461:65399,12463:65400,12465:65401,12467:65402,12469:65403,12471:65404,12473:65405,12475:65406,12477:65407,12479:65408,12481:65409,12483:65391,12484:65410,12486:65411,12488:65412,12490:65413,12491:65414,12492:65415,12493:65416,12494:65417,12495:65418,12498:65419,12501:65420,12504:65421,12507:65422,12510:65423,12511:65424,12512:65425,12513:65426,12514:65427,12515:65388,12516:65428,12517:65389,12518:65429,12519:65390,12520:65430,12521:65431,12522:65432,12523:65433,12524:65434,12525:65435,12527:65436,12530:65382,12531:65437,12539:65381,12540:65392},t.HANKANA_SONANTS={12532:65395,12535:65436,12538:65382},t.HANKANA_MARKS=[65438,65439],t.ZENKANA_TABLE=[12290,12300,12301,12289,12539,12530,12449,12451,12453,12455,12457,12515,12517,12519,12483,12540,12450,12452,12454,12456,12458,12459,12461,12463,12465,12467,12469,12471,12473,12475,12477,12479,12481,12484,12486,12488,12490,12491,12492,12493,12494,12495,12498,12501,12504,12507,12510,12511,12512,12513,12514,12516,12518,12520,12521,12522,12523,12524,12525,12527,12531,12443,12444]},9152:e=>{e.exports={15711649:33,15711650:34,15711651:35,15711652:36,15711653:37,15711654:38,15711655:39,15711656:40,15711657:41,15711658:42,15711659:43,15711660:44,15711661:45,15711662:46,15711663:47,15711664:48,15711665:49,15711666:50,15711667:51,15711668:52,15711669:53,15711670:54,15711671:55,15711672:56,15711673:57,15711674:58,15711675:59,15711676:60,15711677:61,15711678:62,15711679:63,15711872:64,15711873:65,15711874:66,15711875:67,15711876:68,15711877:69,15711878:70,15711879:71,15711880:72,15711881:73,15711882:74,15711883:75,15711884:76,15711885:77,15711886:78,15711887:79,15711888:80,15711889:81,15711890:82,15711891:83,15711892:84,15711893:85,15711894:86,15711895:87,15711896:88,15711897:89,15711898:90,15711899:91,15711900:92,15711901:93,15711902:94,15711903:95,14848416:11553,14848417:11554,14848418:11555,14848419:11556,14848420:11557,14848421:11558,14848422:11559,14848423:11560,14848424:11561,14848425:11562,14848426:11563,14848427:11564,14848428:11565,14848429:11566,14848430:11567,14848431:11568,14848432:11569,14848433:11570,14848434:11571,14848435:11572,14845344:11573,14845345:11574,14845346:11575,14845347:11576,14845348:11577,14845349:11578,14845350:11579,14845351:11580,14845352:11581,14845353:11582,14912905:11584,14912660:11585,14912674:11586,14912909:11587,14912664:11588,14912679:11589,14912643:11590,14912694:11591,14912913:11592,14912919:11593,14912653:11594,14912678:11595,14912675:11596,14912683:11597,14912906:11598,14912699:11599,14913180:11600,14913181:11601,14913182:11602,14913166:11603,14913167:11604,14913412:11605,14913185:11606,14912955:11615,14909597:11616,14909599:11617,14845078:11618,14913421:11619,14845089:11620,14912164:11621,14912165:11622,14912166:11623,14912167:11624,14912168:11625,14911665:11626,14911666:11627,14911673:11628,14912958:11629,14912957:11630,14912956:11631,14846126:11635,14846097:11636,14846111:11640,14846655:11641,14909568:8481,14909569:8482,14909570:8483,15711372:8484,15711374:8485,14910395:8486,15711386:8487,15711387:8488,15711391:8489,15711361:8490,14910107:8491,14910108:8492,49844:8493,15711616:8494,49832:8495,15711422:8496,15712163:8497,15711423:8498,14910397:8499,14910398:8500,14910109:8501,14910110:8502,14909571:8503,14990237:8504,14909573:8505,14909574:8506,14909575:8507,14910396:8508,14844053:8509,14844048:8510,15711375:8511,15711420:8512,15711646:8513,14844054:8514,15711644:8515,14844070:8516,14844069:8517,14844056:8518,14844057:8519,14844060:8520,14844061:8521,15711368:8522,15711369:8523,14909588:8524,14909589:8525,15711419:8526,15711421:8527,15711643:8528,15711645:8529,14909576:8530,14909577:8531,14909578:8532,14909579:8533,14909580:8534,14909581:8535,14909582:8536,14909583:8537,14909584:8538,14909585:8539,15711371:8540,15711373:8541,49841:8542,50071:8543,50103:8544,15711389:8545,14846368:8546,15711388:8547,15711390:8548,14846374:8549,14846375:8550,14846110:8551,14846132:8552,14850434:8553,14850432:8554,49840:8555,14844082:8556,14844083:8557,14845059:8558,15712165:8559,15711364:8560,15712160:8561,15712161:8562,15711365:8563,15711363:8564,15711366:8565,15711370:8566,15711392:8567,49831:8568,14850182:8569,14850181:8570,14849931:8571,14849935:8572,14849934:8573,14849927:8574,14849926:8737,14849697:8738,14849696:8739,14849715:8740,14849714:8741,14849725:8742,14849724:8743,14844091:8744,14909586:8745,14845586:8746,14845584:8747,14845585:8748,14845587:8749,14909587:8750,14846088:8762,14846091:8763,14846598:8764,14846599:8765,14846594:8766,14846595:8767,14846122:8768,14846121:8769,14846119:8778,14846120:8779,49836:8780,14845842:8781,14845844:8782,14846080:8783,14846083:8784,14846112:8796,14846629:8797,14847122:8798,14846082:8799,14846087:8800,14846369:8801,14846354:8802,14846378:8803,14846379:8804,14846106:8805,14846141:8806,14846109:8807,14846133:8808,14846123:8809,14846124:8810,14845099:8818,14844080:8819,14850479:8820,14850477:8821,14850474:8822,14844064:8823,14844065:8824,49846:8825,14849967:8830,15711376:9008,15711377:9009,15711378:9010,15711379:9011,15711380:9012,15711381:9013,15711382:9014,15711383:9015,15711384:9016,15711385:9017,15711393:9025,15711394:9026,15711395:9027,15711396:9028,15711397:9029,15711398:9030,15711399:9031,15711400:9032,15711401:9033,15711402:9034,15711403:9035,15711404:9036,15711405:9037,15711406:9038,15711407:9039,15711408:9040,15711409:9041,15711410:9042,15711411:9043,15711412:9044,15711413:9045,15711414:9046,15711415:9047,15711416:9048,15711417:9049,15711418:9050,15711617:9057,15711618:9058,15711619:9059,15711620:9060,15711621:9061,15711622:9062,15711623:9063,15711624:9064,15711625:9065,15711626:9066,15711627:9067,15711628:9068,15711629:9069,15711630:9070,15711631:9071,15711632:9072,15711633:9073,15711634:9074,15711635:9075,15711636:9076,15711637:9077,15711638:9078,15711639:9079,15711640:9080,15711641:9081,15711642:9082,14909825:9249,14909826:9250,14909827:9251,14909828:9252,14909829:9253,14909830:9254,14909831:9255,14909832:9256,14909833:9257,14909834:9258,14909835:9259,14909836:9260,14909837:9261,14909838:9262,14909839:9263,14909840:9264,14909841:9265,14909842:9266,14909843:9267,14909844:9268,14909845:9269,14909846:9270,14909847:9271,14909848:9272,14909849:9273,14909850:9274,14909851:9275,14909852:9276,14909853:9277,14909854:9278,14909855:9279,14909856:9280,14909857:9281,14909858:9282,14909859:9283,14909860:9284,14909861:9285,14909862:9286,14909863:9287,14909864:9288,14909865:9289,14909866:9290,14909867:9291,14909868:9292,14909869:9293,14909870:9294,14909871:9295,14909872:9296,14909873:9297,14909874:9298,14909875:9299,14909876:9300,14909877:9301,14909878:9302,14909879:9303,14909880:9304,14909881:9305,14909882:9306,14909883:9307,14909884:9308,14909885:9309,14909886:9310,14909887:9311,14910080:9312,14910081:9313,14910082:9314,14910083:9315,14910084:9316,14910085:9317,14910086:9318,14910087:9319,14910088:9320,14910089:9321,14910090:9322,14910091:9323,14910092:9324,14910093:9325,14910094:9326,14910095:9327,14910096:9328,14910097:9329,14910098:9330,14910099:9331,14910113:9505,14910114:9506,14910115:9507,14910116:9508,14910117:9509,14910118:9510,14910119:9511,14910120:9512,14910121:9513,14910122:9514,14910123:9515,14910124:9516,14910125:9517,14910126:9518,14910127:9519,14910128:9520,14910129:9521,14910130:9522,14910131:9523,14910132:9524,14910133:9525,14910134:9526,14910135:9527,14910136:9528,14910137:9529,14910138:9530,14910139:9531,14910140:9532,14910141:9533,14910142:9534,14910143:9535,14910336:9536,14910337:9537,14910338:9538,14910339:9539,14910340:9540,14910341:9541,14910342:9542,14910343:9543,14910344:9544,14910345:9545,14910346:9546,14910347:9547,14910348:9548,14910349:9549,14910350:9550,14910351:9551,14910352:9552,14910353:9553,14910354:9554,14910355:9555,14910356:9556,14910357:9557,14910358:9558,14910359:9559,14910360:9560,14910361:9561,14910362:9562,14910363:9563,14910364:9564,14910365:9565,14910366:9566,14910367:9567,14910368:9568,14910369:9569,14910370:9570,14910371:9571,14910372:9572,14910373:9573,14910374:9574,14910375:9575,14910376:9576,14910377:9577,14910378:9578,14910379:9579,14910380:9580,14910381:9581,14910382:9582,14910383:9583,14910384:9584,14910385:9585,14910386:9586,14910387:9587,14910388:9588,14910389:9589,14910390:9590,52881:9761,52882:9762,52883:9763,52884:9764,52885:9765,52886:9766,52887:9767,52888:9768,52889:9769,52890:9770,52891:9771,52892:9772,52893:9773,52894:9774,52895:9775,52896:9776,52897:9777,52899:9778,52900:9779,52901:9780,52902:9781,52903:9782,52904:9783,52905:9784,52913:9793,52914:9794,52915:9795,52916:9796,52917:9797,52918:9798,52919:9799,52920:9800,52921:9801,52922:9802,52923:9803,52924:9804,52925:9805,52926:9806,52927:9807,53120:9808,53121:9809,53123:9810,53124:9811,53125:9812,53126:9813,53127:9814,53128:9815,53129:9816,53392:10017,53393:10018,53394:10019,53395:10020,53396:10021,53397:10022,53377:10023,53398:10024,53399:10025,53400:10026,53401:10027,53402:10028,53403:10029,53404:10030,53405:10031,53406:10032,53407:10033,53408:10034,53409:10035,53410:10036,53411:10037,53412:10038,53413:10039,53414:10040,53415:10041,53416:10042,53417:10043,53418:10044,53419:10045,53420:10046,53421:10047,53422:10048,53423:10049,53424:10065,53425:10066,53426:10067,53427:10068,53428:10069,53429:10070,53649:10071,53430:10072,53431:10073,53432:10074,53433:10075,53434:10076,53435:10077,53436:10078,53437:10079,53438:10080,53439:10081,53632:10082,53633:10083,53634:10084,53635:10085,53636:10086,53637:10087,53638:10088,53639:10089,53640:10090,53641:10091,53642:10092,53643:10093,53644:10094,53645:10095,53646:10096,53647:10097,14849152:10273,14849154:10274,14849164:10275,14849168:10276,14849176:10277,14849172:10278,14849180:10279,14849196:10280,14849188:10281,14849204:10282,14849212:10283,14849153:10284,14849155:10285,14849167:10286,14849171:10287,14849179:10288,14849175:10289,14849187:10290,14849203:10291,14849195:10292,14849211:10293,14849419:10294,14849184:10295,14849199:10296,14849192:10297,14849207:10298,14849215:10299,14849181:10300,14849200:10301,14849189:10302,14849208:10303,14849410:10304,14989980:12321,15045782:12322,15050883:12323,15308991:12324,15045504:12325,15107227:12326,15109288:12327,15050678:12328,15302818:12329,15241653:12330,15240348:12331,15182224:12332,15106730:12333,15110049:12334,15120549:12335,15112109:12336,15241638:12337,15239846:12338,15314869:12339,15114899:12340,15047847:12341,15111841:12342,15108529:12343,15052443:12344,15050640:12345,15243707:12346,15311796:12347,15185314:12348,15185598:12349,15314574:12350,15108246:12351,15184543:12352,15246007:12353,15052425:12354,15055541:12355,15109257:12356,15112855:12357,15114632:12358,15308679:12359,15310477:12360,15113615:12361,14990245:12362,14990474:12363,14990733:12364,14991005:12365,15040905:12366,15047602:12367,15049911:12368,15050644:12369,15050881:12370,15052937:12371,15106975:12372,15107215:12373,15107504:12374,15112339:12375,15115397:12376,15172282:12377,15177103:12378,15177136:12379,15181755:12380,15185581:12381,15185839:12382,15238019:12383,15241358:12384,15245731:12385,15248514:12386,15303061:12387,15303098:12388,15043771:12389,14989973:12390,14989989:12391,15048607:12392,15237810:12393,15303553:12394,15180719:12395,14989440:12396,15049649:12397,15121058:12398,15302840:12399,15182002:12400,15240360:12401,15239819:12402,15315119:12403,15041921:12404,15044016:12405,15045309:12406,15045537:12407,15047584:12408,15050683:12409,15056021:12410,15311794:12411,15120299:12412,15238052:12413,15242413:12414,15309218:12577,15309232:12578,15309472:12579,15310779:12580,15044747:12581,15044531:12582,15052423:12583,15172495:12584,15187645:12585,15253378:12586,15309736:12587,15044015:12588,15316380:12589,15182522:12590,14989457:12591,15180435:12592,15239100:12593,15120550:12594,15046808:12595,15045764:12596,15117469:12597,15242394:12598,15315131:12599,15050661:12600,15044265:12601,15119782:12602,15176604:12603,15308431:12604,15047042:12605,14989969:12606,15303051:12607,15309746:12608,15240591:12609,15312012:12610,15044513:12611,15046326:12612,15051952:12613,15056305:12614,15112352:12615,15113139:12616,15114372:12617,15118520:12618,15119283:12619,15119529:12620,15176091:12621,15178632:12622,15182222:12623,15311028:12624,15240113:12625,15245723:12626,15247776:12627,15305645:12628,15120050:12629,15177387:12630,15178634:12631,15312773:12632,15106726:12633,15248513:12634,15251082:12635,15308466:12636,15115918:12637,15044269:12638,15042182:12639,15047826:12640,15048880:12641,15050116:12642,15052468:12643,15055798:12644,15106216:12645,15109801:12646,15110068:12647,15119039:12648,15121556:12649,15172238:12650,15172756:12651,15173017:12652,15173525:12653,15174847:12654,15186049:12655,15239606:12656,15240081:12657,15242903:12658,15303072:12659,15305115:12660,15316123:12661,15049129:12662,15111868:12663,15118746:12664,15176869:12665,15042489:12666,15049902:12667,15050149:12668,15056512:12669,15056796:12670,15108796:12833,15112122:12834,15116458:12835,15117479:12836,15118004:12837,15175307:12838,15187841:12839,15246742:12840,15316140:12841,15316110:12842,15317892:12843,15053473:12844,15118998:12845,15240635:12846,15041668:12847,15053195:12848,15107766:12849,15239046:12850,15114678:12851,15174049:12852,14989721:12853,14991290:12854,15044024:12855,15106473:12856,15120553:12857,15182223:12858,15310771:12859,14989451:12860,15043734:12861,14990254:12862,14990741:12863,14990525:12864,14991009:12865,14990771:12866,15043232:12867,15044527:12868,15046793:12869,15049871:12870,15051649:12871,15052470:12872,15052705:12873,15181713:12874,15112839:12875,15113884:12876,15113910:12877,15117708:12878,15119027:12879,15172011:12880,15175554:12881,15181453:12882,15181502:12883,15182012:12884,15183495:12885,15239857:12886,15240091:12887,15240324:12888,15240631:12889,15241135:12890,15241107:12891,15244710:12892,15248050:12893,15046825:12894,15250088:12895,15253414:12896,15303054:12897,15309982:12898,15243914:12899,14991236:12900,15053736:12901,15108241:12902,15174041:12903,15176891:12904,15239077:12905,15239869:12906,15244222:12907,15250304:12908,15309701:12909,15312019:12910,15312789:12911,14990219:12912,14990490:12913,15247267:12914,15047582:12915,15049098:12916,15049610:12917,15055803:12918,15056811:12919,15106218:12920,15106708:12921,15106466:12922,15107984:12923,15108242:12924,15109008:12925,15111353:12926,15314305:13089,15112614:13090,15114928:13091,15119799:13092,15172016:13093,15177100:13094,15178374:13095,15185333:13096,15239845:13097,15245241:13098,15308427:13099,15309454:13100,15250077:13101,15042481:13102,15043262:13103,15049878:13104,15045299:13105,15052467:13106,15053974:13107,15107496:13108,15115906:13109,15120047:13110,15180429:13111,15242123:13112,15245719:13113,15247794:13114,15306407:13115,15313592:13116,15119788:13117,15312552:13118,15244185:13119,15048355:13120,15114175:13121,15244174:13122,15304846:13123,15043203:13124,15047303:13125,15044740:13126,15055763:13127,15109025:13128,15110841:13129,15114428:13130,15114424:13131,15118011:13132,15175090:13133,15180474:13134,15182251:13135,15247002:13136,15247250:13137,15250859:13138,15252611:13139,15303597:13140,15308451:13141,15309460:13142,15310249:13143,15052198:13144,15053491:13145,15115709:13146,15311245:13147,15311246:13148,15109787:13149,15183008:13150,15116459:13151,15116735:13152,15114934:13153,15315085:13154,15121823:13155,15042994:13156,15046301:13157,15106480:13158,15109036:13159,15119547:13160,15120519:13161,15121297:13162,15241627:13163,15246480:13164,15252868:13165,14989460:13166,15315129:13167,15044534:13168,15115419:13169,15116474:13170,15310468:13171,15114410:13172,15041948:13173,15182723:13174,15241906:13175,15304604:13176,15306380:13177,15047067:13178,15316136:13179,15114402:13180,15240325:13181,15241393:13182,15184549:13345,15042696:13346,15240069:13347,15176614:13348,14989758:13349,14990979:13350,15042208:13351,15052690:13352,15042698:13353,15043480:13354,15043495:13355,15054779:13356,15046298:13357,15048874:13358,15050662:13359,15052428:13360,15052440:13361,15052699:13362,15055282:13363,15055289:13364,15106723:13365,15107231:13366,15107491:13367,15107774:13368,15110043:13369,15111586:13370,15114129:13371,15114643:13372,15115194:13373,15117502:13374,15117715:13375,15118743:13376,15121570:13377,15122071:13378,15121797:13379,15176368:13380,15176856:13381,15178659:13382,15178891:13383,15182783:13384,15183521:13385,15184033:13386,15185833:13387,15187126:13388,15187888:13389,15237789:13390,15239590:13391,15240862:13392,15247027:13393,15248268:13394,15250091:13395,15303300:13396,15307153:13397,15308435:13398,15308433:13399,15308450:13400,15309221:13401,15310739:13402,15312040:13403,15239320:13404,14989496:13405,15044779:13406,15053496:13407,15054732:13408,15175337:13409,15178124:13410,15178940:13411,15053481:13412,15187883:13413,15250571:13414,15309697:13415,15310993:13416,15311252:13417,15311256:13418,14990465:13419,14990478:13420,15044017:13421,15046300:13422,15047080:13423,15048634:13424,15050119:13425,15051913:13426,15052676:13427,15053456:13428,15054988:13429,15055294:13430,15056780:13431,15110062:13432,15113402:13433,15112087:13434,15112098:13435,15113375:13436,15115147:13437,15115140:13438,15116703:13601,15055024:13602,15118213:13603,15118487:13604,15118781:13605,15177151:13606,15181192:13607,15052195:13608,15181952:13609,15185024:13610,15056573:13611,15246991:13612,15247512:13613,15250100:13614,15250871:13615,15252364:13616,15252637:13617,15311778:13618,15313038:13619,15314108:13620,14989952:13621,15040957:13622,15041664:13623,15050387:13624,15052444:13625,15108271:13626,15108736:13627,15111084:13628,15117498:13629,15174304:13630,15177361:13631,15181191:13632,15187625:13633,15245243:13634,15248060:13635,15248816:13636,15109804:13637,15241098:13638,15310496:13639,15044745:13640,15044739:13641,15046315:13642,15114644:13643,15116696:13644,15247792:13645,15179943:13646,15113653:13647,15317901:13648,15044020:13649,15052450:13650,15238298:13651,15243664:13652,15302790:13653,14989464:13654,14989701:13655,14990215:13656,14990481:13657,15044490:13658,15044792:13659,15052462:13660,15056019:13661,15106213:13662,15111569:13663,15113405:13664,15118722:13665,15118770:13666,15119267:13667,15172024:13668,15175811:13669,15182262:13670,15182510:13671,15182984:13672,15185050:13673,15184830:13674,15185318:13675,15112103:13676,15174043:13677,15044283:13678,15053189:13679,15054760:13680,15109010:13681,15109024:13682,15109273:13683,15120544:13684,15243674:13685,15247537:13686,15251357:13687,15305656:13688,15121537:13689,15181478:13690,15314330:13691,14989992:13692,14989995:13693,14989996:13694,14991003:13857,14991008:13858,15041425:13859,15041927:13860,15182774:13861,15041969:13862,15042486:13863,15043988:13864,15043745:13865,15044031:13866,15044523:13867,15046316:13868,15049347:13869,15053729:13870,15056055:13871,15056266:13872,15106223:13873,15106448:13874,15106477:13875,15109279:13876,15111577:13877,15116683:13878,15119233:13879,15174530:13880,15174573:13881,15179695:13882,15238072:13883,15238277:13884,15239304:13885,15242638:13886,15303607:13887,15306657:13888,15310783:13889,15312279:13890,15313306:13891,14990256:13892,15042461:13893,15052973:13894,15112833:13895,15115693:13896,15053184:13897,15113138:13898,15115701:13899,15175305:13900,15114640:13901,15184513:13902,15041413:13903,15043492:13904,15048071:13905,15054782:13906,15305894:13907,15111844:13908,15117475:13909,15117501:13910,15175860:13911,15181441:13912,15181501:13913,15183243:13914,15185802:13915,15239865:13916,15241100:13917,15245759:13918,15246751:13919,15248569:13920,15253393:13921,15304593:13922,15044767:13923,15305344:13924,14989725:13925,15040694:13926,15044517:13927,15043770:13928,15174551:13929,15175318:13930,15179689:13931,15240102:13932,15252143:13933,15312774:13934,15312776:13935,15312786:13936,15041975:13937,15107226:13938,15243678:13939,15046320:13940,15182266:13941,15040950:13942,15052691:13943,15303047:13944,15309445:13945,14989490:13946,15117211:13947,15304615:13948,15053201:13949,15053192:13950,15109784:14113,15182495:14114,15118995:14115,15310260:14116,15252897:14117,15182506:14118,15173258:14119,15309448:14120,15184514:14121,15114391:14122,15186352:14123,15114641:14124,15306156:14125,15043506:14126,15044763:14127,15242923:14128,15247507:14129,15187620:14130,15252365:14131,15303585:14132,15044006:14133,15245960:14134,15181185:14135,14991234:14136,15041214:14137,15042705:14138,15041924:14139,15046035:14140,15047853:14141,15175594:14142,15048331:14143,15050129:14144,15056290:14145,15056516:14146,15106485:14147,15107510:14148,15107495:14149,15107753:14150,15109810:14151,15110330:14152,15111596:14153,15112623:14154,15114626:14155,15120531:14156,15177126:14157,15182013:14158,15184827:14159,15185292:14160,15185561:14161,15186315:14162,15187371:14163,15240334:14164,15240586:14165,15244173:14166,15247496:14167,15247779:14168,15248806:14169,15252413:14170,15311002:14171,15316623:14172,15239864:14173,15253390:14174,15314856:14175,15043207:14176,15108255:14177,15110787:14178,15122304:14179,15309465:14180,15114625:14181,15041169:14182,15117472:14183,15118778:14184,15121812:14185,15182260:14186,15185296:14187,15245696:14188,15247523:14189,15113352:14190,14990262:14191,15040697:14192,15040678:14193,15040933:14194,15041980:14195,15042744:14196,15042979:14197,15046311:14198,15047823:14199,15048837:14200,15051660:14201,15055802:14202,15107762:14203,15108024:14204,15109043:14205,15109554:14206,15115420:14369,15116457:14370,15174077:14371,15174316:14372,15174830:14373,15179924:14374,15180207:14375,15185337:14376,15178892:14377,15237801:14378,15246987:14379,15248537:14380,15250338:14381,15252370:14382,15303075:14383,15306165:14384,15309242:14385,15311253:14386,15313043:14387,15317432:14388,15041923:14389,15044255:14390,15044275:14391,15055291:14392,15056038:14393,15120539:14394,15121040:14395,15175300:14396,15175614:14397,15185283:14398,15239351:14399,15247488:14400,15248314:14401,15309200:14402,14989710:14403,15040651:14404,15044516:14405,15045052:14406,15047610:14407,15050641:14408,15052196:14409,15054769:14410,15055531:14411,15056039:14412,15108280:14413,15111557:14414,15113903:14415,15120790:14416,15174544:14417,15184778:14418,15246004:14419,15237793:14420,15238049:14421,15241136:14422,15243662:14423,15248007:14424,15251368:14425,15304887:14426,15309703:14427,15311271:14428,15318163:14429,14989972:14430,14989970:14431,14990477:14432,15043976:14433,15045001:14434,15044798:14435,15050927:14436,15056524:14437,15056545:14438,15106719:14439,15114919:14440,15116942:14441,15176090:14442,15180417:14443,15248030:14444,15248036:14445,15248823:14446,15304336:14447,14989726:14448,15314825:14449,14989988:14450,14990780:14451,14991023:14452,15040665:14453,15040662:14454,15041929:14455,15041964:14456,15043231:14457,15043257:14458,15043518:14459,15044250:14460,15044515:14461,15044753:14462,15044750:14625,15046281:14626,15048081:14627,15048354:14628,15050173:14629,15052180:14630,15052189:14631,15052431:14632,15054757:14633,15054759:14634,15054775:14635,15055288:14636,15055491:14637,15055514:14638,15055543:14639,15056024:14640,15106450:14641,15107468:14642,15108759:14643,15109016:14644,15109799:14645,15111355:14646,15112322:14647,15112579:14648,15113140:14649,15113645:14650,15114401:14651,15114903:14652,15116171:14653,15118751:14654,15119530:14655,15119785:14656,15120559:14657,15121053:14658,15176882:14659,15178375:14660,15180204:14661,15182015:14662,15184800:14663,15185029:14664,15185048:14665,15185310:14666,15185585:14667,15237269:14668,15237251:14669,15237807:14670,15237809:14671,15238548:14672,15238799:14673,15239338:14674,15240594:14675,15245708:14676,15245729:14677,15248539:14678,15250082:14679,15250364:14680,15303562:14681,15304117:14682,15305137:14683,15179967:14684,15305660:14685,15308452:14686,15309197:14687,15310981:14688,15312537:14689,15313816:14690,15316155:14691,15042971:14692,15043243:14693,15044535:14694,15044744:14695,15049621:14696,15109047:14697,15122336:14698,15249834:14699,15252895:14700,15317689:14701,15041931:14702,15042747:14703,15045002:14704,15047613:14705,15182208:14706,15304119:14707,15316384:14708,15317906:14709,15175044:14710,15121545:14711,15238576:14712,15176849:14713,15056829:14714,15106970:14715,15313576:14716,15174555:14717,15253180:14718,15117732:14881,15310979:14882,14990218:14883,15047600:14884,15048100:14885,15049406:14886,15051162:14887,15106472:14888,15107975:14889,15112335:14890,15112326:14891,15114425:14892,15114929:14893,15120311:14894,15177621:14895,15185082:14896,15239598:14897,15314306:14898,14989979:14899,14990736:14900,15044489:14901,15045766:14902,15054255:14903,15054758:14904,15054766:14905,15114171:14906,15119001:14907,15176115:14908,15179906:14909,15247760:14910,15306390:14911,15246239:14912,15048080:14913,15055527:14914,15109291:14915,15041205:14916,15041196:14917,15042189:14918,15113344:14919,15045513:14920,15049118:14921,15050427:14922,15052464:14923,15056297:14924,15108493:14925,15109793:14926,15114429:14927,15117747:14928,15120520:14929,15172029:14930,15304583:14931,15174272:14932,15179925:14933,15179942:14934,15181229:14935,15111822:14936,15185072:14937,15241116:14938,15246209:14939,15252617:14940,15309467:14941,15042980:14942,15047848:14943,15113616:14944,15187370:14945,15250081:14946,15042228:14947,15048066:14948,15308970:14949,15048890:14950,15115914:14951,15237812:14952,15045298:14953,15053966:14954,15048636:14955,15180437:14956,15316922:14957,14990748:14958,15042954:14959,15045259:14960,15110334:14961,15112360:14962,15113364:14963,15114165:14964,15182468:14965,15183254:14966,15185058:14967,15305903:14968,15114652:14969,15314605:14970,15183033:14971,15043737:14972,15042186:14973,15042743:14974,15052703:15137,15109046:15138,15110830:15139,15111078:15140,15113389:15141,15118010:15142,15242921:15143,15309713:15144,15178384:15145,15314838:15146,15109516:15147,15305862:15148,15314603:15149,15178431:15150,15112594:15151,14989449:15152,15041176:15153,15044482:15154,15053233:15155,15106984:15156,15110802:15157,15111587:15158,15114655:15159,15173542:15160,15175562:15161,15176867:15162,15183511:15163,15186562:15164,15243925:15165,15249027:15166,15250331:15167,15304120:15168,15312016:15169,15111852:15170,15112875:15171,15117963:15172,14990229:15173,14990228:15174,14990522:15175,14990783:15176,15042746:15177,15044536:15178,15044530:15179,15046563:15180,15047579:15181,15049643:15182,15050635:15183,15050633:15184,15050687:15185,15052176:15186,15053197:15187,15054978:15188,15055019:15189,15056791:15190,15106205:15191,15109255:15192,15111343:15193,15052188:15194,15111855:15195,15111869:15196,15112104:15197,15113885:15198,15117730:15199,15117755:15200,15118479:15201,15175045:15202,15181193:15203,15181697:15204,15184824:15205,15185049:15206,15185067:15207,15237794:15208,15238274:15209,15239091:15210,15246998:15211,15247774:15212,15247785:15213,15247782:15214,15248012:15215,15248302:15216,15250311:15217,15250332:15218,15309708:15219,15311804:15220,15117743:15221,14989963:15222,14990524:15223,14990989:15224,15041936:15225,15052183:15226,15052730:15227,15107464:15228,15109249:15229,15112578:15230,15117473:15393,15121291:15394,15119035:15395,15173822:15396,15176381:15397,15177620:15398,15180673:15399,15180986:15400,15237260:15401,15237299:15402,15239082:15403,15241876:15404,15253150:15405,15118736:15406,15317439:15407,15056015:15408,15248792:15409,15316139:15410,15182778:15411,15252408:15412,15052429:15413,15309739:15414,14989443:15415,15044529:15416,15048631:15417,15049905:15418,15051657:15419,15052452:15420,15106697:15421,15120831:15422,15121542:15423,15177406:15424,15250346:15425,15052447:15426,15242368:15427,15183776:15428,15040946:15429,15114164:15430,15239837:15431,15053217:15432,15242634:15433,15186078:15434,15239310:15435,15042201:15436,15052932:15437,15109544:15438,15250854:15439,15111836:15440,15173038:15441,15180990:15442,15185047:15443,15237253:15444,15248541:15445,15252362:15446,15303086:15447,15244167:15448,15303338:15449,15040671:15450,15043514:15451,15052986:15452,15113619:15453,15172028:15454,15173813:15455,15304076:15456,15304584:15457,15305899:15458,15240101:15459,15052674:15460,15056049:15461,15107001:15462,14989499:15463,15044502:15464,15052424:15465,15108491:15466,15113393:15467,15117962:15468,15174569:15469,15175584:15470,15181998:15471,15238571:15472,15251107:15473,15304082:15474,15312534:15475,15041682:15476,15044503:15477,15045034:15478,15052735:15479,15109768:15480,15116473:15481,15185580:15482,15309952:15483,15047578:15484,15044494:15485,15045032:15486,15052439:15649,15052977:15650,15054750:15651,14991278:15652,15107201:15653,15109054:15654,15119538:15655,15181696:15656,15181707:15657,15185282:15658,15186317:15659,15187858:15660,15239085:15661,15239327:15662,15241872:15663,15245702:15664,15246770:15665,15249040:15666,15251892:15667,15252655:15668,15302833:15669,15304075:15670,15304108:15671,15309702:15672,15304348:15673,14990208:15674,14990735:15675,15041925:15676,15043969:15677,15056531:15678,15108238:15679,15114132:15680,15118721:15681,15120523:15682,15175075:15683,15186086:15684,15304589:15685,15305347:15686,15044500:15687,15049881:15688,15052479:15689,15120273:15690,15181213:15691,15186094:15692,15184539:15693,15049150:15694,15173279:15695,15042490:15696,15245715:15697,15253424:15698,14991242:15699,15053755:15700,15112357:15701,15179436:15702,15182755:15703,15239324:15704,15312831:15705,15042438:15706,15056554:15707,15112108:15708,15115695:15709,15117961:15710,15120307:15711,15121046:15712,15121828:15713,15178686:15714,15185044:15715,15054753:15716,15303093:15717,15304327:15718,15310982:15719,15042470:15720,15042717:15721,15108480:15722,15112849:15723,15113113:15724,15120538:15725,15055542:15726,15185810:15727,15187378:15728,15113144:15729,15242927:15730,15243191:15731,15248312:15732,15043241:15733,15044505:15734,15050163:15735,15055503:15736,15056528:15737,15106453:15738,15305636:15739,15309220:15740,15041207:15741,15041695:15742,15043485:15905,15043744:15906,15043975:15907,15044524:15908,15045544:15909,15046022:15910,15045809:15911,15046807:15912,15050152:15913,15050430:15914,15050940:15915,15052469:15916,15052934:15917,15052943:15918,15052945:15919,15052954:15920,15055492:15921,15055498:15922,15055776:15923,15056304:15924,15108543:15925,15108740:15926,15109019:15927,15109772:15928,15109559:15929,15112327:15930,15112332:15931,15112365:15932,15112630:15933,15113662:15934,15114914:15935,15116447:15936,15116469:15937,15119036:15938,15120008:15939,15120521:15940,15120792:15941,15172796:15942,15172774:15943,15173031:15944,15177607:15945,15178881:15946,15180189:15947,15180929:15948,15181221:15949,15181744:15950,15182752:15951,15182993:15952,15184551:15953,15185081:15954,15237782:15955,15241110:15956,15241867:15957,15242633:15958,15245725:15959,15246259:15960,15247519:15961,15247548:15962,15247764:15963,15247795:15964,15249825:15965,15250334:15966,15304356:15967,15305126:15968,15306174:15969,15306904:15970,15309468:15971,15310488:15972,14989450:15973,14989448:15974,14989470:15975,14989719:15976,15042199:15977,15042992:15978,15048590:15979,15048884:15980,15049612:15981,15051938:15982,15055032:15983,15106949:15984,15111102:15985,15113633:15986,15113622:15987,15119748:15988,15174326:15989,15177139:15990,15182243:15991,15241912:15992,15248818:15993,15304376:15994,15305888:15995,15046833:15996,15048628:15997,15311806:15998,15109037:16161,15115405:16162,15117974:16163,15173549:16164,15186324:16165,15237559:16166,15239602:16167,15247270:16168,15311775:16169,15244693:16170,15253169:16171,15052987:16172,14990520:16173,14991265:16174,14991029:16175,15045767:16176,15050912:16177,15052701:16178,15052713:16179,15056771:16180,15107470:16181,15109295:16182,15111856:16183,15112587:16184,15115182:16185,15115931:16186,15119800:16187,15120305:16188,15176883:16189,15177401:16190,15178911:16191,15181214:16192,15181734:16193,15185075:16194,15239075:16195,15239855:16196,15242922:16197,15247018:16198,15247546:16199,15252139:16200,15253147:16201,15302834:16202,15304605:16203,15309959:16204,14990010:16205,14990209:16206,15042691:16207,15049141:16208,15049644:16209,15052939:16210,15176858:16211,15052989:16212,15238542:16213,15247498:16214,15253381:16215,15309219:16216,15310253:16217,15183013:16218,15248271:16219,15310984:16220,15304098:16221,15047603:16222,15044264:16223,15302807:16224,15044793:16225,15048322:16226,15055013:16227,15109800:16228,15118516:16229,15172234:16230,15179169:16231,15184523:16232,15187872:16233,15245744:16234,15303042:16235,15304084:16236,15305872:16237,15305880:16238,15309455:16239,15176094:16240,15313796:16241,15053959:16242,15054249:16243,15111600:16244,15113890:16245,15251112:16246,15309723:16247,15109550:16248,15113609:16249,15115417:16250,15241093:16251,15310999:16252,15309696:16253,15246270:16254,15122052:16417,15110586:16418,15052728:16419,14989462:16420,15171756:16421,15177117:16422,15112367:16423,15042436:16424,15042742:16425,15043490:16426,15050643:16427,15056513:16428,15106215:16429,15108240:16430,15111359:16431,15111604:16432,15112351:16433,15112628:16434,15115186:16435,15114390:16436,15117731:16437,15120517:16438,15174066:16439,15176863:16440,15178651:16441,15184574:16442,15237526:16443,15049648:16444,15246269:16445,15246783:16446,15248032:16447,15248019:16448,15248267:16449,15302813:16450,15304338:16451,15310226:16452,15310233:16453,15111817:16454,15181966:16455,15238278:16456,15309499:16457,15055021:16458,15106972:16459,15108250:16460,15111845:16461,15112340:16462,15113872:16463,15179699:16464,15182221:16465,15184269:16466,15186110:16467,15238282:16468,15250092:16469,15250852:16470,15251361:16471,15251871:16472,15180457:16473,15042695:16474,15109017:16475,15109797:16476,15110530:16477,15108760:16478,15247533:16479,15182467:16480,15183744:16481,15248044:16482,15309738:16483,15185334:16484,15239308:16485,15244681:16486,14990233:16487,15041928:16488,15043971:16489,15044e3:16490,15052451:16491,15052930:16492,15052950:16493,15054749:16494,15108262:16495,15108487:16496,15110832:16497,15114387:16498,15114420:16499,15119241:16500,15119749:16501,15119511:16502,15114131:16503,15121820:16504,15173006:16505,15173053:16506,15112075:16507,15182271:16508,15183533:16509,15185818:16510,15186314:16673,15187624:16674,15238586:16675,15239323:16676,15239353:16677,15242918:16678,15247790:16679,15250318:16680,15251381:16681,15303096:16682,15303095:16683,15305389:16684,15305361:16685,15308419:16686,15314606:16687,15042957:16688,15046276:16689,15121592:16690,15172790:16691,15041960:16692,15181445:16693,15186325:16694,15238835:16695,15184782:16696,15047052:16697,15049105:16698,15053480:16699,15109802:16700,15113150:16701,15113149:16702,15115674:16703,15174553:16704,15177359:16705,15177358:16706,15180942:16707,15181206:16708,15181727:16709,15184535:16710,15185056:16711,15185284:16712,15243399:16713,15247540:16714,15308987:16715,15303073:16716,15318176:16717,15041447:16718,15042997:16719,15044492:16720,15044514:16721,15040649:16722,15046314:16723,15049646:16724,15050127:16725,15173821:16726,15052427:16727,15053220:16728,15043741:16729,15106979:16730,15106995:16731,15109532:16732,15109763:16733,15109311:16734,15109819:16735,15111053:16736,15112105:16737,15113145:16738,15054755:16739,15116173:16740,15116221:16741,15121557:16742,15173541:16743,14989961:16744,15177641:16745,15178680:16746,15182483:16747,15184799:16748,15185807:16749,15185564:16750,15237537:16751,15240585:16752,15240600:16753,15241644:16754,15241916:16755,15243195:16756,15246213:16757,15250864:16758,15302785:16759,15303085:16760,15306391:16761,15309980:16762,15313042:16763,15041423:16764,15049367:16765,15107726:16766,15239059:16929,15242421:16930,15250568:16931,15302816:16932,14991235:16933,15040948:16934,15042951:16935,15044019:16936,15106479:16937,15109513:16938,15113631:16939,15120556:16940,15251123:16941,15302815:16942,14991255:16943,15053214:16944,15250314:16945,15112079:16946,15185562:16947,15043986:16948,15245974:16949,15041974:16950,15110019:16951,15052184:16952,15052203:16953,15052938:16954,15110285:16955,15113617:16956,15303068:16957,14990230:16958,15049882:16959,15049898:16960,15118768:16961,15247761:16962,15045822:16963,15048853:16964,15050405:16965,15106992:16966,15108499:16967,15114113:16968,15239349:16969,15115669:16970,15309184:16971,15312772:16972,15313064:16973,14990739:16974,15048838:16975,15052734:16976,15237264:16977,15053489:16978,15055023:16979,15056517:16980,15106208:16981,15107467:16982,15108276:16983,15113151:16984,15119280:16985,15121310:16986,15238030:16987,15238591:16988,15240084:16989,15245963:16990,15250104:16991,15302784:16992,15302830:16993,15309450:16994,15317915:16995,15314843:16996,14990243:16997,15044528:16998,15049895:16999,15183020:17e3,15304333:17001,15311244:17002,15316921:17003,15121309:17004,15171751:17005,15043987:17006,15046020:17007,15052421:17008,15108504:17009,15108766:17010,15109011:17011,15119010:17012,15122351:17013,15175842:17014,15247511:17015,15306936:17016,15122305:17017,15248318:17018,15240376:17019,15042471:17020,15244216:17021,15044522:17022,15044521:17185,14990726:17186,15303060:17187,15253168:17188,15050154:17189,15238321:17190,15054781:17191,15182762:17192,15253183:17193,15115162:17194,15249591:17195,15174584:17196,15315336:17197,15116477:17198,15248048:17199,14989497:17200,15043992:17201,15046790:17202,15048102:17203,15108997:17204,15109794:17205,15112102:17206,15117710:17207,15120289:17208,15120795:17209,15172269:17210,15179693:17211,15182767:17212,15183530:17213,15185595:17214,15237309:17215,15238022:17216,15244171:17217,15248021:17218,15306139:17219,15047587:17220,15049607:17221,15056062:17222,15111853:17223,15112854:17224,15116928:17225,15118005:17226,15176887:17227,15248263:17228,15040676:17229,15179685:17230,15047856:17231,15056027:17232,15106469:17233,15112634:17234,15118752:17235,15177652:17236,15181978:17237,15187374:17238,15239092:17239,15244440:17240,15303045:17241,15312563:17242,15183753:17243,15177116:17244,15182777:17245,15183249:17246,15242116:17247,15302800:17248,15181737:17249,15182482:17250,15240374:17251,15051681:17252,15179136:17253,14989485:17254,14990258:17255,15052441:17256,15056800:17257,15108797:17258,15112380:17259,15114161:17260,15119272:17261,15243691:17262,15245751:17263,15247547:17264,15304078:17265,15305651:17266,15312784:17267,15116439:17268,15171750:17269,15174826:17270,15240103:17271,15241623:17272,15250095:17273,14989441:17274,15041926:17275,15042443:17276,15046283:17277,15052725:17278,15054998:17441,15055027:17442,15055489:17443,15056020:17444,15056053:17445,15056299:17446,15056564:17447,15108018:17448,15109265:17449,15112866:17450,15113373:17451,15121838:17452,15174034:17453,15176890:17454,15178938:17455,15237556:17456,15238329:17457,15238584:17458,15244726:17459,15248063:17460,15248284:17461,15251077:17462,15251379:17463,15305370:17464,15308215:17465,15310978:17466,15315877:17467,15043461:17468,15109527:17469,15178676:17470,15113365:17471,15118984:17472,15175565:17473,15250307:17474,15306414:17475,15309235:17476,15119525:17477,15049372:17478,15115406:17479,15116172:17480,15253437:17481,15306394:17482,15177627:17483,15302810:17484,15049114:17485,15114370:17486,15109812:17487,15116219:17488,14990723:17489,15121580:17490,15114136:17491,15253179:17492,15242406:17493,15185588:17494,15306132:17495,15115455:17496,15121840:17497,15048106:17498,15049655:17499,15051948:17500,15185068:17501,15173802:17502,15044746:17503,15304611:17504,15316660:17505,14989997:17506,14990734:17507,15040924:17508,15040949:17509,15042947:17510,15250078:17511,15045e3:17512,15048868:17513,15052442:17514,15055005:17515,15055509:17516,15055533:17517,15055799:17518,15056031:17519,15106700:17520,15108789:17521,15109306:17522,15110032:17523,15114927:17524,15118720:17525,15180423:17526,15181454:17527,15181963:17528,15185824:17529,15239559:17530,15247490:17531,15248294:17532,15251844:17533,15302803:17534,15303352:17697,15303853:17698,15304600:17699,15318158:17700,15119269:17701,15110552:17702,15111074:17703,15111605:17704,15121332:17705,15178372:17706,15183003:17707,15303081:17708,15306641:17709,15121082:17710,15045554:17711,15056569:17712,15110820:17713,15252877:17714,15253421:17715,15305092:17716,15041976:17717,15049131:17718,15049897:17719,15053205:17720,15055511:17721,15120315:17722,15186575:17723,15176860:17724,15250108:17725,15252386:17726,15311259:17727,15172281:17728,14990493:17729,15118015:17730,15122097:17731,15176880:17732,15309755:17733,15041934:17734,15044752:17735,15048885:17736,15049111:17737,15050412:17738,15053216:17739,15056530:17740,15111831:17741,15113628:17742,15120545:17743,15178171:17744,15241119:17745,15250349:17746,15302804:17747,15303613:17748,15306125:17749,15179941:17750,15179962:17751,15043242:17752,15055526:17753,15047839:17754,15050164:17755,15106194:17756,15040658:17757,15041946:17758,15042220:17759,15042445:17760,15042688:17761,15045776:17762,15049108:17763,15049112:17764,15050135:17765,15052437:17766,15053750:17767,15054475:17768,15106748:17769,15108757:17770,15110317:17771,15113649:17772,15114627:17773,15114940:17774,15115167:17775,15178647:17776,15120280:17777,15120815:17778,15120027:17779,15172015:17780,15173512:17781,15056275:17782,15177624:17783,15181239:17784,15183241:17785,15183252:17786,15183250:17787,15184790:17788,15185329:17789,15042736:17790,15241635:17953,15242665:17954,15243172:17955,15247502:17956,15248516:17957,15249798:17958,15251599:17959,15302787:17960,15302799:17961,15306905:17962,15309238:17963,15311021:17964,15313072:17965,15308696:17966,15041421:17967,15043477:17968,15044748:17969,15048834:17970,15052942:17971,15107751:17972,15110814:17973,15119518:17974,15179443:17975,15182757:17976,15238068:17977,15241348:17978,15303059:17979,15305349:17980,15053728:17981,15316103:17982,15043775:17983,15056535:17984,15056563:17985,15120028:17986,15174073:17987,15179171:17988,15181503:17989,15183780:17990,15118226:17991,15174572:17992,15248045:17993,15114371:17994,15116705:17995,15042488:17996,15182465:17997,15115444:17998,15053194:17999,15315894:18e3,15240107:18001,15052677:18002,15304073:18003,15171742:18004,15047096:18005,15053231:18006,15106951:18007,15111590:18008,15118988:18009,15249818:18010,15303041:18011,15310995:18012,15045009:18013,15113095:18014,15304845:18015,15050120:18016,15303331:18017,15042181:18018,14989709:18019,15042474:18020,15242905:18021,15248526:18022,15171992:18023,15109562:18024,15306123:18025,15115682:18026,15312564:18027,15186052:18028,15177143:18029,15043991:18030,15115680:18031,15252383:18032,15309731:18033,15118749:18034,14989964:18035,15052988:18036,15056016:18037,15253417:18038,15043714:18039,15250321:18040,15237769:18041,15243705:18042,15055807:18043,15112101:18044,14989747:18045,15041957:18046,15050370:18209,15052991:18210,15310766:18211,14990267:18212,15050378:18213,15056781:18214,15248013:18215,15122337:18216,15181488:18217,15181218:18218,15052711:18219,15241649:18220,15174827:18221,15173297:18222,15055284:18223,15056821:18224,15109563:18225,15110810:18226,15173507:18227,15184536:18228,14989699:18229,15055804:18230,14989707:18231,15048604:18232,15047330:18233,15106729:18234,15122307:18235,15185037:18236,15238077:18237,15238323:18238,15238847:18239,15253170:18240,15246999:18241,15243940:18242,15054772:18243,15108746:18244,15110829:18245,15246983:18246,15113655:18247,15119266:18248,15119550:18249,15175862:18250,15179956:18251,15051142:18252,15187381:18253,15239853:18254,15312556:18255,14991283:18256,15055747:18257,15109021:18258,15109778:18259,15111575:18260,15113647:18261,15178627:18262,15174028:18263,15238028:18264,15237818:18265,15252649:18266,15304077:18267,15040653:18268,15048633:18269,15051410:18270,15114885:18271,15115699:18272,15173028:18273,15174589:18274,15250103:18275,15049650:18276,15250336:18277,15309226:18278,15302809:18279,15244735:18280,15181732:18281,15179687:18282,15241385:18283,14990511:18284,15042981:18285,15043994:18286,15109005:18287,15114127:18288,15119242:18289,15178173:18290,15183508:18291,15184533:18292,15239350:18293,15242884:18294,15253419:18295,15113117:18296,15121568:18297,15173766:18298,15186075:18299,15240875:18300,15312769:18301,15317670:18302,15042493:18465,15183537:18466,15180210:18467,15183544:18468,15237767:18469,15183240:18470,15117224:18471,15055265:18472,15237772:18473,15177105:18474,15177120:18475,15041963:18476,15305122:18477,15121036:18478,15178170:18479,15304343:18480,15313834:18481,14990480:18482,15187376:18483,15108764:18484,15183247:18485,15308453:18486,15315881:18487,15047098:18488,15049113:18489,15244196:18490,15309500:18491,14990516:18492,15042724:18493,15043978:18494,15044493:18495,15044507:18496,15054982:18497,15110316:18498,15111825:18499,15113663:18500,15118526:18501,15118734:18502,15174024:18503,15174319:18504,15175597:18505,15177108:18506,15186305:18507,15239340:18508,15243177:18509,15250089:18510,15183748:18511,15304582:18512,15173033:18513,15310994:18514,15311791:18515,15109309:18516,15112617:18517,15177130:18518,15178660:18519,15180688:18520,15242627:18521,15244206:18522,15043754:18523,15043985:18524,15044774:18525,15050371:18526,15055495:18527,15056316:18528,15106738:18529,15108489:18530,15108537:18531,15108779:18532,15111824:18533,15118228:18534,15119244:18535,15177394:18536,15178414:18537,15180433:18538,15181720:18539,15185803:18540,15187383:18541,15237797:18542,15245995:18543,15248057:18544,15250107:18545,15303103:18546,15310238:18547,15311771:18548,15116427:18549,15184056:18550,15041177:18551,15052990:18552,15056558:18553,15113863:18554,15118232:18555,15175861:18556,15178889:18557,15187598:18558,15318203:18721,15114122:18722,15181975:18723,15043769:18724,15177355:18725,15313837:18726,15056294:18727,15238813:18728,15241137:18729,15237784:18730,15056060:18731,15056773:18732,15177122:18733,15183238:18734,15302844:18735,15114663:18736,15050667:18737,15051419:18738,15185040:18739,15178174:18740,15248556:18741,14991285:18742,15056298:18743,15116441:18744,15118519:18745,15121538:18746,15176610:18747,15181224:18748,15245736:18749,15247765:18750,15249849:18751,15055775:18752,15110031:18753,15177605:18754,15181714:18755,15240087:18756,15305896:18757,15305650:18758,15241884:18759,15244205:18760,15315117:18761,15045505:18762,15056300:18763,15111820:18764,15119772:18765,15171733:18766,15250087:18767,15250323:18768,15311035:18769,15111567:18770,15176630:18771,14989453:18772,14990232:18773,15048608:18774,15049899:18775,15051174:18776,15052684:18777,15042216:18778,15054979:18779,15055516:18780,15106198:18781,15108534:18782,15111607:18783,15111847:18784,15112622:18785,15119790:18786,15173814:18787,15183014:18788,15238544:18789,15238810:18790,15239833:18791,15248796:18792,15250080:18793,15250342:18794,15250868:18795,15308956:18796,15309188:18797,14991022:18798,15110827:18799,15117734:18800,15239326:18801,15241633:18802,15242666:18803,15303592:18804,15052929:18805,15115667:18806,15311528:18807,15241658:18808,15242647:18809,14990479:18810,15042991:18811,15056553:18812,15055237:18813,15113357:18814,15181455:18977,15238585:18978,15246471:18979,15246982:18980,15120309:18981,15056023:18982,15108501:18983,15119032:18984,14990223:18985,15174057:18986,15314578:18987,15042694:18988,15044795:18989,15047092:18990,15049395:18991,15107748:18992,15108526:18993,15172762:18994,15050158:18995,15184521:18996,15184798:18997,15185051:18998,15309744:18999,15111815:19e3,15237534:19001,14989465:19002,14990773:19003,15041973:19004,15049088:19005,15055267:19006,15055283:19007,15056010:19008,15114116:19009,14989478:19010,15242429:19011,15308425:19012,15309211:19013,15184307:19014,15310977:19015,15041467:19016,15049601:19017,15178134:19018,15180455:19019,15042725:19020,15179429:19021,15242385:19022,15183494:19023,15040911:19024,15049865:19025,15174023:19026,15183751:19027,15185832:19028,15253178:19029,15253396:19030,15303053:19031,14991039:19032,15043465:19033,15050921:19034,15056001:19035,15310509:19036,14991261:19037,15239319:19038,15305642:19039,15047811:19040,15109525:19041,15117737:19042,15176875:19043,15246236:19044,15252628:19045,15182210:19046,15043487:19047,15049363:19048,15107477:19049,15108234:19050,15112878:19051,15118221:19052,15184063:19053,15241129:19054,15040675:19055,14991288:19056,15043717:19057,15044998:19058,15048881:19059,15050121:19060,15052445:19061,15053744:19062,15053743:19063,15053993:19064,15055510:19065,15108785:19066,15109543:19067,15111358:19068,15111865:19069,15113355:19070,15119253:19233,15119265:19234,15172537:19235,15179954:19236,15186091:19237,15238046:19238,15239859:19239,15241356:19240,15242156:19241,15244418:19242,15246482:19243,15247530:19244,15249802:19245,15303334:19246,15305618:19247,15311805:19248,15315891:19249,15316396:19250,14989711:19251,14989985:19252,15041165:19253,15042966:19254,15048074:19255,15050408:19256,15055037:19257,15056792:19258,15056793:19259,15108287:19260,15112884:19261,15113371:19262,15114128:19263,15115154:19264,15042194:19265,15185057:19266,15237802:19267,15238824:19268,15248512:19269,15250060:19270,15250111:19271,15305150:19272,15308978:19273,15044768:19274,15311020:19275,15043735:19276,15041429:19277,15043996:19278,15049384:19279,15110834:19280,15113396:19281,15174055:19282,15179174:19283,15182214:19284,15304614:19285,15043459:19286,15119009:19287,15117958:19288,15048832:19289,15055244:19290,15050132:19291,15113388:19292,15187899:19293,15042465:19294,15178630:19295,15110569:19296,15180712:19297,15314324:19298,15317691:19299,15048587:19300,15050425:19301,15112359:19302,15113882:19303,15118222:19304,15045545:19305,15116185:19306,15055253:19307,15238812:19308,15113877:19309,15314602:19310,15114174:19311,15315346:19312,15114653:19313,14989990:19314,14991267:19315,15044488:19316,15108793:19317,15113387:19318,15119019:19319,15253380:19320,14991021:19321,15186349:19322,15317695:19323,14989447:19324,15107490:19325,15121024:19326,15121579:19489,15242387:19490,15045043:19491,15113386:19492,15314309:19493,15054771:19494,15183509:19495,15053484:19496,15052678:19497,15244444:19498,15120778:19499,15242129:19500,15181972:19501,15238280:19502,15050393:19503,15184525:19504,15118481:19505,15178912:19506,15043481:19507,15049890:19508,15172769:19509,15174047:19510,15179675:19511,15309991:19512,15316385:19513,15115403:19514,15051199:19515,15050904:19516,15042213:19517,15044749:19518,15045053:19519,15112334:19520,15178655:19521,15253431:19522,15305368:19523,15315892:19524,15050666:19525,15174045:19526,15121285:19527,15041933:19528,15115145:19529,15185599:19530,15185836:19531,15310242:19532,15317690:19533,15110584:19534,15116449:19535,15240322:19536,15050372:19537,15052191:19538,15118235:19539,15174811:19540,15178674:19541,15185586:19542,15237271:19543,15241881:19544,15041714:19545,15113384:19546,15317913:19547,15178670:19548,15113634:19549,15043519:19550,15312005:19551,15052964:19552,15108283:19553,15184318:19554,15250096:19555,15046031:19556,15106742:19557,15185035:19558,15308416:19559,15043713:19560,14989727:19561,15042230:19562,15049884:19563,15173818:19564,15237302:19565,15304590:19566,15056037:19567,15179682:19568,15044228:19569,15056313:19570,15185028:19571,15242924:19572,15247539:19573,15252109:19574,15310230:19575,15114163:19576,15242926:19577,15307155:19578,15107209:19579,15107208:19580,15119033:19581,15178130:19582,15248301:19745,15252664:19746,15045807:19747,14990737:19748,15041706:19749,15043463:19750,15044491:19751,15052453:19752,15055293:19753,15106720:19754,15107714:19755,15110038:19756,15113353:19757,15114138:19758,15120807:19759,15120012:19760,15174838:19761,15174839:19762,15176881:19763,15181200:19764,15246229:19765,15248024:19766,15303050:19767,15303313:19768,15303605:19769,15309700:19770,15244941:19771,15049877:19772,14989960:19773,14990745:19774,14989454:19775,15248009:19776,15252671:19777,15310992:19778,15041197:19779,15055292:19780,15050390:19781,15052473:19782,15055544:19783,15110042:19784,15110074:19785,15111041:19786,15113116:19787,15115658:19788,15116184:19789,15119499:19790,15121078:19791,15173268:19792,15176872:19793,15182511:19794,15187594:19795,15237248:19796,15241609:19797,15242121:19798,15246977:19799,15248545:19800,15251594:19801,15303077:19802,15309245:19803,15312010:19804,15107518:19805,15108753:19806,15117490:19807,15118979:19808,15119796:19809,15187852:19810,15187900:19811,15120256:19812,15187589:19813,15244986:19814,15246264:19815,15113637:19816,15240881:19817,15311036:19818,15309751:19819,15119515:19820,15185313:19821,15241405:19822,15304106:19823,14989745:19824,15044021:19825,15054224:19826,15117444:19827,15122347:19828,15243149:19829,15243437:19830,15247015:19831,15042729:19832,15044751:19833,15053221:19834,15113614:19835,15114920:19836,15175814:19837,15176323:19838,15177634:20001,15246223:20002,15246241:20003,15304588:20004,15309730:20005,15309240:20006,15056523:20007,15175303:20008,15182731:20009,15241614:20010,15109792:20011,15177125:20012,15043209:20013,15119745:20014,15121052:20015,15175817:20016,15177113:20017,15180203:20018,15184530:20019,15309446:20020,15182748:20021,15318669:20022,14991030:20023,15107502:20024,15112069:20025,15243676:20026,14989958:20027,14989998:20028,15041434:20029,14989473:20030,15042444:20031,15052718:20032,15111833:20033,15114881:20034,15120060:20035,15174815:20036,15178114:20037,15179437:20038,15181980:20039,15184807:20040,15239599:20041,15248274:20042,15303100:20043,15304591:20044,15309237:20045,15311e3:20046,15043227:20047,15185809:20048,15040683:20049,15044248:20050,15113879:20051,15120267:20052,15173520:20053,15175859:20054,15239080:20055,15252650:20056,15309475:20057,15315351:20058,15317663:20059,15176096:20060,15049089:20061,15120025:20062,15185071:20063,15311262:20064,14990244:20065,14990518:20066,14990987:20067,15042231:20068,15043249:20069,15054522:20070,15106204:20071,15175346:20072,15180988:20073,15240083:20074,15304884:20075,15309495:20076,15309750:20077,15309962:20078,15317655:20079,15318434:20080,15112870:20081,15117748:20082,15042711:20083,15043235:20084,15172488:20085,15246210:20086,15055753:20087,15106443:20088,15107728:20089,15121571:20090,15173001:20091,15184062:20092,15185844:20093,15237551:20094,15242158:20257,15302819:20258,15305900:20259,15044994:20260,15314351:20261,15117203:20262,15172233:20263,15250306:20264,15251375:20265,15310002:20266,15043252:20267,15051137:20268,15055754:20269,15056004:20270,15113367:20271,15115708:20272,15115924:20273,15119786:20274,15121551:20275,15174050:20276,15174588:20277,15183789:20278,15237249:20279,15237566:20280,15244683:20281,15303566:20282,15041965:20283,15317651:20284,15181444:20285,15237771:20286,15305906:20287,15248278:20288,15040685:20289,15045260:20290,15247793:20291,15117738:20292,15250308:20293,15238279:20294,15106961:20295,15113888:20296,15316914:20297,14989977:20298,14989976:20299,15315088:20300,15247787:20301,15243137:20302,15242664:20303,15115392:20304,15120830:20305,15180439:20306,15238549:20307,15056012:20513,14989456:20514,14989461:20515,14989482:20516,14989489:20517,14989494:20518,14989500:20519,14989503:20520,14989698:20521,14989718:20522,14989720:20523,14989954:20524,14989957:20525,15249835:20526,14989962:20527,15239314:20528,15056013:20529,14989966:20530,14989982:20531,14989983:20532,14989984:20533,14989986:20534,1499e4:20535,14990003:20536,14990006:20537,14990222:20538,14990221:20539,14990212:20540,14990214:20541,14990210:20542,14990231:20543,14990238:20544,14990253:20545,14990239:20546,14990263:20547,14990473:20548,14990746:20549,14990512:20550,14990747:20551,14990749:20552,14990743:20553,14990727:20554,14990774:20555,14990984:20556,14990991:20557,14991e3:20558,14990779:20559,14990761:20560,14990768:20561,14990993:20562,14990767:20563,14990982:20564,14990998:20565,15041688:20566,14991252:20567,14991263:20568,14991246:20569,14991256:20570,14991259:20571,14991249:20572,14991258:20573,14991248:20574,14991268:20575,14991269:20576,15040666:20577,15040680:20578,15040660:20579,15040682:20580,15040677:20581,15040645:20582,14990492:20583,14991286:20584,15040673:20585,15040681:20586,15040684:20587,14991294:20588,14991279:20589,15040657:20590,15040646:20591,15040899:20592,15040903:20593,15113347:20594,15040917:20595,15040912:20596,15040904:20597,15040922:20598,15040918:20599,15040940:20600,15040952:20601,15041152:20602,15041178:20603,15041157:20604,15041204:20605,15041202:20606,15041417:20769,15041418:20770,15041203:20771,15041410:20772,15041430:20773,15041438:20774,15041445:20775,15041453:20776,15041443:20777,15041454:20778,15041465:20779,15041461:20780,15041673:20781,15041665:20782,15041666:20783,15041686:20784,15041685:20785,15041684:20786,15041690:20787,15041697:20788,15041722:20789,15041719:20790,15041724:20791,15041723:20792,15041727:20793,15041920:20794,15041938:20795,15041932:20796,15041940:20797,15041954:20798,15182776:20799,15041961:20800,15041962:20801,15041966:20802,15042176:20803,15042178:20804,15047576:20805,15042188:20806,15042185:20807,15042191:20808,15042193:20809,15042195:20810,15042197:20811,15042198:20812,15042212:20813,15042214:20814,15042210:20815,15042217:20816,15042218:20817,15042219:20818,15042227:20819,15042225:20820,15042226:20821,15042224:20822,15042229:20823,15042237:20824,15042437:20825,15042441:20826,15042459:20827,15042464:20828,15243669:20829,15042473:20830,15042477:20831,15042480:20832,15042485:20833,15042494:20834,15042692:20835,15042699:20836,15042708:20837,15042702:20838,15042727:20839,15042730:20840,15042734:20841,15042739:20842,15042745:20843,15042959:20844,15042948:20845,15042955:20846,15042956:20847,15042974:20848,15042964:20849,15042986:20850,15042996:20851,15042985:20852,15042995:20853,15043007:20854,15043005:20855,15043213:20856,15043220:20857,15043218:20858,15042993:20859,15043208:20860,15043217:20861,15253160:20862,15253159:21025,15043244:21026,15043245:21027,15043260:21028,15043253:21029,15043457:21030,15043469:21031,15043479:21032,15043486:21033,15043491:21034,15043494:21035,15311789:21036,15043488:21037,15043507:21038,15043509:21039,15043512:21040,15043513:21041,15043718:21042,15043720:21043,15176888:21044,15043725:21045,15043728:21046,15043727:21047,15043733:21048,15043738:21049,15043747:21050,15043759:21051,15043761:21052,15043763:21053,15043768:21054,15043968:21055,15043974:21056,15043973:21057,14989463:21058,15043977:21059,15043981:21060,15042454:21061,15043998:21062,15044009:21063,15044014:21064,15049880:21065,15044027:21066,15044023:21067,15044226:21068,15044246:21069,15044256:21070,15044262:21071,15044261:21072,15044270:21073,15044272:21074,15044278:21075,15044483:21076,15184018:21077,15309721:21078,15044511:21079,15113148:21080,15173550:21081,15044526:21082,15044520:21083,15044525:21084,15044538:21085,15044737:21086,15044797:21087,15044992:21088,15044780:21089,15044781:21090,15044796:21091,15044782:21092,15044790:21093,15044777:21094,15044765:21095,15045006:21096,15045263:21097,15045045:21098,15045262:21099,15045023:21100,15045041:21101,15045047:21102,15045040:21103,15045266:21104,15045051:21105,15045248:21106,15045046:21107,15045252:21108,15045264:21109,15045254:21110,15045511:21111,15045282:21112,15045304:21113,15045285:21114,15045292:21115,15045508:21116,15045512:21117,15045288:21118,15045291:21281,15045506:21282,15045284:21283,15045310:21284,15045308:21285,15045528:21286,15045541:21287,15045542:21288,15045775:21289,15045780:21290,15045565:21291,15045550:21292,15045549:21293,15045562:21294,15045538:21295,15045817:21296,15046016:21297,15046051:21298,15046028:21299,15045806:21300,15046044:21301,15046021:21302,15046038:21303,15046039:21304,15045816:21305,15045811:21306,15046045:21307,15046297:21308,15046272:21309,15045295:21310,15046282:21311,15046303:21312,15046075:21313,15046078:21314,15046296:21315,15046302:21316,15046318:21317,15046076:21318,15046275:21319,15046313:21320,15046279:21321,15046312:21322,15046554:21323,15046533:21324,15046559:21325,15046532:21326,15046556:21327,15046564:21328,15046548:21329,15046804:21330,15046583:21331,15046806:21332,15046590:21333,15046589:21334,15046811:21335,15046585:21336,15047054:21337,15047056:21338,15173535:21339,15046836:21340,15046838:21341,15046834:21342,15046840:21343,15047083:21344,15047076:21345,15046831:21346,15047084:21347,15047082:21348,15047302:21349,15047296:21350,15047306:21351,15047328:21352,15047316:21353,15047311:21354,15047333:21355,15047342:21356,15047350:21357,15047348:21358,15047554:21359,15047356:21360,15047553:21361,15047555:21362,15047552:21363,15047560:21364,15047566:21365,15047569:21366,15047571:21367,15047575:21368,15047598:21369,15047609:21370,15047808:21371,15047615:21372,15047812:21373,15047817:21374,15047816:21537,15047819:21538,15047821:21539,15047827:21540,15047832:21541,15047830:21542,15046535:21543,15047836:21544,15047846:21545,15047863:21546,15047864:21547,15048078:21548,15047867:21549,15048064:21550,15048079:21551,15048105:21552,15048576:21553,15048328:21554,15048097:21555,15048127:21556,15048329:21557,15048339:21558,15048352:21559,15048371:21560,15048356:21561,15048362:21562,15048368:21563,15048579:21564,15048582:21565,15048596:21566,15048594:21567,15048595:21568,15048842:21569,15048598:21570,15048611:21571,15048843:21572,15048857:21573,15048861:21574,15049138:21575,15048865:21576,15049122:21577,15049099:21578,15049136:21579,15118208:21580,15049106:21581,15048893:21582,15049145:21583,15049349:21584,15049401:21585,15049375:21586,15049387:21587,15049402:21588,15049630:21589,15049403:21590,15049400:21591,15049390:21592,15049605:21593,15049619:21594,15049617:21595,15049623:21596,15049625:21597,15049624:21598,15049637:21599,15049628:21600,15049636:21601,15049631:21602,15049647:21603,15049658:21604,15049657:21605,15049659:21606,15049660:21607,15049661:21608,15049858:21609,15049866:21610,15049872:21611,15049883:21612,15114918:21613,15049893:21614,15049900:21615,15049901:21616,15049906:21617,15049912:21618,15049918:21619,15182738:21620,15050133:21621,15050128:21622,15050126:21623,15050138:21624,15050136:21625,15050146:21626,15050144:21627,15050151:21628,15050156:21629,15050153:21630,15050168:21793,15050369:21794,15050397:21795,14990750:21796,14991019:21797,15050403:21798,15050418:21799,15050630:21800,15050664:21801,15050652:21802,15050381:21803,15050649:21804,15050650:21805,15050917:21806,15050911:21807,15050897:21808,15050908:21809,15050889:21810,15050906:21811,15051136:21812,15051180:21813,15051145:21814,15050933:21815,15050934:21816,15051170:21817,15051178:21818,15051418:21819,15051452:21820,15051454:21821,15051659:21822,15051650:21823,15051453:21824,15051683:21825,15051671:21826,15051686:21827,15051689:21828,15051670:21829,15051706:21830,15051707:21831,15051916:21832,15051915:21833,15051926:21834,15051954:21835,15051664:21836,15051946:21837,15051958:21838,15051966:21839,15052163:21840,15052165:21841,15052160:21842,15052177:21843,15052181:21844,15052186:21845,15052187:21846,15052197:21847,15052201:21848,15052208:21849,15052211:21850,15052213:21851,15052216:21852,15111816:21853,15052218:21854,15052416:21855,15052419:21856,15052454:21857,15052472:21858,15052675:21859,15052679:21860,15052681:21861,15052692:21862,15052688:21863,15052708:21864,15052710:21865,15052706:21866,15052702:21867,15052709:21868,15052715:21869,15052720:21870,15052726:21871,15052723:21872,15052933:21873,15052935:21874,15052936:21875,15052941:21876,15052947:21877,15052960:21878,15052962:21879,15052968:21880,15052984:21881,15052985:21882,15053185:21883,15053190:21884,15053198:21885,15053203:21886,15053200:22049,15053199:22050,15052209:22051,15053228:22052,15053230:22053,14989730:22054,15053238:22055,15053241:22056,15053452:22057,15053457:22058,15053460:22059,15050395:22060,15053483:22061,15053499:22062,15053494:22063,15053500:22064,15053495:22065,15053701:22066,15053502:22067,15053703:22068,15053721:22069,15053737:22070,15053757:22071,15053754:22072,15053741:22073,15054476:22074,15053738:22075,15053963:22076,15053973:22077,15053975:22078,15054236:22079,15053983:22080,15053979:22081,15053969:22082,15053972:22083,15053986:22084,15053978:22085,15053977:22086,15053976:22087,15054220:22088,15054226:22089,15054222:22090,15054219:22091,15054252:22092,15054259:22093,15054262:22094,15054471:22095,15054468:22096,15054466:22097,15054498:22098,15054493:22099,15054508:22100,15054510:22101,15054525:22102,15054480:22103,15054519:22104,15054524:22105,15054729:22106,15054733:22107,15054739:22108,15054738:22109,15054742:22110,15054747:22111,15054763:22112,15054770:22113,15054773:22114,15054987:22115,15055002:22116,15055001:22117,15054993:22118,15055003:22119,15055030:22120,15055031:22121,15055236:22122,15055235:22123,15055232:22124,15055246:22125,15055255:22126,15055252:22127,15055263:22128,15055266:22129,15055268:22130,15055239:22131,15055285:22132,15055286:22133,15055290:22134,15317692:22135,15055295:22136,15055520:22137,15055745:22138,15055746:22139,15055752:22140,15055760:22141,15055759:22142,15055766:22305,15055779:22306,15055773:22307,15055770:22308,15055771:22309,15055778:22310,15055777:22311,15055784:22312,15055785:22313,15055788:22314,15055793:22315,15055795:22316,15055792:22317,15055796:22318,15055800:22319,15055806:22320,15056003:22321,15056009:22322,15056285:22323,15056284:22324,15056011:22325,15056017:22326,15056022:22327,15056041:22328,15056045:22329,15056056:22330,15056257:22331,15056264:22332,15056268:22333,15056270:22334,15056047:22335,15056273:22336,15056278:22337,15056279:22338,15056281:22339,15056289:22340,15056301:22341,15056307:22342,15056311:22343,15056515:22344,15056514:22345,15056319:22346,15056522:22347,15056520:22348,15056529:22349,15056519:22350,15056542:22351,15056537:22352,15056536:22353,15056544:22354,15056552:22355,15056557:22356,15056572:22357,15056790:22358,15056827:22359,15056804:22360,15056824:22361,15056817:22362,15056797:22363,15106739:22364,15056831:22365,15106209:22366,15106464:22367,15106201:22368,15106192:22369,15106217:22370,15106190:22371,15106225:22372,15106203:22373,15106197:22374,15106219:22375,15106214:22376,15106191:22377,15106234:22378,15106458:22379,15106433:22380,15106474:22381,15106487:22382,15106463:22383,15106442:22384,15106438:22385,15106445:22386,15106467:22387,15106435:22388,15106468:22389,15106434:22390,15106476:22391,15106475:22392,15106457:22393,15106689:22394,15106701:22395,15106983:22396,15106691:22397,15106714:22398,15106692:22561,15106715:22562,15106710:22563,15106711:22564,15106706:22565,15106727:22566,15106699:22567,15106977:22568,15106744:22569,15106976:22570,15106963:22571,15106740:22572,15056816:22573,15106749:22574,15106950:22575,15106741:22576,15106968:22577,15107469:22578,15107221:22579,15107206:22580,15106998:22581,15106999:22582,15107200:22583,15106996:22584,15107002:22585,15107203:22586,15107233:22587,15107003:22588,15106993:22589,15107213:22590,15107214:22591,15107463:22592,15107262:22593,15107240:22594,15107239:22595,15107466:22596,15107263:22597,15107260:22598,15107244:22599,15107252:22600,15107261:22601,15107458:22602,15107460:22603,15107507:22604,15107511:22605,15107480:22606,15107481:22607,15107482:22608,15107499:22609,15107508:22610,15107503:22611,15107493:22612,15107505:22613,15107487:22614,15107485:22615,15107475:22616,15107509:22617,15107737:22618,15107734:22619,15107719:22620,15107756:22621,15107732:22622,15107738:22623,15107722:22624,15107729:22625,15107755:22626,15107758:22627,15107980:22628,15107978:22629,15107977:22630,15108023:22631,15107976:22632,15107971:22633,15107974:22634,15107770:22635,15107979:22636,15187385:22637,15107981:22638,15108006:22639,15108003:22640,15108022:22641,15108026:22642,15108020:22643,15108031:22644,15108029:22645,15108028:22646,15108030:22647,15108224:22648,15108232:22649,15108233:22650,15108237:22651,15108236:22652,15108244:22653,15108251:22654,15108254:22817,15108257:22818,15108266:22819,15108270:22820,15108272:22821,15108274:22822,15108275:22823,15108481:22824,15108494:22825,15108510:22826,15108515:22827,15108507:22828,15108512:22829,15108520:22830,15108540:22831,15108738:22832,15108745:22833,15108542:22834,15108754:22835,15108755:22836,15108758:22837,15109012:22838,15108739:22839,15108756:22840,15109015:22841,15109009:22842,15108795:22843,15109007:22844,15109055:22845,15108998:22846,15111060:22847,15109e3:22848,15109020:22849,15109004:22850,15109002:22851,15108994:22852,15108999:22853,15108763:22854,15109001:22855,15109260:22856,15109038:22857,15109041:22858,15109287:22859,15109250:22860,15109256:22861,15109039:22862,15109045:22863,15109520:22864,15109310:22865,15109517:22866,15110300:22867,15109519:22868,15109782:22869,15109774:22870,15109760:22871,15109803:22872,15109558:22873,15109795:22874,15109775:22875,15109769:22876,15109791:22877,15109813:22878,15109547:22879,15109545:22880,15109822:22881,15110057:22882,15110016:22883,15110022:22884,15110051:22885,15110025:22886,15110034:22887,15110070:22888,15110020:22889,15110294:22890,15110324:22891,15110278:22892,15110291:22893,15110310:22894,15110326:22895,15111325:22896,15110295:22897,15110312:22898,15110287:22899,15110567:22900,15110575:22901,15110582:22902,15110542:22903,15111338:22904,15110805:22905,15110803:22906,15110821:22907,15110825:22908,15110792:22909,15110844:22910,15111066:23073,15111058:23074,15111045:23075,15111047:23076,15110843:23077,15111064:23078,15111042:23079,15111089:23080,15111079:23081,15239305:23082,15111072:23083,15111073:23084,15108780:23085,15111075:23086,15111087:23087,15111340:23088,15111094:23089,15111092:23090,15111090:23091,15111098:23092,15111296:23093,15111101:23094,15111320:23095,15111324:23096,15111301:23097,15111332:23098,15111331:23099,15111339:23100,15111348:23101,15111349:23102,15111351:23103,15111350:23104,15111352:23105,15177099:23106,15111560:23107,15111574:23108,15111573:23109,15111565:23110,15111576:23111,15111582:23112,15111581:23113,15111602:23114,15111608:23115,15111810:23116,15111811:23117,15249034:23118,15111835:23119,15111839:23120,15111851:23121,15111863:23122,15112067:23123,15112070:23124,15112065:23125,15112068:23126,15112076:23127,15112082:23128,15112091:23129,15112089:23130,15112096:23131,15112097:23132,15112113:23133,15113650:23134,15112330:23135,15112323:23136,15112123:23137,15113651:23138,15112373:23139,15112374:23140,15112372:23141,15112348:23142,15112591:23143,15112580:23144,15112585:23145,15112577:23146,15112606:23147,15112605:23148,15112612:23149,15112615:23150,15112616:23151,15112607:23152,15112610:23153,15112624:23154,15112835:23155,15112840:23156,15112846:23157,15112841:23158,15112836:23159,15112856:23160,15112861:23161,15113089:23162,15112889:23163,15113097:23164,15112894:23165,15112892:23166,15113092:23329,15112888:23330,15113110:23331,15113114:23332,15113120:23333,15112383:23334,15113126:23335,15113129:23336,15113136:23337,15113141:23338,15113143:23339,15113359:23340,15113366:23341,15113374:23342,15113382:23343,15113383:23344,15310008:23345,15113390:23346,15113407:23347,15113398:23348,15113601:23349,15113400:23350,15113399:23351,15113606:23352,15113630:23353,15113632:23354,15113625:23355,15113635:23356,15113636:23357,15113865:23358,15113648:23359,15113897:23360,15113660:23361,15113642:23362,15113868:23363,15113867:23364,15113894:23365,15113889:23366,15113861:23367,15113911:23368,15114159:23369,15113908:23370,15114156:23371,15113907:23372,15114153:23373,15113912:23374,15114148:23375,15114142:23376,15114141:23377,15114146:23378,15114158:23379,15113913:23380,15114126:23381,15114118:23382,15114151:23383,15116956:23384,15114398:23385,15114630:23386,15114409:23387,15114624:23388,15114637:23389,15114418:23390,15114638:23391,15114931:23392,15114411:23393,15114649:23394,15114659:23395,15114679:23396,15114687:23397,15114911:23398,15114895:23399,15114925:23400,15114900:23401,15114909:23402,15114907:23403,15114883:23404,15116974:23405,15114937:23406,15114676:23407,15114933:23408,15114912:23409,15114938:23410,15115407:23411,15114893:23412,15114686:23413,15115393:23414,15115146:23415,15115400:23416,15115160:23417,15115426:23418,15115430:23419,15115169:23420,15115404:23421,15115149:23422,15115156:23585,15115175:23586,15115157:23587,15115446:23588,15115410:23589,15115396:23590,15115159:23591,15115171:23592,15115429:23593,15115193:23594,15115168:23595,15115183:23596,15115432:23597,15115434:23598,15115418:23599,15115427:23600,15115425:23601,15115142:23602,15115705:23603,15115703:23604,15115676:23605,15115704:23606,15115691:23607,15115668:23608,15115710:23609,15115694:23610,15115449:23611,15115700:23612,15115453:23613,15115673:23614,15115440:23615,15115681:23616,15115678:23617,15115677:23618,15115905:23619,15115690:23620,15115954:23621,15115950:23622,15116176:23623,15115967:23624,15116161:23625,15116179:23626,15115966:23627,15116174:23628,15052712:23629,15116170:23630,15116189:23631,15115963:23632,15116163:23633,15115943:23634,15116462:23635,15115921:23636,15115936:23637,15115932:23638,15115925:23639,15115956:23640,15116190:23641,15116200:23642,15116418:23643,15116443:23644,15116223:23645,15117450:23646,15116217:23647,15116210:23648,15116199:23649,15116421:23650,15115953:23651,15116446:23652,15116205:23653,15116436:23654,15116203:23655,15116426:23656,15116434:23657,15117185:23658,15116451:23659,15116435:23660,15116676:23661,15116428:23662,15116722:23663,15116470:23664,15116728:23665,15116679:23666,15116706:23667,15116697:23668,15116710:23669,15116680:23670,15116472:23671,15116450:23672,15116944:23673,15116941:23674,15116960:23675,15116932:23676,15116962:23677,15116963:23678,15116951:23841,15243415:23842,15116987:23843,15117187:23844,15117186:23845,15116984:23846,15116979:23847,15116972:23848,15117214:23849,15117201:23850,15117215:23851,15116970:23852,15117210:23853,15117226:23854,15117243:23855,15117445:23856,15243414:23857,15117242:23858,15117458:23859,15117462:23860,15314097:23861,15117471:23862,15117496:23863,15117495:23864,15178652:23865,15117497:23866,15311790:23867,15117703:23868,15117699:23869,15117705:23870,15117712:23871,15117721:23872,15117716:23873,15117723:23874,15117727:23875,15117729:23876,15117752:23877,15117753:23878,15117759:23879,15117952:23880,15117956:23881,15117955:23882,15117965:23883,15117976:23884,15117973:23885,15117982:23886,15117988:23887,15117994:23888,15117995:23889,15117999:23890,15118002:23891,15118001:23892,15118003:23893,15118007:23894,15118012:23895,15118214:23896,15118219:23897,15118227:23898,15118239:23899,15118252:23900,15118251:23901,15118259:23902,15118255:23903,15317694:23904,15118472:23905,15118483:23906,15118484:23907,15118491:23908,15118500:23909,15118499:23910,15118750:23911,15118741:23912,15118754:23913,15118762:23914,15118978:23915,15118989:23916,15119002:23917,15118977:23918,15119003:23919,15118782:23920,15118760:23921,15118771:23922,15118994:23923,15118992:23924,15119236:23925,15119281:23926,15119251:23927,15119037:23928,15119255:23929,15119237:23930,15119261:23931,15119022:23932,15119025:23933,15119038:23934,15119034:24097,15119259:24098,15119279:24099,15119257:24100,15119274:24101,15119519:24102,15245709:24103,15119542:24104,15119531:24105,15119549:24106,15119544:24107,15119513:24108,15119541:24109,15119539:24110,15119506:24111,15119500:24112,15119779:24113,15120019:24114,15119780:24115,15119770:24116,15119801:24117,15119769:24118,15120014:24119,15120021:24120,15122340:24121,15120005:24122,15120313:24123,15120533:24124,15120522:24125,15120053:24126,15120263:24127,15120294:24128,15120056:24129,15120262:24130,15120300:24131,15120286:24132,15120268:24133,15120296:24134,15120274:24135,15120261:24136,15120314:24137,15120281:24138,15120292:24139,15120277:24140,15120298:24141,15120302:24142,15120557:24143,15120814:24144,15120558:24145,15120537:24146,15120818:24147,15120799:24148,15120574:24149,15120547:24150,15120811:24151,15120555:24152,15120822:24153,15120781:24154,15120543:24155,15120771:24156,15120570:24157,15120782:24158,15120548:24159,15121343:24160,15120541:24161,15120568:24162,15121026:24163,15121066:24164,15121048:24165,15121289:24166,15121079:24167,15121299:24168,15121085:24169,15121071:24170,15121284:24171,15121074:24172,15121300:24173,15121301:24174,15121039:24175,15121061:24176,15121282:24177,15121055:24178,15121793:24179,15121553:24180,15171980:24181,15121324:24182,15121336:24183,15121342:24184,15121599:24185,15121330:24186,15121585:24187,15121327:24188,15121586:24189,15121292:24190,15121598:24353,15121555:24354,15121335:24355,15122054:24356,15121850:24357,15121848:24358,15122049:24359,15122048:24360,15121839:24361,15121819:24362,15122355:24363,15121837:24364,15122050:24365,15121852:24366,15121816:24367,15122062:24368,15122065:24369,15122306:24370,15121830:24371,15122099:24372,15122083:24373,15122081:24374,15122084:24375,15122105:24376,15122310:24377,15122090:24378,15122335:24379,15122325:24380,15122348:24381,15122324:24382,15122328:24383,15122353:24384,15122350:24385,15122331:24386,15171721:24387,15171723:24388,15122362:24389,15171729:24390,15171713:24391,15171727:24392,15122366:24393,15171739:24394,15171738:24395,15121844:24396,15171741:24397,15171736:24398,15171743:24399,15171760:24400,15171774:24401,15171762:24402,15171985:24403,15172003:24404,15172249:24405,15172242:24406,15172271:24407,15172529:24408,15172268:24409,15172280:24410,15172275:24411,15172270:24412,15172511:24413,15172491:24414,15172509:24415,15172505:24416,15172745:24417,15172541:24418,15172764:24419,15172761:24420,15173029:24421,15173013:24422,15173256:24423,15173030:24424,15173026:24425,15173004:24426,15173014:24427,15173036:24428,15173263:24429,15173563:24430,15173252:24431,15173269:24432,15173288:24433,15173292:24434,15173527:24435,15173305:24436,15173310:24437,15173522:24438,15173513:24439,15173524:24440,15173518:24441,15173536:24442,15173548:24443,15173543:24444,15173557:24445,15173564:24446,15173561:24609,15173567:24610,15173773:24611,15173776:24612,15173787:24613,15173800:24614,15173805:24615,15173804:24616,15173808:24617,15173810:24618,15173819:24619,15173820:24620,15173823:24621,15174016:24622,15174022:24623,15174027:24624,15174040:24625,15174068:24626,15174078:24627,15174274:24628,15174273:24629,15174279:24630,15174290:24631,15174294:24632,15174306:24633,15174311:24634,15174329:24635,15174322:24636,15174531:24637,15174534:24638,15174532:24639,15174542:24640,15174546:24641,15174562:24642,15174560:24643,15174561:24644,15174585:24645,15174583:24646,15040655:24647,15174807:24648,15174794:24649,15174812:24650,15174806:24651,15174813:24652,15174836:24653,15174831:24654,15174825:24655,15174821:24656,15174846:24657,15175054:24658,15175055:24659,15317912:24660,15175063:24661,15175082:24662,15175080:24663,15175088:24664,15175096:24665,15175093:24666,15175099:24667,15175098:24668,15175560:24669,15175347:24670,15175566:24671,15175355:24672,15175552:24673,15175589:24674,15175598:24675,15175582:24676,15176354:24677,15175813:24678,15176111:24679,15175845:24680,15175608:24681,15175858:24682,15175866:24683,15176085:24684,15175871:24685,15176095:24686,15176089:24687,15176065:24688,15176092:24689,15176105:24690,15176112:24691,15176099:24692,15176106:24693,15176118:24694,15176126:24695,15176331:24696,15176350:24697,15176359:24698,15176586:24699,15176591:24700,15176596:24701,15175601:24702,15176608:24865,15176611:24866,15176615:24867,15176617:24868,15176622:24869,15176626:24870,15176624:24871,15176625:24872,15176632:24873,15176631:24874,15176836:24875,15176835:24876,15176837:24877,15176844:24878,15176846:24879,15176845:24880,15176853:24881,15176851:24882,15176862:24883,15176870:24884,15176876:24885,15176892:24886,15177092:24887,15177101:24888,15177098:24889,15177097:24890,15177115:24891,15177094:24892,15177114:24893,15177129:24894,15177124:24895,15177127:24896,15177131:24897,15177133:24898,15177144:24899,15177142:24900,15177350:24901,15177351:24902,15177140:24903,15177354:24904,15177353:24905,15177346:24906,15177364:24907,15177370:24908,15177373:24909,15177381:24910,15177379:24911,15177602:24912,15177395:24913,15177603:24914,15177397:24915,15177405:24916,15177400:24917,15177404:24918,15177393:24919,15177613:24920,15177610:24921,15177618:24922,15177625:24923,15177635:24924,15177630:24925,15177662:24926,15177663:24927,15177660:24928,15177857:24929,15177648:24930,15177658:24931,15177650:24932,15177651:24933,15177867:24934,15177869:24935,15177865:24936,15177887:24937,15177895:24938,15177888:24939,15177889:24940,15177890:24941,15177892:24942,15177908:24943,15177904:24944,15177915:24945,15178119:24946,15178120:24947,15178118:24948,15178140:24949,15178136:24950,15178145:24951,15178146:24952,15178152:24953,15178153:24954,15178154:24955,15178151:24956,15178156:24957,15178160:24958,15178162:25121,15178166:25122,15178168:25123,15178172:25124,15178368:25125,15178371:25126,15178376:25127,15178379:25128,15178382:25129,15178390:25130,15178387:25131,15178393:25132,15178394:25133,15178416:25134,15178420:25135,15178424:25136,15178425:25137,15178426:25138,15178626:25139,15178637:25140,15178646:25141,15178642:25142,15178654:25143,15178657:25144,15178661:25145,15178663:25146,15178666:25147,15243439:25148,15178683:25149,15178888:25150,15178887:25151,15178884:25152,15178921:25153,15178916:25154,15178910:25155,15178917:25156,15178918:25157,15178907:25158,15178935:25159,15178936:25160,15179143:25161,15179162:25162,15179176:25163,15179179:25164,15179163:25165,15179173:25166,15179199:25167,15179198:25168,15179193:25169,15179406:25170,15179403:25171,15179409:25172,15179424:25173,15179422:25174,15179440:25175,15179446:25176,15179449:25177,15179455:25178,15179452:25179,15179453:25180,15179451:25181,15179655:25182,15179661:25183,15179671:25184,15179674:25185,15179676:25186,15179683:25187,15179694:25188,15179708:25189,15179916:25190,15179922:25191,15180966:25192,15179936:25193,15180970:25194,15180165:25195,15180430:25196,15180212:25197,15180422:25198,15180220:25199,15180442:25200,15180428:25201,15180451:25202,15180469:25203,15180458:25204,15180463:25205,15180689:25206,15180678:25207,15180683:25208,15180692:25209,15180478:25210,15180476:25211,15180677:25212,15180682:25213,15180716:25214,15180711:25377,15180698:25378,15180733:25379,15180724:25380,15180935:25381,15180946:25382,15180945:25383,15180953:25384,15180972:25385,15180971:25386,15181184:25387,15181216:25388,15181207:25389,15181215:25390,15181210:25391,15181205:25392,15181203:25393,15181242:25394,15181247:25395,15181450:25396,15181469:25397,15181479:25398,15318411:25399,15181482:25400,15181486:25401,15181491:25402,15181497:25403,15181498:25404,15181705:25405,15181717:25406,15181735:25407,15181740:25408,15181729:25409,15181731:25410,15181960:25411,15181965:25412,15181976:25413,15181977:25414,15181984:25415,15181983:25416,15181440:25417,15182001:25418,15182011:25419,15182014:25420,15182007:25421,15182211:25422,15182231:25423,15182217:25424,15182241:25425,15182242:25426,15182249:25427,15318685:25428,15182256:25429,15182265:25430,15182269:25431,15182472:25432,15182487:25433,15182485:25434,15182488:25435,15182486:25436,15182505:25437,15182728:25438,15182512:25439,15182518:25440,15182725:25441,15182724:25442,15182527:25443,15303299:25444,15182727:25445,15182730:25446,15182733:25447,15182735:25448,15182741:25449,15182739:25450,15182745:25451,15182746:25452,15182749:25453,15182753:25454,15182754:25455,15182758:25456,15182765:25457,15182768:25458,15182978:25459,15182991:25460,15182986:25461,15182982:25462,15183027:25463,15183e3:25464,15183001:25465,15183006:25466,15183029:25467,15183016:25468,15183030:25469,15183248:25470,15183290:25633,15182980:25634,15183245:25635,15182987:25636,15183244:25637,15183237:25638,15183285:25639,15183269:25640,15183284:25641,15183271:25642,15183280:25643,15183281:25644,15183276:25645,15183278:25646,15183517:25647,15183512:25648,15183519:25649,15183501:25650,15183516:25651,15183514:25652,15183499:25653,15183506:25654,15183503:25655,15183261:25656,15183513:25657,15183755:25658,15183745:25659,15183756:25660,15183759:25661,15183540:25662,15183750:25663,15183773:25664,15183785:25665,15184017:25666,15184020:25667,15183782:25668,15183781:25669,15184288:25670,15184e3:25671,15184007:25672,15184019:25673,15183795:25674,15183799:25675,15184023:25676,15184013:25677,15183798:25678,15184035:25679,15184039:25680,15184042:25681,15184031:25682,15184055:25683,15184043:25684,15184061:25685,15184268:25686,15184259:25687,15184276:25688,15184271:25689,15184256:25690,15184272:25691,15184280:25692,15184287:25693,15184292:25694,15184278:25695,15184293:25696,15184300:25697,15184309:25698,15184515:25699,15184528:25700,15184548:25701,15184557:25702,15184546:25703,15184555:25704,15184545:25705,15184552:25706,15184563:25707,15184562:25708,15184561:25709,15184558:25710,15184569:25711,15184573:25712,15184768:25713,15184773:25714,15184770:25715,15184792:25716,15184786:25717,15184796:25718,15184802:25719,15314107:25720,15184815:25721,15184818:25722,15184820:25723,15184822:25724,15184826:25725,15185030:25726,15185026:25889,15185052:25890,15185045:25891,15185034:25892,15185285:25893,15185291:25894,15185070:25895,15185074:25896,15185087:25897,15185077:25898,15185286:25899,15185331:25900,15185302:25901,15185294:25902,15185330:25903,15185320:25904,15185326:25905,15185295:25906,15185315:25907,15185555:25908,15185545:25909,15185307:25910,15185551:25911,15185341:25912,15185563:25913,15185594:25914,15185582:25915,15185571:25916,15185589:25917,15185799:25918,15185597:25919,15185579:25920,15186109:25921,15185570:25922,15185583:25923,15185820:25924,15185592:25925,15185567:25926,15185584:25927,15185816:25928,15185821:25929,15185828:25930,15185822:25931,15185851:25932,15185842:25933,15185825:25934,15186053:25935,15186058:25936,15186083:25937,15186081:25938,15186066:25939,15186097:25940,15186079:25941,15186057:25942,15186059:25943,15186082:25944,15186310:25945,15186342:25946,15186107:25947,15186101:25948,15186105:25949,15186307:25950,15186103:25951,15186098:25952,15186106:25953,15186343:25954,15186333:25955,15186326:25956,15186334:25957,15186329:25958,15186330:25959,15186361:25960,15186346:25961,15186345:25962,15186364:25963,15186363:25964,15186563:25965,15185813:25966,15186365:25967,15253166:25968,15186367:25969,15186568:25970,15186569:25971,15186572:25972,15186578:25973,15186576:25974,15186579:25975,15186580:25976,15186582:25977,15186574:25978,15186587:25979,15186588:25980,15187128:25981,15187130:25982,15187333:26145,15187340:26146,15187341:26147,15187342:26148,15187344:26149,15187345:26150,15187349:26151,15187348:26152,15187352:26153,15187359:26154,15187360:26155,15187368:26156,15187369:26157,15187367:26158,15187384:26159,15187586:26160,15187590:26161,15187587:26162,15187592:26163,15187591:26164,15187596:26165,15187604:26166,15187614:26167,15187613:26168,15187610:26169,15187619:26170,15187631:26171,15187634:26172,15187641:26173,15187630:26174,15187638:26175,15187640:26176,15248817:26177,15187845:26178,15187846:26179,15187850:26180,15187861:26181,15187860:26182,15187873:26183,15187878:26184,15187881:26185,15187891:26186,15187897:26187,15311772:26188,15237254:26189,15237252:26190,15237259:26191,15237266:26192,15237272:26193,15237273:26194,15237276:26195,15237281:26196,15237288:26197,15237311:26198,15237307:26199,15237514:26200,15237510:26201,15237522:26202,15237528:26203,15237530:26204,15237535:26205,15237538:26206,15237544:26207,15237555:26208,15237554:26209,15237552:26210,15237558:26211,15237561:26212,15237565:26213,15237567:26214,15237764:26215,15237766:26216,15237765:26217,15237787:26218,15237779:26219,15237786:26220,15237805:26221,15042192:26222,15237804:26223,15238043:26224,15238053:26225,15238041:26226,15238045:26227,15238020:26228,15238042:26229,15238038:26230,15238281:26231,15238063:26232,15238065:26233,15238299:26234,15238313:26235,15238307:26236,15238319:26237,15238539:26238,15309451:26401,15238534:26402,15238334:26403,15238547:26404,15238545:26405,15238076:26406,15238577:26407,15238574:26408,15238565:26409,15238566:26410,15238580:26411,15238787:26412,15238792:26413,15238794:26414,15238784:26415,15238786:26416,15238816:26417,15238805:26418,15238820:26419,15238819:26420,15238559:26421,15238803:26422,15238825:26423,15238832:26424,15238837:26425,15238846:26426,15238840:26427,15238845:26428,15239040:26429,15239042:26430,15238842:26431,15239049:26432,15239053:26433,15239057:26434,15239065:26435,15239064:26436,15239048:26437,15239066:26438,15239071:26439,15239072:26440,15239079:26441,15239098:26442,15239099:26443,15239102:26444,15239297:26445,15239298:26446,15239301:26447,15239303:26448,15239306:26449,15239309:26450,15239312:26451,15239318:26452,15239337:26453,15239339:26454,15239352:26455,15239347:26456,15239552:26457,15239577:26458,15239576:26459,15239581:26460,15239578:26461,15239583:26462,15239588:26463,15239586:26464,15239592:26465,15239594:26466,15239595:26467,15239342:26468,15239601:26469,15239607:26470,15239608:26471,15239614:26472,15239821:26473,15239826:26474,15239851:26475,15239839:26476,15239867:26477,15239852:26478,15240097:26479,15240099:26480,15240095:26481,15240082:26482,15240116:26483,15240115:26484,15240122:26485,15240851:26486,15240323:26487,15240123:26488,15240121:26489,15240094:26490,15240326:26491,15240092:26492,15240329:26493,15240089:26494,15240373:26657,15240372:26658,15240342:26659,15240370:26660,15240369:26661,15240576:26662,15240377:26663,15240592:26664,15240581:26665,15240367:26666,15240363:26667,15240343:26668,15240344:26669,15240837:26670,15240858:26671,15240874:26672,15240863:26673,15240866:26674,15240854:26675,15240355:26676,15240846:26677,15240839:26678,15240842:26679,15240636:26680,15240885:26681,15240627:26682,15240629:26683,15240864:26684,15240841:26685,15240872:26686,15241140:26687,15241363:26688,15241131:26689,15241102:26690,15241149:26691,15241347:26692,15241112:26693,15241355:26694,15241089:26695,15241143:26696,15241351:26697,15241120:26698,15241138:26699,15241357:26700,15241378:26701,15241376:26702,15240893:26703,15241400:26704,15242374:26705,15241147:26706,15241645:26707,15241386:26708,15241404:26709,15242650:26710,15241860:26711,15241655:26712,15241643:26713,15241901:26714,15241646:26715,15241858:26716,15241641:26717,15241606:26718,15241388:26719,15241647:26720,15241657:26721,15241397:26722,15242122:26723,15241634:26724,15241913:26725,15241919:26726,15241887:26727,15242137:26728,15242125:26729,15241915:26730,15242138:26731,15242128:26732,15242113:26733,15242118:26734,15242134:26735,15241889:26736,15242401:26737,15242175:26738,15242164:26739,15242391:26740,15242392:26741,15242412:26742,15242399:26743,15242389:26744,15242388:26745,15242172:26746,15242624:26747,15242659:26748,15242648:26749,15242632:26750,15242625:26913,15243394:26914,15242635:26915,15242645:26916,15242880:26917,15242916:26918,15242888:26919,15242897:26920,15242890:26921,15242920:26922,15242669:26923,15242900:26924,15242907:26925,15243178:26926,15242887:26927,15242908:26928,15242679:26929,15242686:26930,15242896:26931,15243145:26932,15242938:26933,15243151:26934,15242937:26935,15243152:26936,15243157:26937,15243165:26938,15243173:26939,15243164:26940,15243193:26941,15243402:26942,15243411:26943,15243403:26944,15243198:26945,15243194:26946,15243398:26947,15243426:26948,15243418:26949,15243440:26950,15243455:26951,15243661:26952,14989717:26953,15243668:26954,15243679:26955,15243687:26956,15243697:26957,15243923:26958,15243939:26959,15243945:26960,15243946:26961,15243915:26962,15243916:26963,15243958:26964,15243951:26965,15244164:26966,15244166:26967,15243952:26968,15244169:26969,15245475:26970,15243947:26971,15244180:26972,15244190:26973,15244201:26974,15244204:26975,15244191:26976,15244187:26977,15244207:26978,15244434:26979,15244422:26980,15244424:26981,15244416:26982,15244419:26983,15244219:26984,15244433:26985,15244425:26986,15244429:26987,15244217:26988,15244426:26989,15244468:26990,15244479:26991,15244471:26992,15244475:26993,15244453:26994,15244457:26995,15244442:26996,15244704:26997,15244703:26998,15244728:26999,15244684:27e3,15244686:27001,15244724:27002,15244695:27003,15244712:27004,15244718:27005,15244697:27006,15244691:27169,15244707:27170,15244714:27171,15245445:27172,15244962:27173,15244959:27174,15244930:27175,15244975:27176,15245195:27177,15244989:27178,15245184:27179,15245200:27180,15309718:27181,15244971:27182,15245188:27183,15244979:27184,15245191:27185,15245190:27186,15244987:27187,15245231:27188,15245234:27189,15245216:27190,15245455:27191,15245453:27192,15245246:27193,15245238:27194,15245239:27195,15245454:27196,15245202:27197,15245457:27198,15245462:27199,15245461:27200,15245474:27201,15245473:27202,15245489:27203,15245494:27204,15245497:27205,15245479:27206,15245499:27207,15245700:27208,15245698:27209,15245714:27210,15245721:27211,15245726:27212,15245730:27213,15245739:27214,15245953:27215,15245758:27216,15245982:27217,15245749:27218,15245757:27219,15246005:27220,15245746:27221,15245954:27222,15245975:27223,15245970:27224,15245998:27225,15245977:27226,15245986:27227,15245965:27228,15245988:27229,15246e3:27230,15246015:27231,15246001:27232,15246211:27233,15246212:27234,15246228:27235,15246232:27236,15246233:27237,15246237:27238,15246265:27239,15246466:27240,15246268:27241,15246260:27242,15246248:27243,15246258:27244,15246468:27245,15246476:27246,15246474:27247,15246483:27248,15246723:27249,15246494:27250,15246501:27251,15246506:27252,15246507:27253,15246721:27254,15246724:27255,15246523:27256,15246518:27257,15246520:27258,15246732:27259,15246493:27260,15246752:27261,15246750:27262,15246758:27425,15246756:27426,15246765:27427,15246762:27428,15246767:27429,15246772:27430,15246775:27431,15246782:27432,15246979:27433,15246984:27434,15246986:27435,15246995:27436,15247e3:27437,15247009:27438,15247017:27439,15247014:27440,15247020:27441,15247023:27442,15247026:27443,15247034:27444,15247037:27445,15247039:27446,15247232:27447,15247258:27448,15247260:27449,15247261:27450,15247271:27451,15247284:27452,15247288:27453,15247491:27454,15247510:27455,15247504:27456,15247500:27457,15247515:27458,15247517:27459,15247525:27460,15247542:27461,15247745:27462,15247771:27463,15247762:27464,15247750:27465,15247752:27466,15247804:27467,15247789:27468,15247788:27469,15247778:27470,15248005:27471,15248002:27472,15248004:27473,15248040:27474,15248033:27475,15248017:27476,15248037:27477,15248038:27478,15248026:27479,15248035:27480,15248260:27481,15248269:27482,15248258:27483,15248282:27484,15248299:27485,15248307:27486,15248295:27487,15248292:27488,15248305:27489,15248532:27490,15248288:27491,15248290:27492,15248311:27493,15248286:27494,15248283:27495,15248524:27496,15248519:27497,15248538:27498,15248289:27499,15248534:27500,15248528:27501,15248535:27502,15248544:27503,15248563:27504,15310507:27505,15248550:27506,15248555:27507,15248574:27508,15248552:27509,15248769:27510,15248780:27511,15248783:27512,15248782:27513,15248777:27514,15248790:27515,15248795:27516,15248794:27517,15248811:27518,15248799:27681,15248812:27682,15248815:27683,15248820:27684,15248829:27685,15249024:27686,15249036:27687,15249038:27688,15249042:27689,15249043:27690,15249046:27691,15249049:27692,15249050:27693,15249594:27694,15249793:27695,15249599:27696,15249800:27697,15249804:27698,15249806:27699,15249808:27700,15249813:27701,15249826:27702,15249836:27703,15249848:27704,15249850:27705,15250050:27706,15250057:27707,15250053:27708,15250058:27709,15250061:27710,15250062:27711,15250068:27712,15249852:27713,15250072:27714,15108253:27715,15250093:27716,15250090:27717,15250109:27718,15250098:27719,15250099:27720,15250094:27721,15250102:27722,15250312:27723,15250305:27724,15250340:27725,15250339:27726,15250330:27727,15250365:27728,15250362:27729,15250363:27730,15250564:27731,15250565:27732,15250570:27733,15250567:27734,15250575:27735,15250573:27736,15250576:27737,15318414:27738,15250579:27739,15250317:27740,15250580:27741,15250582:27742,15250855:27743,15250861:27744,15250865:27745,15250867:27746,15251073:27747,15251097:27748,15251330:27749,15251134:27750,15251130:27751,15251343:27752,15251354:27753,15251350:27754,15251340:27755,15251355:27756,15251339:27757,15251370:27758,15251371:27759,15251359:27760,15251363:27761,15251388:27762,15251592:27763,15251593:27764,15251391:27765,15251613:27766,15251614:27767,15251600:27768,15251615:27769,15251842:27770,15251637:27771,15251632:27772,15251636:27773,15251850:27774,15251847:27937,15251849:27938,15251852:27939,15251856:27940,15251848:27941,15251865:27942,15251876:27943,15251872:27944,15251626:27945,15251875:27946,15251861:27947,15251894:27948,15251890:27949,15251900:27950,15252097:27951,15252103:27952,15252101:27953,15252100:27954,15252107:27955,15252106:27956,15252115:27957,15252113:27958,15252116:27959,15252121:27960,15252138:27961,15252129:27962,15252140:27963,15252144:27964,15252358:27965,15252145:27966,15252158:27967,15252357:27968,15252360:27969,15252363:27970,15252379:27971,15252387:27972,15252412:27973,15252411:27974,15252395:27975,15252414:27976,15252618:27977,15252613:27978,15252629:27979,15252626:27980,15252633:27981,15252627:27982,15252636:27983,15252639:27984,15252635:27985,15252620:27986,15252646:27987,15252659:27988,15252667:27989,15252665:27990,15252869:27991,15252866:27992,15252670:27993,15252876:27994,15252873:27995,15252870:27996,15252878:27997,15252887:27998,15252892:27999,15252898:28e3,15252899:28001,15252900:28002,15253148:28003,15253151:28004,15253155:28005,15253165:28006,15253167:28007,15253175:28008,15253402:28009,15253413:28010,15253410:28011,15253418:28012,15253423:28013,15303303:28014,15253428:28015,15302789:28016,15253433:28017,15253434:28018,15302801:28019,15302805:28020,15302817:28021,15302797:28022,15302814:28023,15302806:28024,15302795:28025,15302823:28026,15302838:28027,15302837:28028,15302841:28029,15253432:28030,15303055:28193,15303056:28194,15303057:28195,15303058:28196,15302798:28197,15303049:28198,15302846:28199,15303062:28200,15303064:28201,15303070:28202,15303080:28203,15303087:28204,15303094:28205,15309480:28206,15303090:28207,15303298:28208,15303101:28209,15303297:28210,15303296:28211,15303306:28212,15303305:28213,15303311:28214,15303336:28215,15303343:28216,15303345:28217,15303349:28218,15303586:28219,15303588:28220,15108488:28221,15303579:28222,15303810:28223,15303826:28224,15303833:28225,15303858:28226,15303856:28227,15304074:28228,15304086:28229,15304088:28230,15304099:28231,15304101:28232,15304105:28233,15304115:28234,15304114:28235,15304331:28236,15304329:28237,15304322:28238,15304354:28239,15304363:28240,15304367:28241,15304362:28242,15304373:28243,15304372:28244,15304378:28245,15304576:28246,15304577:28247,15304585:28248,15304587:28249,15304592:28250,15304598:28251,15304607:28252,15304609:28253,15304603:28254,15304636:28255,15304629:28256,15304630:28257,15304862:28258,15304639:28259,15304852:28260,15304876:28261,15304853:28262,15304849:28263,15305118:28264,15305111:28265,15305093:28266,15305097:28267,15305124:28268,15305096:28269,15305365:28270,15304895:28271,15305099:28272,15305104:28273,15305372:28274,15305366:28275,15305363:28276,15305371:28277,15305114:28278,15305615:28279,15305401:28280,15305399:28281,15305641:28282,15305871:28283,15305658:28284,15306116:28285,15305902:28286,15305881:28449,15305890:28450,15305882:28451,15305891:28452,15305914:28453,15305909:28454,15305915:28455,15306140:28456,15306144:28457,15306172:28458,15306158:28459,15306134:28460,15306416:28461,15306412:28462,15306413:28463,15306388:28464,15306425:28465,15306646:28466,15306647:28467,15306664:28468,15306661:28469,15306648:28470,15306627:28471,15306653:28472,15306640:28473,15306632:28474,15306660:28475,15306906:28476,15306900:28477,15306899:28478,15306883:28479,15306887:28480,15306896:28481,15306934:28482,15306923:28483,15306933:28484,15306913:28485,15306938:28486,15307137:28487,15307154:28488,15307140:28489,15307163:28490,15307168:28491,15307170:28492,15307166:28493,15307178:28494,15304873:28495,15307184:28496,15307189:28497,15307191:28498,15307197:28499,15307162:28500,15307196:28501,15307198:28502,15307393:28503,15307199:28504,15308418:28505,15308423:28506,15308426:28507,15308436:28508,15308438:28509,15308440:28510,15308441:28511,15308448:28512,15308456:28513,15308455:28514,15308461:28515,15308476:28516,15308475:28517,15308473:28518,15308478:28519,15308682:28520,15122358:28521,15308675:28522,15308685:28523,15308684:28524,15308693:28525,15308692:28526,15308694:28527,15308700:28528,15308705:28529,15308709:28530,15308706:28531,15308961:28532,15308968:28533,15308974:28534,15308975:28535,15309186:28536,15309196:28537,15309199:28538,15309195:28539,15309239:28540,15309212:28541,15309214:28542,15309213:28705,15309215:28706,15309222:28707,15309234:28708,15309228:28709,15309453:28710,15309464:28711,15309461:28712,15309463:28713,15309482:28714,15309479:28715,15309489:28716,15309490:28717,15309488:28718,15309492:28719,15309494:28720,15309496:28721,15309497:28722,15309710:28723,15309707:28724,15309705:28725,15309709:28726,15246733:28727,15309724:28728,15309965:28729,15309717:28730,15309753:28731,15309956:28732,15309958:28733,15309960:28734,15309971:28735,15309966:28736,15309969:28737,15309967:28738,15309974:28739,15309977:28740,15309988:28741,15309994:28742,1531e4:28743,15310009:28744,15310013:28745,15310014:28746,15310212:28747,15310214:28748,15310216:28749,15310210:28750,15310217:28751,15310236:28752,15310240:28753,15310244:28754,15310246:28755,15310248:28756,15043474:28757,15310251:28758,15310257:28759,15310265:28760,15310469:28761,15310268:28762,15310465:28763,15310266:28764,15310470:28765,15310475:28766,15310479:28767,15310480:28768,15310492:28769,15310504:28770,15310502:28771,15310499:28772,15310515:28773,15310516:28774,15310723:28775,15310726:28776,15310728:28777,15310731:28778,15310748:28779,15310765:28780,15318415:28781,15310770:28782,15182751:28783,15310774:28784,15310773:28785,15310991:28786,15310988:28787,15311032:28788,15311012:28789,15311009:28790,15311031:28791,15311037:28792,15311238:28793,15311247:28794,15311243:28795,15311275:28796,15311279:28797,15311280:28798,15311281:28961,15311284:28962,15311283:28963,15311530:28964,15311535:28965,15311537:28966,15311542:28967,15311748:28968,15311747:28969,15311750:28970,15311785:28971,15311787:28972,15312003:28973,15312009:28974,15312018:28975,15312020:28976,15312024:28977,15312033:28978,15312029:28979,15312030:28980,15312036:28981,15312032:28982,15312044:28983,15312046:28984,15312061:28985,15312062:28986,15312258:28987,15312265:28988,15312261:28989,15312272:28990,15312267:28991,15312273:28992,15312274:28993,15312268:28994,15312277:28995,15312535:28996,15312536:28997,15312549:28998,15312557:28999,15312558:29e3,15312572:29001,15312799:29002,15312795:29003,15312797:29004,15312792:29005,15312785:29006,15312813:29007,15312814:29008,15312817:29009,15312818:29010,15312827:29011,15312824:29012,15313025:29013,15313039:29014,15313029:29015,15312802:29016,15313049:29017,15313067:29018,15313079:29019,15313285:29020,15313282:29021,15313280:29022,15313283:29023,15313086:29024,15313301:29025,15313293:29026,15313307:29027,15313303:29028,15313311:29029,15313314:29030,15313317:29031,15313316:29032,15313321:29033,15313323:29034,15313322:29035,15313581:29036,15313584:29037,15313596:29038,15313792:29039,15313807:29040,15313809:29041,15313811:29042,15313812:29043,15313822:29044,15313823:29045,15313826:29046,15313827:29047,15313830:29048,15313839:29049,15313835:29050,15313838:29051,15313844:29052,15313841:29053,15313847:29054,15313851:29217,15314054:29218,15314072:29219,15314074:29220,15314079:29221,15314082:29222,15314083:29223,15314085:29224,15314087:29225,15314088:29226,15314089:29227,15314090:29228,15314094:29229,15314095:29230,15314098:29231,15314308:29232,15314307:29233,15314319:29234,15314317:29235,15314318:29236,15314321:29237,15314328:29238,15314356:29239,15314579:29240,15314563:29241,15314577:29242,15314582:29243,15314583:29244,15314591:29245,15314592:29246,15314600:29247,15314612:29248,15314816:29249,15314826:29250,15314617:29251,15314822:29252,15314831:29253,15314833:29254,15314834:29255,15314851:29256,15314850:29257,15314852:29258,15314836:29259,15314849:29260,15315130:29261,15314866:29262,15314865:29263,15314864:29264,15315093:29265,15315092:29266,15315081:29267,15315091:29268,15315084:29269,15315078:29270,15315080:29271,15315090:29272,15315082:29273,15315076:29274,15315118:29275,15315099:29276,15315109:29277,15315108:29278,15315105:29279,15315120:29280,15315335:29281,15315122:29282,15315334:29283,15315134:29284,15315354:29285,15315360:29286,15315367:29287,15315382:29288,15315384:29289,15315879:29290,15315884:29291,15315888:29292,15316105:29293,15316104:29294,15315883:29295,15316099:29296,15316102:29297,15316138:29298,15316134:29299,15316655:29300,15316131:29301,15316127:29302,15316356:29303,15316117:29304,15316114:29305,15316353:29306,15316159:29307,15316158:29308,15316358:29309,15316360:29310,15316381:29473,15316382:29474,15316388:29475,15316369:29476,15316368:29477,15316377:29478,15316402:29479,15316617:29480,15316615:29481,15316651:29482,15316399:29483,15316410:29484,15316634:29485,15316644:29486,15316649:29487,15316658:29488,15316868:29489,15316865:29490,15316667:29491,15316664:29492,15316666:29493,15316870:29494,15316879:29495,15316866:29496,15316889:29497,15316883:29498,15316920:29499,15316902:29500,15316909:29501,15316911:29502,15316925:29503,15317146:29504,15317147:29505,15317150:29506,15317429:29507,15317433:29508,15317437:29509,15317633:29510,15317640:29511,15317643:29512,15317644:29513,15317650:29514,15317653:29515,15317649:29516,15317661:29517,15317669:29518,15317673:29519,15317688:29520,15317674:29521,15317677:29522,15310241:29523,15317900:29524,15317902:29525,15317903:29526,15317904:29527,15317908:29528,15317916:29529,15317918:29530,15317917:29531,15317920:29532,15317925:29533,15317928:29534,15317935:29535,15317940:29536,15317942:29537,15317943:29538,15317945:29539,15317947:29540,15317948:29541,15317949:29542,15318151:29543,15318152:29544,15178423:29545,15318165:29546,15318177:29547,15318188:29548,15318206:29549,15318410:29550,15318418:29551,15318420:29552,15318435:29553,15318431:29554,15318432:29555,15318433:29556,15318438:29557,15318439:29558,15318444:29559,15318442:29560,15318455:29561,15318450:29562,15318454:29563,15318677:29564,15318684:29565,15318688:29566,15048879:29729,15116167:29730,15303065:29731,15176100:29732,15042460:29733,15173273:29734,15186570:31009,15246492:31010,15306120:31011,15305352:31012,15242140:31013,14991241:31014,15172283:31015,15112369:31016,15115144:31017,15305657:31018,15113147:31019,15056261:31020,14989480:31021,14990241:31022,14990268:31023,14990464:31024,14990467:31025,14990521:31026,14990742:31027,14990994:31028,14990986:31029,14991002:31030,14990996:31031,14991245:31032,15040896:31033,15040674:31034,14991295:31035,15040670:31036,15040902:31037,15040944:31038,15040898:31039,15041172:31040,15041460:31041,15041432:31042,15041930:31043,15041956:31044,15042205:31045,15042238:31046,15042476:31047,15042709:31048,15043228:31049,15043238:31050,15043456:31051,15043483:31052,15043712:31053,15043719:31054,15043748:31055,15044018:31056,15044243:31057,15044274:31058,15044509:31059,15706254:31060,15045276:31061,15045258:31062,15045289:31063,15045567:31064,15046278:31065,15048089:31066,15048101:31067,15048364:31068,15048584:31069,15048583:31070,15706255:31071,15706256:31072,15049374:31073,15049394:31074,15049867:31075,15050131:31076,15050139:31077,15050141:31078,15050147:31079,15050404:31080,15050426:31081,15052182:31082,15052672:31083,15176879:31084,15052696:31085,15052716:31086,15052958:31087,15053478:31088,15053498:31089,15053749:31090,15053991:31091,15054227:31092,15706257:31093,15054210:31094,15054253:31095,15054520:31096,15054521:31097,15054736:31098,15056033:31099,15056052:31100,15056295:31101,15056567:31102,15056798:31265,15106461:31266,15106693:31267,15106698:31268,15106974:31269,15106965:31270,15107232:31271,15106994:31272,15107217:31273,15107255:31274,15107248:31275,15107736:31276,15108243:31277,15108774:31278,15110069:31279,15110560:31280,15110813:31281,15111054:31282,15111566:31283,15112320:31284,15112341:31285,15112379:31286,15112329:31287,15112366:31288,15112350:31289,15112356:31290,15112613:31291,15112599:31292,15112601:31293,15706258:31294,15112627:31295,15112857:31296,15112864:31297,15112882:31298,15112895:31299,15113146:31300,15113358:31301,15705257:31302,15113638:31303,15113915:31304,15114642:31305,15114112:31306,15114369:31307,15114628:31308,15115151:31309,15706259:31310,15115688:31311,15706260:31312,15115928:31313,15116194:31314,15116464:31315,15116715:31316,15116678:31317,15116723:31318,15116734:31319,15117218:31320,15117220:31321,15118230:31322,15118527:31323,15118748:31324,15118982:31325,15118767:31326,15119258:31327,15119492:31328,15120007:31329,15119791:31330,15120022:31331,15120044:31332,15120271:31333,15120312:31334,15120306:31335,15120316:31336,15120569:31337,15120796:31338,15120551:31339,15120572:31340,15121087:31341,15122056:31342,15122101:31343,15122357:31344,15171717:31345,15171719:31346,15171752:31347,15172229:31348,15172267:31349,15172751:31350,15172740:31351,15173020:31352,15172998:31353,15172999:31354,15706261:31355,15173505:31356,15173566:31357,15174321:31358,15174334:31521,15174820:31522,15706262:31523,15175095:31524,15175357:31525,15175561:31526,15175574:31527,15175587:31528,15175570:31529,15175815:31530,15175605:31531,15175846:31532,15175850:31533,15175849:31534,15175854:31535,15176098:31536,15176329:31537,15176351:31538,15176833:31539,15177135:31540,15178370:31541,15178396:31542,15178398:31543,15178395:31544,15178406:31545,15706263:31546,15179142:31547,15043247:31548,15179937:31549,15180174:31550,15180196:31551,15180218:31552,15180976:31553,15706264:31554,15706265:31555,15706266:31556,15181460:31557,15706267:31558,15181467:31559,15182737:31560,15182759:31561,15706268:31562,15182763:31563,15183518:31564,15706269:31565,15185288:31566,15185308:31567,15185591:31568,15185568:31569,15185814:31570,15186322:31571,15187335:31572,15187617:31573,15706270:31574,15240321:31575,15240610:31576,15240639:31577,15241095:31578,15241142:31579,15241608:31580,15241908:31581,15242643:31582,15242649:31583,15242667:31584,15706271:31585,15242928:31586,15706272:31587,15706273:31588,15245447:31589,15246261:31590,15247506:31591,15247543:31592,15247801:31593,15248039:31594,15248062:31595,15248287:31596,15706274:31597,15248310:31598,15248787:31599,15248831:31600,15250352:31601,15250356:31602,15250578:31603,15250870:31604,15706275:31605,15252367:31606,15706276:31607,15706277:31608,15303079:31609,15303582:31610,15706278:31611,15303829:31612,15303847:31613,15304602:31614,15304599:31777,15304606:31778,15304621:31779,15304622:31780,15304612:31781,15304613:31782,15304838:31783,15304848:31784,15304842:31785,15304890:31786,15305088:31787,15304892:31788,15305102:31789,15305113:31790,15305105:31791,15304889:31792,15305127:31793,15305383:31794,15305143:31795,15305144:31796,15305639:31797,15305623:31798,15305625:31799,15305616:31800,15706279:31801,15305621:31802,15305632:31803,15305619:31804,15305893:31805,15305889:31806,15305659:31807,15706280:31808,15305886:31809,15305663:31810,15305885:31811,15305858:31812,15306160:31813,15306135:31814,15306404:31815,15306630:31816,15306654:31817,15306680:31818,15306929:31819,15307141:31820,15307144:31821,15308434:31822,15706012:31823,15706281:31824,15309469:31825,15309487:31826,15310003:31827,15310011:31828,15310211:31829,15310221:31830,15310223:31831,15310225:31832,15310229:31833,15311255:31834,15311269:31835,15706282:31836,15706283:31837,15312039:31838,15706284:31839,15312542:31840,15313294:31841,15313817:31842,15313820:31843,15314357:31844,15314354:31845,15314575:31846,15314609:31847,15314619:31848,15315072:31849,15316400:31850,15316395:31851,15706285:31852,15317145:31853,15317905:31854,14845360:31857,14845361:31858,14845362:31859,14845363:31860,14845364:31861,14845365:31862,14845366:31863,14845367:31864,14845368:31865,14845369:31866,15712164:31868,15711367:31869,15711362:31870,14846117:8514,15712162:8780,14846098:74077}},8024:e=>{e.exports={52120:8751,52103:8752,49848:8753,52121:8754,52125:8755,49839:8756,52123:8757,52122:8758,126:8759,52868:8760,52869:8761,49825:8770,49830:8771,49855:8772,49850:8811,49834:8812,49833:8813,49838:8814,14845090:8815,49828:8816,14845078:8817,52870:9825,52872:9826,52873:9827,52874:9828,52906:9829,52876:9831,52878:9833,52907:9834,52879:9836,52908:9841,52909:9842,52910:9843,52911:9844,53130:9845,52880:9846,53132:9847,53122:9848,53133:9849,53131:9850,52912:9851,53134:9852,53378:10050,53379:10051,53380:10052,53381:10053,53382:10054,53383:10055,53384:10056,53385:10057,53386:10058,53387:10059,53388:10060,53390:10061,53391:10062,53650:10098,53651:10099,53652:10100,53653:10101,53654:10102,53655:10103,53656:10104,53657:10105,53658:10106,53659:10107,53660:10108,53662:10109,53663:10110,50054:10529,50320:10530,50342:10532,50354:10534,50561:10536,50367:10537,50570:10539,50072:10540,50578:10541,50598:10543,50078:10544,50086:10561,50321:10562,50096:10563,50343:10564,50353:10565,50355:10566,50360:10567,50562:10568,50560:10569,50569:10570,50571:10571,50104:10572,50579:10573,50079:10574,50599:10575,50110:10576,50049:10785,50048:10786,50052:10787,50050:10788,50306:10789,51085:10790,50304:10791,50308:10792,50053:10793,50051:10794,50310:10795,50312:10796,50316:10797,50055:10798,50314:10799,50318:10800,50057:10801,50056:10802,50059:10803,50058:10804,50330:10805,50326:10806,50322:10807,50328:10808,50332:10810,50334:10811,50338:10812,50336:10813,50340:10814,50061:10815,50060:10816,50063:10817,50062:10818,51087:10819,50352:10820,50346:10821,50350:10822,50344:10823,50356:10824,50358:10825,50361:10826,50365:10827,50363:10828,50563:10829,50567:10830,50565:10831,50065:10832,50067:10833,50066:10834,50070:10835,50068:10836,51089:10837,50576:10838,50572:10839,50069:10840,50580:10841,50584:10842,50582:10843,50586:10844,50588:10845,50592:10846,50590:10847,50596:10848,50594:10849,50074:10850,50073:10851,50076:10852,50075:10853,50604:10854,51091:10855,50608:10856,50602:10857,50610:10858,50606:10859,50600:10860,51095:10861,51099:10862,51097:10863,51093:10864,50612:10865,50077:10866,50616:10867,50614:10868,50617:10869,50621:10870,50619:10871,50081:11041,50080:11042,50084:11043,50082:11044,50307:11045,51086:11046,50305:11047,50309:11048,50085:11049,50083:11050,50311:11051,50313:11052,50317:11053,50087:11054,50315:11055,50319:11056,50089:11057,50088:11058,50091:11059,50090:11060,50331:11061,50327:11062,50323:11063,50329:11064,51125:11065,50333:11066,50335:11067,50337:11069,50341:11070,50093:11071,50092:11072,50095:11073,50094:11074,51088:11075,50347:11077,50351:11078,50345:11079,50357:11080,50359:11081,50362:11082,50366:11083,50364:11084,50564:11085,50568:11086,50566:11087,50097:11088,50099:11089,50098:11090,50102:11091,50100:11092,51090:11093,50577:11094,50573:11095,50101:11096,50581:11097,50585:11098,50583:11099,50587:11100,50589:11101,50593:11102,50591:11103,50597:11104,50595:11105,50106:11106,50105:11107,50108:11108,50107:11109,50605:11110,51092:11111,50609:11112,50603:11113,50611:11114,50607:11115,50601:11116,51096:11117,51100:11118,51098:11119,51094:11120,50613:11121,50109:11122,50111:11123,50615:11124,50618:11125,50622:11126,50620:11127,14989442:12321,14989444:12322,14989445:12323,14989452:12324,14989458:12325,14989471:12326,14989475:12327,14989476:12328,14989480:12329,14989483:12330,14989486:12331,14989487:12332,14989488:12333,14989493:12334,14989696:12335,14989697:12336,14989700:12337,14989703:12338,14989713:12339,14989722:12340,14989724:12341,14989731:12342,14989736:12343,14989737:12344,14989748:12345,14989749:12346,14989753:12347,14989759:12348,14989965:12349,14989974:12350,14989975:12351,14989981:12352,14989999:12353,14990009:12354,14990211:12355,14990224:12356,14990234:12357,14990235:12358,14990240:12359,14990241:12360,14990242:12361,14990248:12362,14990255:12363,14990257:12364,14990259:12365,14990261:12366,14990269:12367,14990270:12368,14990271:12369,14990464:12370,14990466:12371,14990467:12372,14990472:12373,14990475:12374,14990476:12375,14990482:12376,14990485:12377,14990486:12378,14990487:12379,14990489:12380,14990510:12381,14990513:12382,14990752:12383,14990515:12384,14990517:12385,14990519:12386,14990521:12387,14990523:12388,14990526:12389,14990720:12390,14990722:12391,14990728:12392,14990729:12393,14990731:12394,14990732:12395,14990738:12396,14990740:12397,14990742:12398,14990744:12399,14990751:12400,14990755:12401,14990762:12402,14990764:12403,14990766:12404,14990769:12405,14990775:12406,14990776:12407,14990777:12408,14990778:12409,14990781:12410,14990782:12411,14990977:12412,14990978:12413,14990980:12414,14990981:12577,14990985:12578,14990986:12579,14990988:12580,14990990:12581,14990992:12582,14990994:12583,14990995:12584,14990996:12585,14990999:12586,14991001:12587,14991002:12588,14991006:12589,14991007:12590,14991026:12591,14991031:12592,14991033:12593,14991035:12594,14991036:12595,14991037:12596,14991038:12597,14991232:12598,14991233:12599,14991237:12600,14991238:12601,14991240:12602,14991241:12603,14991243:12604,14991244:12605,14991245:12606,14991247:12607,14991250:12608,14991260:12609,14991264:12610,14991266:12611,14991280:12612,14991282:12613,14991292:12614,14991293:12615,14991295:12616,15040640:12617,15040641:12618,15040644:12619,15040647:12620,15040650:12621,15040652:12622,15040654:12623,15040656:12624,15040659:12625,15040663:12626,15040664:12627,15040667:12628,15040668:12629,15040669:12630,15040670:12631,15040674:12632,15040679:12633,15040686:12634,15040688:12635,15040690:12636,15040691:12637,15040693:12638,15040896:12639,15040897:12640,15040898:12641,15040901:12642,15040902:12643,15040906:12644,15040908:12645,15040910:12646,15040913:12647,15040914:12648,15040915:12649,15040919:12650,15040921:12651,15040927:12652,15040928:12653,15040930:12654,15040931:12655,15040934:12656,15040935:12657,15040938:12658,15040941:12659,15040944:12660,15040945:12661,15040699:12662,15041153:12663,15041155:12664,15041156:12665,15041158:12666,15041162:12667,15041166:12668,15041167:12669,15041168:12670,15041170:12833,15041171:12834,15041172:12835,15041174:12836,15041179:12837,15041180:12838,15041182:12839,15041183:12840,15041184:12841,15041185:12842,15041186:12843,15041194:12844,15041199:12845,15041200:12846,15041209:12847,15041210:12848,15041213:12849,15041408:12850,15041411:12851,15041412:12852,15041415:12853,15041420:12854,15041422:12855,15041424:12856,15041427:12857,15041428:12858,15041432:12859,15041436:12860,15041437:12861,15041439:12862,15041442:12863,15041444:12864,15041446:12865,15041448:12866,15041449:12867,15041455:12868,15041457:12869,15041462:12870,15041466:12871,15041470:12872,15041667:12873,15041670:12874,15041671:12875,15041672:12876,15041675:12877,15041676:12878,15041677:12879,15041678:12880,15041458:12881,15041680:12882,15041687:12883,15041689:12884,15041691:12885,15041692:12886,15041693:12887,15041694:12888,15041699:12889,15041703:12890,15041704:12891,15041708:12892,15041709:12893,15041711:12894,15041713:12895,15041715:12896,15041716:12897,15041717:12898,15041720:12899,15041721:12900,15041922:12901,15041930:12902,15041935:12903,15041939:12904,15041941:12905,15041943:12906,15041944:12907,15041951:12908,15041956:12909,15041958:12910,15041982:12911,15042179:12912,15042180:12913,15042187:12914,15042190:12915,15042200:12916,15042205:12917,15042209:12918,15042211:12919,15042221:12920,15042232:12921,15042234:12922,15042236:12923,15042238:12924,15042239:12925,15042434:12926,15042440:13089,15042447:13090,15042449:13091,15042450:13092,15042451:13093,15042453:13094,15042456:13095,15042462:13096,15042466:13097,15042469:13098,15042478:13099,15042482:13100,15042483:13101,15042484:13102,15042487:13103,15042689:13104,15042690:13105,15042693:13106,15042706:13107,15042707:13108,15042709:13109,15042710:13110,15042712:13111,15042722:13112,15042728:13113,15042737:13114,15042738:13115,15042741:13116,15042748:13117,15042949:13118,15042953:13119,15042965:13120,15042967:13121,15042968:13122,15042970:13123,15042972:13124,15042975:13125,15042976:13126,15042977:13127,15042982:13128,15042990:13129,15042999:13130,15043e3:13131,15043001:13132,15043200:13133,15043202:13134,15043205:13135,15043210:13136,15043212:13137,15043219:13138,15043221:13139,15043222:13140,15043223:13141,15043224:13142,15043226:13143,15043228:13144,15043236:13145,15043237:13146,15043238:13147,15043239:13148,15043247:13149,15043248:13150,15043254:13151,15043255:13152,15043256:13153,15043258:13154,15043259:13155,15043261:13156,15043456:13157,15043460:13158,15043462:13159,15043464:13160,15043468:13161,15043471:13162,15043473:13163,15043476:13164,15043478:13165,15043483:13166,15043484:13167,15043489:13168,15043493:13169,15043496:13170,15043497:13171,15043498:13172,15043500:13173,15043504:13174,15043505:13175,15043508:13176,15043510:13177,15043511:13178,15043712:13179,15043715:13180,15043722:13181,15043723:13182,15043724:13345,15043729:13346,15043731:13347,15043736:13348,15043739:13349,15043740:13350,15043742:13351,15043743:13352,15043749:13353,15043751:13354,15043752:13355,15043753:13356,15043755:13357,15043756:13358,15043757:13359,15043760:13360,15043762:13361,15043765:13362,15043772:13363,15043773:13364,15043774:13365,15043970:13366,15043980:13367,15043979:13368,15043993:13369,15043995:13370,15044001:13371,15044003:13372,15044005:13373,15044012:13374,15044013:13375,15044018:13376,15044025:13377,15044030:13378,15044227:13379,15044231:13380,15044232:13381,15044238:13382,15044243:13383,15044244:13384,15044249:13385,15044253:13386,15044257:13387,15044260:13388,15044266:13389,15044267:13390,15044271:13391,15044274:13392,15044276:13393,15044277:13394,15044279:13395,15044280:13396,15044282:13397,15044285:13398,15044480:13399,15044485:13400,15044495:13401,15044498:13402,15044499:13403,15044501:13404,15044506:13405,15044509:13406,15044510:13407,15044512:13408,15044518:13409,15044519:13410,15044533:13411,15044738:13412,15044755:13413,15044762:13414,15044769:13415,15044775:13416,15044776:13417,15044778:13418,15044783:13419,15044785:13420,15044788:13421,15044789:13422,15044995:13423,15044996:13424,15044999:13425,15045005:13426,15045007:13427,15045022:13428,15045026:13429,15045028:13430,15045030:13431,15045031:13432,15045033:13433,15045035:13434,15045037:13435,15045038:13436,15045044:13437,15045055:13438,15045249:13601,15045251:13602,15045253:13603,15045256:13604,15045257:13605,15045261:13606,15045265:13607,15045269:13608,15045270:13609,15045276:13610,15045279:13611,15045281:13612,15045286:13613,15045287:13614,15045289:13615,15045290:13616,15045293:13617,15045294:13618,15045297:13619,15045303:13620,15045305:13621,15045306:13622,15045307:13623,15045311:13624,15045510:13625,15045514:13626,15045517:13627,15045518:13628,15045536:13629,15045546:13630,15045548:13631,15045551:13632,15045558:13633,15045564:13634,15045566:13635,15045567:13636,15045760:13637,15045761:13638,15045765:13639,15045768:13640,15045769:13641,15045772:13642,15045773:13643,15045774:13644,15045781:13645,15045802:13646,15045803:13647,15045810:13648,15045813:13649,15045814:13650,15045819:13651,15045820:13652,15045821:13653,15046017:13654,15046023:13655,15046025:13656,15046026:13657,15046029:13658,15046032:13659,15046033:13660,15046040:13661,15046042:13662,15046043:13663,15046046:13664,15046048:13665,15046049:13666,15046052:13667,15046054:13668,15046079:13669,15046273:13670,15046274:13671,15046278:13672,15046280:13673,15046286:13674,15046287:13675,15046289:13676,15046290:13677,15046291:13678,15046292:13679,15046295:13680,15046307:13681,15046308:13682,15046317:13683,15046322:13684,15046335:13685,15046529:13686,15046531:13687,15046534:13688,15046537:13689,15046539:13690,15046540:13691,15046542:13692,15046545:13693,15046546:13694,15046547:13857,15046551:13858,15046552:13859,15046555:13860,15046558:13861,15046562:13862,15046569:13863,15046582:13864,15046591:13865,15046789:13866,15046792:13867,15046794:13868,15046797:13869,15046798:13870,15046799:13871,15046800:13872,15046801:13873,15046802:13874,15046809:13875,15046828:13876,15046832:13877,15046835:13878,15046837:13879,15046839:13880,15046841:13881,15046843:13882,15046844:13883,15046845:13884,15046847:13885,15047040:13886,15047041:13887,15047043:13888,15047044:13889,15047046:13890,15047049:13891,15047051:13892,15047053:13893,15047055:13894,15047060:13895,15047070:13896,15047072:13897,15047073:13898,15047074:13899,15047075:13900,15047078:13901,15047081:13902,15047085:13903,15047087:13904,15047089:13905,15047090:13906,15047093:13907,15047300:13908,15047301:13909,15047304:13910,15047307:13911,15047308:13912,15047317:13913,15047321:13914,15047322:13915,15047325:13916,15047326:13917,15047327:13918,15047334:13919,15047335:13920,15047336:13921,15047337:13922,15047339:13923,15047340:13924,15047341:13925,15047345:13926,15047347:13927,15047351:13928,15047358:13929,15047557:13930,15047561:13931,15047562:13932,15047563:13933,15047567:13934,15047568:13935,15047564:13936,15047565:13937,15047577:13938,15047580:13939,15047581:13940,15047583:13941,15047585:13942,15047588:13943,15047589:13944,15047590:13945,15047591:13946,15047592:13947,15047601:13948,15047595:13949,15047597:13950,15047606:14113,15047607:14114,15047809:14115,15047810:14116,15047815:14117,15047818:14118,15047820:14119,15047825:14120,15047829:14121,15047834:14122,15047835:14123,15047837:14124,15047840:14125,15047842:14126,15047843:14127,15047844:14128,15047845:14129,15047849:14130,15047850:14131,15047852:14132,15047854:14133,15047855:14134,15047859:14135,15047860:14136,15047869:14137,15047870:14138,15047871:14139,15048069:14140,15048070:14141,15048076:14142,15048077:14143,15048082:14144,15048098:14145,15048101:14146,15048103:14147,15048104:14148,15048107:14149,15048109:14150,15048110:14151,15048111:14152,15048112:14153,15048113:14154,15048115:14155,15048116:14156,15048117:14157,15048119:14158,15048121:14159,15048122:14160,15048123:14161,15048124:14162,15048126:14163,15048321:14164,15048323:14165,15048332:14166,15048340:14167,15048343:14168,15048345:14169,15048346:14170,15048348:14171,15048349:14172,15048350:14173,15048351:14174,15048353:14175,15048341:14176,15048359:14177,15048360:14178,15048361:14179,15048364:14180,15048376:14181,15048381:14182,15048583:14183,15048584:14184,15048588:14185,15048591:14186,15048597:14187,15048605:14188,15048606:14189,15048612:14190,15048614:14191,15048615:14192,15048617:14193,15048621:14194,15048624:14195,15048629:14196,15048630:14197,15048632:14198,15048637:14199,15048638:14200,15048639:14201,15048835:14202,15048836:14203,15048840:14204,15048841:14205,15048609:14206,15048844:14369,15048845:14370,15048859:14371,15048862:14372,15048863:14373,15048864:14374,15048870:14375,15048871:14376,15048877:14377,15048882:14378,15048889:14379,15048895:14380,15049097:14381,15049100:14382,15049101:14383,15049103:14384,15049104:14385,15049109:14386,15049119:14387,15049121:14388,15049124:14389,15049127:14390,15049128:14391,15049144:14392,15049148:14393,15049151:14394,15049344:14395,15049345:14396,15049351:14397,15049352:14398,15049353:14399,15049354:14400,15049356:14401,15049357:14402,15049359:14403,15049360:14404,15049364:14405,15049366:14406,15049373:14407,15049376:14408,15049377:14409,15049378:14410,15049382:14411,15049385:14412,15049393:14413,15049394:14414,15049604:14415,15049404:14416,15049602:14417,15049608:14418,15049613:14419,15049614:14420,15049616:14421,15049618:14422,15049620:14423,15049622:14424,15049626:14425,15049629:14426,15049633:14427,15049634:14428,15049641:14429,15049651:14430,15049861:14431,15049862:14432,15049867:14433,15049868:14434,15049874:14435,15049875:14436,15049876:14437,15243649:14438,15049885:14439,15049889:14440,15049891:14441,15049892:14442,15049896:14443,15049903:14444,15049904:14445,15049907:14446,15049909:14447,15049910:14448,15049919:14449,15050115:14450,15050118:14451,15050130:14452,15050131:14453,15050137:14454,15050139:14455,15050141:14456,15050142:14457,15050143:14458,15050145:14459,15050147:14460,15050155:14461,15050157:14462,15050159:14625,15050162:14626,15050165:14627,15050166:14628,15050169:14629,15050171:14630,15050172:14631,15050379:14632,15050380:14633,15050382:14634,15050386:14635,15050389:14636,15050391:14637,15050399:14638,15050404:14639,15050407:14640,15050413:14641,15050414:14642,15050415:14643,15050416:14644,15050419:14645,15050423:14646,15050426:14647,15050428:14648,15050625:14649,15050627:14650,15050628:14651,15050632:14652,15050634:14653,15050637:14654,15050642:14655,15050653:14656,15050654:14657,15050655:14658,15050659:14659,15050660:14660,15050663:14661,15050670:14662,15050671:14663,15050673:14664,15050674:14665,15050676:14666,15050679:14667,15050880:14668,15050884:14669,15050892:14670,15050893:14671,15050894:14672,15050898:14673,15050899:14674,15050910:14675,15050915:14676,15050916:14677,15050919:14678,15050920:14679,15050922:14680,15050925:14681,15050928:14682,15051140:14683,15051141:14684,15051143:14685,15051144:14686,15051148:14687,15051152:14688,15051157:14689,15051166:14690,15051171:14691,15051173:14692,15051175:14693,15051181:14694,15051191:14695,15051194:14696,15051195:14697,15051198:14698,15051403:14699,15051408:14700,15051411:14701,15051414:14702,15051417:14703,15051420:14704,15051422:14705,15051423:14706,15051424:14707,15051426:14708,15051431:14709,15051436:14710,15051441:14711,15051442:14712,15051443:14713,15051445:14714,15051448:14715,15051450:14716,15051451:14717,15051455:14718,15051652:14881,15051654:14882,15051656:14883,15051663:14884,15051674:14885,15051676:14886,15051680:14887,15051685:14888,15051690:14889,15051694:14890,15051701:14891,15051702:14892,15051709:14893,15051904:14894,15051905:14895,15051912:14896,15051927:14897,15051956:14898,15051929:14899,15051931:14900,15051933:14901,15051937:14902,15051941:14903,15051949:14904,15051960:14905,15052161:14906,15052171:14907,15052172:14908,15052178:14909,15052182:14910,15052190:14911,15052200:14912,15052206:14913,15052207:14914,15052220:14915,15052221:14916,15052222:14917,15052223:14918,15052417:14919,15052420:14920,15052422:14921,15052426:14922,15052430:14923,15052432:14924,15052433:14925,15052435:14926,15052436:14927,15052438:14928,15052456:14929,15052457:14930,15052460:14931,15052461:14932,15052463:14933,15052465:14934,15052466:14935,15052471:14936,15052474:14937,15052476:14938,15052672:14939,15052673:14940,15052685:14941,15052687:14942,15052694:14943,15052695:14944,15052696:14945,15052697:14946,15052698:14947,15052704:14948,15052719:14949,15052721:14950,15052724:14951,15052733:14952,15052940:14953,15052951:14954,15052958:14955,15052959:14956,15052963:14957,15052966:14958,15052969:14959,15052971:14960,15052972:14961,15052974:14962,15052976:14963,15052978:14964,15052981:14965,15052982:14966,15053209:14967,15053210:14968,15053212:14969,15053218:14970,15053219:14971,15053223:14972,15053224:14973,15053225:14974,15053229:15137,15053232:15138,15053236:15139,15053237:15140,15053242:15141,15053243:15142,15053244:15143,15053245:15144,15053447:15145,15053448:15146,15053450:15147,15053455:15148,15053458:15149,15053469:15150,15053471:15151,15053472:15152,15053474:15153,15053475:15154,15053478:15155,15053482:15156,15053490:15157,15053492:15158,15053493:15159,15053498:15160,15053705:15161,15053707:15162,15053714:15163,15053725:15164,15053719:15165,15053742:15166,15053745:15167,15053746:15168,15053748:15169,15053953:15170,15053958:15171,15053965:15172,15053970:15173,15053995:15174,15053987:15175,15053988:15176,15053990:15177,15053991:15178,15054001:15179,15054004:15180,15054009:15181,15054013:15182,15054015:15183,15054210:15184,15054211:15185,15054214:15186,15054216:15187,15054229:15188,15054225:15189,15054233:15190,15054218:15191,15054239:15192,15054240:15193,15054241:15194,15054242:15195,15054244:15196,15054250:15197,15054253:15198,15054256:15199,15054265:15200,15054266:15201,15054270:15202,15054271:15203,15054465:15204,15054467:15205,15054472:15206,15054474:15207,15054482:15208,15054483:15209,15054484:15210,15054485:15211,15054489:15212,15054491:15213,15054495:15214,15054496:15215,15054503:15216,15054507:15217,15054512:15218,15054516:15219,15054520:15220,15054521:15221,15054723:15222,15054727:15223,15054731:15224,15054736:15225,15054734:15226,15054744:15227,15054745:15228,15054752:15229,15054756:15230,15054761:15393,15054776:15394,15054777:15395,15054976:15396,15054983:15397,15054989:15398,15054994:15399,15054996:15400,15054997:15401,15055e3:15402,15055007:15403,15055008:15404,15055022:15405,15055016:15406,15055026:15407,15055029:15408,15055038:15409,15055243:15410,15055248:15411,15055241:15412,15055249:15413,15055254:15414,15055256:15415,15055259:15416,15055260:15417,15055262:15418,15055272:15419,15055274:15420,15055275:15421,15055276:15422,15055277:15423,15055278:15424,15055280:15425,15055488:15426,15055499:15427,15055502:15428,15055522:15429,15055524:15430,15055525:15431,15055528:15432,15055530:15433,15055532:15434,15055537:15435,15055539:15436,15055549:15437,15055550:15438,15055551:15439,15055750:15440,15055756:15441,15055755:15442,15055758:15443,15055761:15444,15055762:15445,15055764:15446,15055765:15447,15055772:15448,15055774:15449,15055781:15450,15055787:15451,15056002:15452,15056006:15453,15056007:15454,15056008:15455,15056014:15456,15056025:15457,15056028:15458,15056029:15459,15056033:15460,15056034:15461,15056035:15462,15056036:15463,15056040:15464,15056043:15465,15056044:15466,15056046:15467,15056048:15468,15056052:15469,15056054:15470,15056059:15471,15056061:15472,15056063:15473,15056256:15474,15056260:15475,15056261:15476,15056263:15477,15056269:15478,15056272:15479,15056276:15480,15056280:15481,15056283:15482,15056288:15483,15056291:15484,15056292:15485,15056295:15486,15056303:15649,15056306:15650,15056308:15651,15056309:15652,15056312:15653,15056314:15654,15056317:15655,15056318:15656,15056521:15657,15056525:15658,15056527:15659,15056534:15660,15056540:15661,15056541:15662,15056546:15663,15056551:15664,15056555:15665,15056548:15666,15056556:15667,15056559:15668,15056560:15669,15056561:15670,15056568:15671,15056772:15672,15056775:15673,15056776:15674,15056777:15675,15056779:15676,15056784:15677,15056785:15678,15056786:15679,15056787:15680,15056788:15681,15056798:15682,15056801:15683,15056802:15684,15056808:15685,15056809:15686,15056810:15687,15056812:15688,15056813:15689,15056814:15690,15056815:15691,15056818:15692,15056819:15693,15056822:15694,15056826:15695,15056828:15696,15106183:15697,15106186:15698,15106189:15699,15106195:15700,15106196:15701,15106199:15702,15106200:15703,15106202:15704,15106207:15705,15106212:15706,15106221:15707,15106227:15708,15106229:15709,15106432:15710,15106439:15711,15106440:15712,15106441:15713,15106444:15714,15106449:15715,15106452:15716,15106454:15717,15106455:15718,15106461:15719,15106465:15720,15106471:15721,15106481:15722,15106494:15723,15106495:15724,15106690:15725,15106694:15726,15106696:15727,15106698:15728,15106702:15729,15106705:15730,15106707:15731,15106709:15732,15106712:15733,15106717:15734,15106718:15735,15106722:15736,15106724:15737,15106725:15738,15106728:15739,15106736:15740,15106737:15741,15106743:15742,15106747:15905,15106750:15906,15106946:15907,15106948:15908,15106952:15909,15106953:15910,15106954:15911,15106955:15912,15106958:15913,15106959:15914,15106964:15915,15106965:15916,15106969:15917,15106971:15918,15106973:15919,15106974:15920,15106978:15921,15106981:15922,15106994:15923,15106997:15924,15107e3:15925,15107004:15926,15107005:15927,15107202:15928,15107207:15929,15107210:15930,15107212:15931,15107216:15932,15107217:15933,15107218:15934,15107219:15935,15107220:15936,15107222:15937,15107223:15938,15107225:15939,15107228:15940,15107230:15941,15107234:15942,15107242:15943,15107243:15944,15107248:15945,15107249:15946,15107253:15947,15107254:15948,15107255:15949,15107257:15950,15107457:15951,15107461:15952,15107462:15953,15107465:15954,15107486:15955,15107488:15956,15107500:15957,15107506:15958,15107512:15959,15107515:15960,15107516:15961,15107519:15962,15107712:15963,15107713:15964,15107715:15965,15107716:15966,15107723:15967,15107725:15968,15107730:15969,15107731:15970,15107735:15971,15107736:15972,15107740:15973,15107741:15974,15107743:15975,15107744:15976,15107749:15977,15107752:15978,15107754:15979,15107757:15980,15107768:15981,15107769:15982,15107772:15983,15107968:15984,15107969:15985,15107970:15986,15107982:15987,15107983:15988,15107989:15989,15107996:15990,15107997:15991,15107998:15992,15107999:15993,15108001:15994,15108002:15995,15108007:15996,15108009:15997,15108005:15998,15108012:16161,15108013:16162,15108015:16163,15108225:16164,15108227:16165,15108228:16166,15108231:16167,15108243:16168,15108245:16169,15108252:16170,15108256:16171,15108258:16172,15108259:16173,15108263:16174,15108265:16175,15108267:16176,15108281:16177,15108285:16178,15108482:16179,15108483:16180,15108484:16181,15108486:16182,15108492:16183,15108496:16184,15108497:16185,15108498:16186,15108500:16187,15108502:16188,15108506:16189,15108508:16190,15108516:16191,15108525:16192,15108527:16193,15108531:16194,15108538:16195,15108541:16196,15108749:16197,15108750:16198,15108751:16199,15108752:16200,15108774:16201,15108776:16202,15108787:16203,15108790:16204,15108791:16205,15108794:16206,15108798:16207,15108799:16208,15108996:16209,15109006:16210,15109013:16211,15109014:16212,15109018:16213,15109034:16214,15109042:16215,15109044:16216,15109052:16217,15109053:16218,15109251:16219,15109252:16220,15109258:16221,15109259:16222,15109261:16223,15109264:16224,15109267:16225,15109270:16226,15109272:16227,15109289:16228,15109290:16229,15109293:16230,15109301:16231,15109302:16232,15109305:16233,15109308:16234,15109505:16235,15109506:16236,15109507:16237,15109508:16238,15109510:16239,15109514:16240,15109515:16241,15109518:16242,15109522:16243,15109523:16244,15109524:16245,15109528:16246,15109531:16247,15109541:16248,15109542:16249,15109548:16250,15109549:16251,15109553:16252,15109556:16253,15109557:16254,15109560:16417,15109564:16418,15109565:16419,15109567:16420,15109762:16421,15109764:16422,15109767:16423,15109770:16424,15109776:16425,15109780:16426,15109781:16427,15109785:16428,15109786:16429,15109790:16430,15109796:16431,15109798:16432,15109805:16433,15109806:16434,15109807:16435,15109821:16436,15110017:16437,15110021:16438,15110024:16439,15110030:16440,15110033:16441,15110035:16442,15110036:16443,15110037:16444,15110044:16445,15110048:16446,15110053:16447,15110058:16448,15110060:16449,15110066:16450,15110067:16451,15110069:16452,15110072:16453,15110073:16454,15110281:16455,15110282:16456,15110288:16457,15110290:16458,15110292:16459,15110296:16460,15110302:16461,15110304:16462,15110306:16463,15110308:16464,15110309:16465,15110313:16466,15110314:16467,15110319:16468,15110320:16469,15110325:16470,15110333:16471,15110335:16472,15110539:16473,15110543:16474,15110545:16475,15110546:16476,15110547:16477,15110548:16478,15110554:16479,15110555:16480,15110556:16481,15110557:16482,15110559:16483,15110560:16484,15110561:16485,15110563:16486,15110573:16487,15110579:16488,15110580:16489,15110587:16490,15110589:16491,15110789:16492,15110791:16493,15110799:16494,15110800:16495,15110801:16496,15110808:16497,15110809:16498,15110811:16499,15110813:16500,15110815:16501,15110817:16502,15110819:16503,15110822:16504,15110824:16505,15110828:16506,15110835:16507,15110845:16508,15110846:16509,15110847:16510,15111044:16673,15111049:16674,15111050:16675,15111051:16676,15111052:16677,15111054:16678,15111056:16679,15111057:16680,15111061:16681,15111063:16682,15111076:16683,15111077:16684,15111081:16685,15111082:16686,15111085:16687,15111088:16688,15111093:16689,15111095:16690,15111099:16691,15111103:16692,15111297:16693,15111300:16694,15111304:16695,15111305:16696,15111306:16697,15111311:16698,15111315:16699,15111316:16700,15111318:16701,15111321:16702,15111323:16703,15111326:16704,15111327:16705,15111330:16706,15111334:16707,15111337:16708,15111342:16709,15111345:16710,15111354:16711,15111356:16712,15111357:16713,15111555:16714,15111559:16715,15111561:16716,15111568:16717,15111570:16718,15111572:16719,15111583:16720,15111584:16721,15111591:16722,15111595:16723,15111610:16724,15111613:16725,15111809:16726,15111813:16727,15111818:16728,15111826:16729,15111829:16730,15111832:16731,15111837:16732,15111840:16733,15111843:16734,15111846:16735,15111854:16736,15111858:16737,15111859:16738,15111860:16739,15111871:16740,15112066:16741,15112072:16742,15112073:16743,15112078:16744,15112080:16745,15112084:16746,15112086:16747,15112088:16748,15112095:16749,15112112:16750,15112114:16751,15112116:16752,15112117:16753,15112121:16754,15112126:16755,15112127:16756,15112320:16757,15112324:16758,15112328:16759,15112329:16760,15112333:16761,15112337:16762,15112338:16763,15112341:16764,15112342:16765,15112349:16766,15112350:16929,15112353:16930,15112354:16931,15112355:16932,15112356:16933,15112358:16934,15112361:16935,15112362:16936,15112363:16937,15112364:16938,15112366:16939,15112368:16940,15112369:16941,15112371:16942,15112377:16943,15112375:16944,15112576:16945,15112581:16946,15112582:16947,15112586:16948,15112588:16949,15112593:16950,15112590:16951,15112599:16952,15112600:16953,15112601:16954,15112603:16955,15112604:16956,15112608:16957,15112609:16958,15113147:16959,15112618:16960,15112619:16961,15112620:16962,15112638:16963,15112627:16964,15112629:16965,15112639:16966,15112631:16967,15112632:16968,15112633:16969,15112635:16970,15112832:16971,15112636:16972,15112843:16973,15112844:16974,15112845:16975,15112848:16976,15112850:16977,15112857:16978,15112858:16979,15112859:16980,15112860:16981,15112863:16982,15112864:16983,15112868:16984,15112877:16985,15112881:16986,15112882:16987,15112885:16988,15112891:16989,15112895:16990,15113088:16991,15113090:16992,15113091:16993,15113096:16994,15113100:16995,15113102:16996,15113103:16997,15113108:16998,15113115:16999,15113119:17e3,15113128:17001,15113131:17002,15113132:17003,15113134:17004,15113146:17005,15113349:17006,15113351:17007,15113358:17008,15113363:17009,15113369:17010,15113372:17011,15113376:17012,15113378:17013,15113395:17014,15113406:17015,15113605:17016,15113607:17017,15113608:17018,15113612:17019,15113620:17020,15113621:17021,15113629:17022,15113638:17185,15113644:17186,15113646:17187,15113652:17188,15113654:17189,15113659:17190,15113857:17191,15113860:17192,15113870:17193,15113871:17194,15113873:17195,15113875:17196,15113878:17197,15113880:17198,15113881:17199,15113883:17200,15113904:17201,15113905:17202,15113906:17203,15113909:17204,15113915:17205,15113916:17206,15113917:17207,15114169:17208,15114112:17209,15114114:17210,15114115:17211,15114117:17212,15114120:17213,15114121:17214,15114130:17215,15114135:17216,15114137:17217,15114140:17218,15114145:17219,15114150:17220,15114160:17221,15114162:17222,15114166:17223,15114167:17224,15114642:17225,15114388:17226,15114393:17227,15114397:17228,15114399:17229,15114408:17230,15114407:17231,15114412:17232,15114413:17233,15114415:17234,15114416:17235,15114417:17236,15114419:17237,15114427:17238,15114431:17239,15114628:17240,15114629:17241,15114634:17242,15114636:17243,15114645:17244,15114647:17245,15114648:17246,15114651:17247,15114667:17248,15114670:17249,15114671:17250,15114672:17251,15114673:17252,15114674:17253,15114677:17254,15114681:17255,15114682:17256,15114683:17257,15114684:17258,15114882:17259,15114884:17260,15114886:17261,15114888:17262,15114902:17263,15114904:17264,15114906:17265,15114908:17266,15114913:17267,15114915:17268,15114917:17269,15114921:17270,15114922:17271,15114926:17272,15114930:17273,15114939:17274,15115141:17275,15115144:17276,15115148:17277,15115151:17278,15115152:17441,15115153:17442,15115155:17443,15115158:17444,15115161:17445,15115164:17446,15115165:17447,15115173:17448,15115176:17449,15115178:17450,15115179:17451,15115180:17452,15115181:17453,15115184:17454,15115185:17455,15115189:17456,15115190:17457,15115195:17458,15115196:17459,15115197:17460,15115398:17461,15115401:17462,15115402:17463,15115408:17464,15115409:17465,15115411:17466,15115414:17467,15115415:17468,15115441:17469,15115443:17470,15115445:17471,15115448:17472,15115451:17473,15115650:17474,15115653:17475,15115657:17476,15115662:17477,15115671:17478,15115675:17479,15115683:17480,15115684:17481,15115685:17482,15115686:17483,15115688:17484,15115689:17485,15115692:17486,15115696:17487,15115697:17488,15115698:17489,15115706:17490,15115707:17491,15115711:17492,15115904:17493,15115917:17494,15115922:17495,15115926:17496,15115928:17497,15115937:17498,15115941:17499,15115942:17500,15115944:17501,15115947:17502,15115949:17503,15115951:17504,15115959:17505,15115960:17506,15115962:17507,15115964:17508,15116165:17509,15116168:17510,15116177:17511,15116182:17512,15116183:17513,15116194:17514,15116197:17515,15116206:17516,15116207:17517,15116209:17518,15116211:17519,15116213:17520,15116222:17521,15116416:17522,15116417:17523,15116419:17524,15116431:17525,15116433:17526,15116437:17527,15116442:17528,15116445:17529,15116448:17530,15116452:17531,15116456:17532,15116464:17533,15116466:17534,15116468:17697,15116471:17698,15116475:17699,15116478:17700,15116479:17701,15116677:17702,15116678:17703,15116681:17704,15116682:17705,15116686:17706,15116688:17707,15116689:17708,15116690:17709,15116693:17710,15116694:17711,15116699:17712,15116708:17713,15116711:17714,15116714:17715,15116721:17716,15116723:17717,15116734:17718,15116929:17719,15116931:17720,15116934:17721,15116935:17722,15116937:17723,15116939:17724,15116945:17725,15116955:17726,15116957:17727,15116958:17728,15116959:17729,15116965:17730,15116971:17731,15116975:17732,15116976:17733,15116977:17734,15116980:17735,15116989:17736,15116990:17737,15116991:17738,15117190:17739,15117193:17740,15117192:17741,15117196:17742,15117200:17743,15117204:17744,15117205:17745,15117206:17746,15117212:17747,15117213:17748,15117220:17749,15117223:17750,15117228:17751,15117232:17752,15117233:17753,15117234:17754,15117244:17755,15117245:17756,15117442:17757,15117443:17758,15117446:17759,15117447:17760,15117449:17761,15117455:17762,15117456:17763,15117457:17764,15117463:17765,15117467:17766,15117470:17767,15117476:17768,15117480:17769,15117483:17770,15117484:17771,15117487:17772,15117493:17773,15117494:17774,15117499:17775,15117503:17776,15117702:17777,15117706:17778,15117709:17779,15117714:17780,15117718:17781,15117720:17782,15117725:17783,15117728:17784,15117735:17785,15117739:17786,15117742:17787,15117744:17788,15117749:17789,15117757:17790,15117758:17953,15117954:17954,15117957:17955,15117975:17956,15117979:17957,15117983:17958,15117984:17959,15117986:17960,15117987:17961,15117992:17962,15117993:17963,15117996:17964,15117997:17965,15117998:17966,15118e3:17967,15118008:17968,15118009:17969,15118013:17970,15118014:17971,15118211:17972,15118212:17973,15118217:17974,15118220:17975,15118230:17976,15118234:17977,15118241:17978,15118243:17979,15118246:17980,15118247:17981,15118254:17982,15118257:17983,15118263:17984,15118265:17985,15118271:17986,15118466:17987,15118468:17988,15118469:17989,15118473:17990,15118477:17991,15118478:17992,15118480:17993,15118482:17994,15118489:17995,15118495:17996,15118502:17997,15118503:17998,15118504:17999,15118508:18e3,15118510:18001,15118515:18002,15118517:18003,15118518:18004,15118522:18005,15118523:18006,15118527:18007,15118730:18008,15118731:18009,15118733:18010,15118735:18011,15118738:18012,15118740:18013,15118745:18014,15118747:18015,15118748:18016,15118763:18017,15118765:18018,15118767:18019,15118772:18020,15118774:18021,15118776:18022,15118777:18023,15118779:18024,15118981:18025,15118982:18026,15118983:18027,15118985:18028,15118996:18029,15118997:18030,15118999:18031,15119e3:18032,15119004:18033,15119007:18034,15119024:18035,15119026:18036,15119028:18037,15119234:18038,15119238:18039,15119245:18040,15119247:18041,15119248:18042,15119249:18043,15119250:18044,15119252:18045,15119254:18046,15119258:18209,15119260:18210,15119264:18211,15119271:18212,15119273:18213,15119275:18214,15119276:18215,15119278:18216,15119282:18217,15119284:18218,15119492:18219,15119495:18220,15119498:18221,15119502:18222,15119503:18223,15119505:18224,15119507:18225,15119514:18226,15119526:18227,15119527:18228,15119528:18229,15118759:18230,15119534:18231,15119535:18232,15119537:18233,15119545:18234,15119548:18235,15119551:18236,15119767:18237,15119774:18238,15119775:18239,15119777:18240,15119781:18241,15119783:18242,15119791:18243,15119792:18244,15119804:18245,15120002:18246,15120007:18247,15120017:18248,15120018:18249,15120020:18250,15120022:18251,15120023:18252,15120024:18253,15120042:18254,15120044:18255,15120052:18256,15120055:18257,15120057:18258,15120061:18259,15120063:18260,15120260:18261,15120264:18262,15120266:18263,15120270:18264,15120271:18265,15120278:18266,15120283:18267,15120285:18268,15120287:18269,15120288:18270,15120290:18271,15120293:18272,15120297:18273,15120303:18274,15120304:18275,15120308:18276,15120310:18277,15120316:18278,15120512:18279,15120516:18280,15120542:18281,15120546:18282,15120551:18283,15120562:18284,15120566:18285,15120569:18286,15120571:18287,15120572:18288,15120772:18289,15120773:18290,15120776:18291,15120777:18292,15120779:18293,15120783:18294,15120785:18295,15120786:18296,15120787:18297,15120788:18298,15120791:18299,15120796:18300,15120797:18301,15120798:18302,15120802:18465,15120803:18466,15120808:18467,15120819:18468,15120827:18469,15120829:18470,15121037:18471,15121043:18472,15121049:18473,15121056:18474,15121063:18475,15121069:18476,15121070:18477,15121073:18478,15121075:18479,15121083:18480,15121087:18481,15121280:18482,15121281:18483,15121283:18484,15121287:18485,15121288:18486,15121290:18487,15121293:18488,15121294:18489,15121295:18490,15121323:18491,15121325:18492,15121326:18493,15121337:18494,15121339:18495,15121341:18496,15121540:18497,15121544:18498,15121546:18499,15121548:18500,15121549:18501,15121558:18502,15121560:18503,15121562:18504,15121563:18505,15121574:18506,15121577:18507,15121578:18508,15121583:18509,15121584:18510,15121587:18511,15121590:18512,15121595:18513,15121596:18514,15121581:18515,15121807:18516,15121809:18517,15121810:18518,15121811:18519,15121815:18520,15121817:18521,15121818:18522,15121821:18523,15121822:18524,15121825:18525,15121826:18526,15121832:18527,15121836:18528,15121853:18529,15121854:18530,15122051:18531,15122055:18532,15122056:18533,15122059:18534,15122060:18535,15122061:18536,15122064:18537,15122066:18538,15122067:18539,15122068:18540,15122070:18541,15122074:18542,15122079:18543,15122080:18544,15122085:18545,15122086:18546,15122087:18547,15122088:18548,15122094:18549,15122095:18550,15122096:18551,15122101:18552,15122102:18553,15122108:18554,15122309:18555,15122311:18556,15122312:18557,15122314:18558,15122330:18721,15122334:18722,15122344:18723,15122345:18724,15122352:18725,15122357:18726,15122361:18727,15122364:18728,15122365:18729,15171712:18730,15171717:18731,15171718:18732,15171719:18733,15171725:18734,15171735:18735,15171744:18736,15171747:18737,15171759:18738,15171764:18739,15171767:18740,15171769:18741,15171772:18742,15171971:18743,15171972:18744,15171976:18745,15171977:18746,15171978:18747,15171979:18748,15171988:18749,15171989:18750,15171997:18751,15171998:18752,15171982:18753,15172004:18754,15172005:18755,15172012:18756,15172014:18757,15172021:18758,15172022:18759,15172030:18760,15172225:18761,15172229:18762,15172230:18763,15172244:18764,15172245:18765,15172246:18766,15172247:18767,15172248:18768,15172251:18769,15172260:18770,15172267:18771,15172272:18772,15172273:18773,15172276:18774,15172279:18775,15172490:18776,15172497:18777,15172499:18778,15172500:18779,15172501:18780,15172502:18781,15172504:18782,15172508:18783,15172516:18784,15172538:18785,15172739:18786,15172740:18787,15172741:18788,15172742:18789,15172743:18790,15172747:18791,15172748:18792,15172751:18793,15172766:18794,15172768:18795,15172779:18796,15172781:18797,15172783:18798,15172784:18799,15172785:18800,15172792:18801,15172993:18802,15172997:18803,15172998:18804,15172999:18805,15173002:18806,15173003:18807,15173008:18808,15173010:18809,15173015:18810,15173018:18811,15173020:18812,15173022:18813,15173024:18814,15173032:18977,15173049:18978,15173248:18979,15173253:18980,15173255:18981,15173260:18982,15173266:18983,15173274:18984,15173275:18985,15173280:18986,15173282:18987,15173295:18988,15173296:18989,15173298:18990,15173299:18991,15173306:18992,15173311:18993,15173504:18994,15173505:18995,15173508:18996,15173515:18997,15173516:18998,15173523:18999,15173526:19e3,15173529:19001,15173530:19002,15173532:19003,15173560:19004,15173566:19005,15173760:19006,15173767:19007,15173768:19008,15173769:19009,15173779:19010,15173783:19011,15173786:19012,15173789:19013,15173791:19014,15173796:19015,15173803:19016,15173807:19017,15173812:19018,15173816:19019,15173817:19020,15174017:19021,15174018:19022,15174019:19023,15174021:19024,15174030:19025,15174031:19026,15174032:19027,15174035:19028,15174037:19029,15174038:19030,15174042:19031,15174044:19032,15174046:19033,15174048:19034,15174051:19035,15174056:19036,15174059:19037,15174062:19038,15174063:19039,15174065:19040,15174071:19041,15174072:19042,15174075:19043,15174076:19044,15174079:19045,15174276:19046,15174281:19047,15174285:19048,15174286:19049,15174291:19050,15174299:19051,15174312:19052,15174317:19053,15174318:19054,15174321:19055,15174324:19056,15174334:19057,15174529:19058,15174535:19059,15174537:19060,15174540:19061,15174549:19062,15174550:19063,15174552:19064,15174559:19065,15174565:19066,15174579:19067,15174580:19068,15174586:19069,15174587:19070,15174590:19233,15174786:19234,15174788:19235,15174789:19236,15174791:19237,15174795:19238,15174797:19239,15174802:19240,15174803:19241,15174808:19242,15174809:19243,15174814:19244,15174818:19245,15174820:19246,15174823:19247,15174824:19248,15174828:19249,15174833:19250,15174834:19251,15174837:19252,15174842:19253,15174843:19254,15174845:19255,15175043:19256,15175053:19257,15175056:19258,15175058:19259,15175062:19260,15175064:19261,15175069:19262,15175070:19263,15175071:19264,15175072:19265,15175078:19266,15175079:19267,15175081:19268,15175083:19269,15175084:19270,15175086:19271,15175087:19272,15175089:19273,15175095:19274,15175097:19275,15175100:19276,15175296:19277,15175297:19278,15175299:19279,15175301:19280,15175302:19281,15175310:19282,15175312:19283,15175315:19284,15175317:19285,15175319:19286,15175320:19287,15175324:19288,15175326:19289,15175327:19290,15175328:19291,15175330:19292,15175333:19293,15175334:19294,15175338:19295,15175339:19296,15175341:19297,15175349:19298,15175351:19299,15175353:19300,15175356:19301,15175357:19302,15175359:19303,15175557:19304,15175558:19305,15175561:19306,15175563:19307,15175564:19308,15175567:19309,15175570:19310,15175571:19311,15175574:19312,15175577:19313,15175581:19314,15175585:19315,15175587:19316,15175590:19317,15175591:19318,15175593:19319,15175604:19320,15175605:19321,15175607:19322,15175609:19323,15175610:19324,15175611:19325,15175613:19326,15175615:19489,15175808:19490,15175809:19491,15175812:19492,15175815:19493,15175818:19494,15175825:19495,15175834:19496,15175835:19497,15175844:19498,15175846:19499,15175848:19500,15175849:19501,15175850:19502,15175851:19503,15175852:19504,15175853:19505,15175854:19506,15175855:19507,15175856:19508,15175857:19509,15175865:19510,15176064:19511,15176067:19512,15176068:19513,15176070:19514,15176071:19515,15176075:19516,15176077:19517,15176081:19518,15176082:19519,15176087:19520,15176093:19521,15176098:19522,15176102:19523,15176103:19524,15176104:19525,15176107:19526,15176109:19527,15176110:19528,15176113:19529,15176114:19530,15176320:19531,15176321:19532,15176325:19533,15176326:19534,15176327:19535,15176329:19536,15176335:19537,15176336:19538,15176337:19539,15176338:19540,15176344:19541,15176345:19542,15176346:19543,15176348:19544,15176351:19545,15176352:19546,15176353:19547,15176355:19548,15176358:19549,15176360:19550,15176361:19551,15176362:19552,15176363:19553,15176366:19554,15176367:19555,15176369:19556,15176370:19557,15176373:19558,15176377:19559,15176379:19560,15176383:19561,15176584:19562,15176585:19563,15176588:19564,15176592:19565,15176595:19566,15176600:19567,15176602:19568,15176603:19569,15176606:19570,15176607:19571,15176612:19572,15176616:19573,15176618:19574,15176619:19575,15176623:19576,15176628:19577,15176634:19578,15176635:19579,15176636:19580,15176639:19581,15176838:19582,15176850:19745,15176854:19746,15176855:19747,15176864:19748,15176865:19749,15176868:19750,15176871:19751,15176873:19752,15176874:19753,15176879:19754,15176886:19755,15176889:19756,15176893:19757,15176894:19758,15176895:19759,15177088:19760,15177091:19761,15177095:19762,15177096:19763,15177102:19764,15177104:19765,15177106:19766,15177111:19767,15177118:19768,15177119:19769,15177121:19770,15177135:19771,15177137:19772,15177145:19773,15177146:19774,15177147:19775,15177148:19776,15177149:19777,15177150:19778,15177345:19779,15177349:19780,15177360:19781,15177362:19782,15177363:19783,15177365:19784,15177369:19785,15177372:19786,15177378:19787,15177380:19788,15177396:19789,15177402:19790,15177407:19791,15177600:19792,15177601:19793,15177604:19794,15177606:19795,15177612:19796,15177614:19797,15177615:19798,15177623:19799,15177628:19800,15177631:19801,15177632:19802,15177633:19803,15177636:19804,15177639:19805,15177644:19806,15177646:19807,15177647:19808,15177649:19809,15177657:19810,15177856:19811,15177858:19812,15177859:19813,15177860:19814,15177863:19815,15177864:19816,15177866:19817,15177868:19818,15177871:19819,15177874:19820,15177875:19821,15177877:19822,15177878:19823,15177881:19824,15177883:19825,15177884:19826,15177885:19827,15177886:19828,15177891:19829,15177893:19830,15177894:19831,15177897:19832,15177901:19833,15177906:19834,15177907:19835,15177909:19836,15177912:19837,15177913:19838,15177914:20001,15177916:20002,15178122:20003,15178112:20004,15178113:20005,15178115:20006,15178116:20007,15178117:20008,15178121:20009,15178123:20010,15178133:20011,15178137:20012,15178143:20013,15178148:20014,15178149:20015,15178157:20016,15178158:20017,15178159:20018,15178161:20019,15178164:20020,15178369:20021,15178373:20022,15178380:20023,15178381:20024,15178389:20025,15178395:20026,15178396:20027,15178397:20028,15178399:20029,15178400:20030,15178402:20031,15178403:20032,15178404:20033,15178405:20034,15178406:20035,15178407:20036,15178408:20037,15178410:20038,15178413:20039,15178429:20040,15178625:20041,15178629:20042,15178633:20043,15178635:20044,15178636:20045,15178638:20046,15178644:20047,15178649:20048,15178656:20049,15178662:20050,15178664:20051,15178668:20052,15178672:20053,15178673:20054,15178678:20055,15178681:20056,15178684:20057,15178880:20058,15178886:20059,15178890:20060,15178894:20061,15178898:20062,15178900:20063,15178901:20064,15178903:20065,15178905:20066,15178906:20067,15178908:20068,15178914:20069,15178920:20070,15178925:20071,15178926:20072,15178927:20073,15178932:20074,15178933:20075,15178934:20076,15178937:20077,15178941:20078,15178942:20079,15179138:20080,15179141:20081,15179142:20082,15179146:20083,15179149:20084,15179150:20085,15179151:20086,15179154:20087,15179158:20088,15179159:20089,15179164:20090,15179166:20091,15179167:20092,15179168:20093,15179170:20094,15179172:20257,15179175:20258,15179178:20259,15179180:20260,15179184:20261,15179186:20262,15179187:20263,15179188:20264,15179194:20265,15179197:20266,15179392:20267,15179396:20268,15179404:20269,15179405:20270,15179412:20271,15179413:20272,15179414:20273,15179418:20274,15179423:20275,15179426:20276,15179431:20277,15179434:20278,15179438:20279,15179439:20280,15179441:20281,15179445:20282,15179454:20283,15179651:20284,15179657:20285,15179665:20286,15179666:20287,15179669:20288,15179673:20289,15179678:20290,15179679:20291,15179680:20292,15179684:20293,15179686:20294,15179690:20295,15179692:20296,15179696:20297,15179697:20298,15179700:20299,15179704:20300,15179707:20301,15179909:20302,15179910:20303,15179913:20304,15179917:20305,15179918:20306,15179921:20307,15179933:20308,15179937:20309,15179938:20310,15179939:20311,15179949:20312,15179950:20313,15179952:20314,15179957:20315,15179959:20316,15180163:20317,15180164:20318,15180167:20319,15180168:20320,15180172:20321,15180174:20322,15180178:20323,15180188:20324,15180190:20325,15180192:20326,15180193:20327,15180195:20328,15180196:20329,15180200:20330,15180202:20331,15180206:20332,15180218:20333,15180222:20334,15180426:20335,15180431:20336,15180436:20337,15180440:20338,15180449:20339,15180445:20340,15180446:20341,15180447:20342,15180452:20343,15180456:20344,15180460:20345,15180461:20346,15180464:20347,15180465:20348,15180466:20349,15180467:20350,15180475:20513,15180477:20514,15180479:20515,15180679:20516,15180680:20517,15180681:20518,15180684:20519,15180686:20520,15180690:20521,15180691:20522,15180693:20523,15180694:20524,15180708:20525,15180699:20526,15180703:20527,15180704:20528,15180705:20529,15180710:20530,15180714:20531,15180722:20532,15180723:20533,15180928:20534,15180726:20535,15180727:20536,15180730:20537,15180731:20538,15180735:20539,15180934:20540,15180940:20541,15180944:20542,15180954:20543,15180956:20544,15180958:20545,15180959:20546,15180960:20547,15180965:20548,15180967:20549,15180969:20550,15180973:20551,15180977:20552,15180980:20553,15180981:20554,15180987:20555,15180989:20556,15180991:20557,15181188:20558,15181189:20559,15181190:20560,15181194:20561,15181195:20562,15181199:20563,15181201:20564,15181204:20565,15181208:20566,15181211:20567,15181212:20568,15181223:20569,15181225:20570,15181227:20571,15181234:20572,15181241:20573,15181243:20574,15181244:20575,15181246:20576,15181451:20577,15181452:20578,15181457:20579,15181459:20580,15181460:20581,15181461:20582,15181462:20583,15181464:20584,15181467:20585,15181468:20586,15181473:20587,15181480:20588,15181481:20589,15181483:20590,15181487:20591,15181489:20592,15181492:20593,15181496:20594,15181499:20595,15181698:20596,15181700:20597,15181703:20598,15181704:20599,15181706:20600,15181711:20601,15181716:20602,15181718:20603,15181722:20604,15181725:20605,15181726:20606,15181728:20769,15181730:20770,15181733:20771,15181738:20772,15181739:20773,15181741:20774,15181745:20775,15181752:20776,15181756:20777,15181954:20778,15181955:20779,15181959:20780,15181961:20781,15181962:20782,15181964:20783,15181969:20784,15181973:20785,15181979:20786,15181982:20787,15181985:20788,15181991:20789,15181995:20790,15181997:20791,15181999:20792,15182e3:20793,15182004:20794,15182005:20795,15182008:20796,15182009:20797,15182010:20798,15182212:20799,15182213:20800,15182215:20801,15182216:20802,15182220:20803,15182229:20804,15182230:20805,15182233:20806,15182236:20807,15182237:20808,15182239:20809,15182240:20810,15182245:20811,15182247:20812,15182250:20813,15182253:20814,15182261:20815,15182264:20816,15182270:20817,15182464:20818,15182466:20819,15182469:20820,15182470:20821,15182474:20822,15182475:20823,15182480:20824,15182481:20825,15182484:20826,15182494:20827,15182496:20828,15182499:20829,15182508:20830,15182515:20831,15182517:20832,15182521:20833,15182523:20834,15182524:20835,15182726:20836,15182729:20837,15182732:20838,15182734:20839,15182737:20840,15182747:20841,15182760:20842,15182761:20843,15182763:20844,15182764:20845,15182769:20846,15182772:20847,15182779:20848,15182781:20849,15182782:20850,15182983:20851,15182996:20852,15183007:20853,15183011:20854,15183015:20855,15183017:20856,15183018:20857,15183019:20858,15183021:20859,15183022:20860,15183023:20861,15183024:20862,15183025:21025,15183028:21026,15183037:21027,15183039:21028,15183232:21029,15183233:21030,15183239:21031,15183246:21032,15183253:21033,15183264:21034,15183268:21035,15183270:21036,15183273:21037,15183274:21038,15183277:21039,15183279:21040,15183282:21041,15183283:21042,15183287:21043,15183492:21044,15183497:21045,15183502:21046,15183504:21047,15183505:21048,15183510:21049,15183515:21050,15183518:21051,15183520:21052,15183525:21053,15183532:21054,15183535:21055,15183536:21056,15183538:21057,15183541:21058,15183542:21059,15183546:21060,15183547:21061,15183548:21062,15183549:21063,15183746:21064,15183749:21065,15183752:21066,15183754:21067,15183764:21068,15183766:21069,15183767:21070,15183769:21071,15183770:21072,15183771:21073,15183784:21074,15183786:21075,15183794:21076,15183796:21077,15183797:21078,15183800:21079,15183801:21080,15183802:21081,15183804:21082,15183806:21083,15184001:21084,15184002:21085,15184003:21086,15184004:21087,15184006:21088,15184009:21089,15184011:21090,15184012:21091,15184014:21092,15184015:21093,15184025:21094,15184027:21095,15184032:21096,15184037:21097,15184038:21098,15184040:21099,15184044:21100,15184049:21101,15184051:21102,15184052:21103,15184054:21104,15184057:21105,15184058:21106,15184262:21107,15184266:21108,15184277:21109,15184273:21110,15184274:21111,15184275:21112,15184281:21113,15184282:21114,15184283:21115,15184284:21116,15184285:21117,15184286:21118,15184289:21281,15184291:21282,15184295:21283,15184297:21284,15184301:21285,15184302:21286,15184304:21287,15184306:21288,15184313:21289,15184316:21290,15184317:21291,15184518:21292,15184519:21293,15184527:21294,15184532:21295,15184542:21296,15184544:21297,15184550:21298,15184560:21299,15184566:21300,15184567:21301,15184570:21302,15184571:21303,15184572:21304,15184575:21305,15184772:21306,15184775:21307,15184776:21308,15184777:21309,15184781:21310,15184783:21311,15184787:21312,15184788:21313,15184789:21314,15184791:21315,15184793:21316,15184794:21317,15184797:21318,15184806:21319,15184809:21320,15184811:21321,15184821:21322,15185027:21323,15185031:21324,15185032:21325,15185033:21326,15185039:21327,15185041:21328,15185042:21329,15185043:21330,15185046:21331,15185053:21332,15185054:21333,15185059:21334,15185062:21335,15185066:21336,15185069:21337,15185073:21338,15185084:21339,15185085:21340,15185086:21341,15185280:21342,15185281:21343,15185287:21344,15185288:21345,15185293:21346,15185297:21347,15185299:21348,15185303:21349,15185305:21350,15185306:21351,15185308:21352,15185309:21353,15185317:21354,15185319:21355,15185322:21356,15185328:21357,15185336:21358,15185338:21359,15185339:21360,15185343:21361,15185537:21362,15185538:21363,15185539:21364,15185541:21365,15185542:21366,15185544:21367,15185547:21368,15185548:21369,15185549:21370,15185553:21371,15185558:21372,15185559:21373,15185565:21374,15185566:21537,15185574:21538,15185575:21539,15185578:21540,15185587:21541,15185590:21542,15185591:21543,15185593:21544,15185794:21545,15185795:21546,15185796:21547,15185797:21548,15185798:21549,15185804:21550,15185805:21551,15185806:21552,15185815:21553,15185817:21554,15186048:21555,15185826:21556,15185829:21557,15185830:21558,15185834:21559,15185835:21560,15185837:21561,15185841:21562,15185845:21563,15185846:21564,15185849:21565,15185850:21566,15186056:21567,15186064:21568,15186065:21569,15186069:21570,15186071:21571,15186076:21572,15186077:21573,15186080:21574,15186087:21575,15186088:21576,15186092:21577,15186093:21578,15186095:21579,15186099:21580,15186102:21581,15186111:21582,15186308:21583,15186309:21584,15186311:21585,15186318:21586,15186320:21587,15186322:21588,15186328:21589,15186335:21590,15186337:21591,15186338:21592,15186341:21593,15186347:21594,15186350:21595,15186351:21596,15186355:21597,15186360:21598,15186366:21599,15186561:21600,15186566:21601,15186567:21602,15186570:21603,15186573:21604,15186577:21605,15186581:21606,15186584:21607,15186586:21608,15186589:21609,15186590:21610,15187132:21611,15187131:21612,15187133:21613,15187134:21614,15187135:21615,15187331:21616,15187332:21617,15187335:21618,15187343:21619,15187346:21620,15187347:21621,15187355:21622,15187356:21623,15187357:21624,15187361:21625,15187363:21626,15187364:21627,15187365:21628,15187366:21629,15187373:21630,15187377:21793,15187389:21794,15187390:21795,15187391:21796,15187584:21797,15187595:21798,15187597:21799,15187599:21800,15187600:21801,15187601:21802,15187606:21803,15187607:21804,15187612:21805,15187617:21806,15187618:21807,15187622:21808,15187626:21809,15187629:21810,15187636:21811,15187644:21812,15187647:21813,15187840:21814,15187843:21815,15187848:21816,15187854:21817,15187855:21818,15187867:21819,15187871:21820,15187875:21821,15187877:21822,15187880:21823,15187884:21824,15187886:21825,15187887:21826,15187890:21827,15187898:21828,15187901:21829,15187902:21830,15187903:21831,15237255:21832,15237256:21833,15237258:21834,15237261:21835,15237262:21836,15237263:21837,15237265:21838,15237267:21839,15237268:21840,15237270:21841,15237277:21842,15237278:21843,15237279:21844,15237280:21845,15237284:21846,15237286:21847,15237292:21848,15237294:21849,15237296:21850,15237300:21851,15237301:21852,15237303:21853,15237305:21854,15237306:21855,15237308:21856,15237310:21857,15237504:21858,15237508:21859,15237536:21860,15237540:21861,15237542:21862,15237549:21863,15237553:21864,15237557:21865,15237761:21866,15237768:21867,15237774:21868,15237788:21869,15237790:21870,15237798:21871,15237799:21872,15237803:21873,15237816:21874,15237817:21875,15238024:21876,15238029:21877,15238031:21878,15238034:21879,15238036:21880,15238037:21881,15238039:21882,15238040:21883,15238048:21884,15238061:21885,15238062:21886,15238064:22049,15238066:22050,15238067:22051,15238070:22052,15238073:22053,15238074:22054,15238078:22055,15238275:22056,15238283:22057,15238294:22058,15238295:22059,15238296:22060,15238300:22061,15238302:22062,15238304:22063,15238308:22064,15238311:22065,15238316:22066,15238320:22067,15238325:22068,15238330:22069,15238332:22070,15238533:22071,15238535:22072,15238538:22073,15238540:22074,15238546:22075,15238551:22076,15238560:22077,15238561:22078,15238567:22079,15238568:22080,15238569:22081,15238573:22082,15238575:22083,15238583:22084,15238785:22085,15238800:22086,15238788:22087,15238789:22088,15238790:22089,15238795:22090,15238798:22091,15238806:22092,15238808:22093,15238811:22094,15238814:22095,15238818:22096,15238830:22097,15238834:22098,15238836:22099,15238843:22100,15239051:22101,15239043:22102,15239045:22103,15239050:22104,15239054:22105,15239055:22106,15239061:22107,15239063:22108,15239067:22109,15239069:22110,15239070:22111,15239073:22112,15239076:22113,15239083:22114,15239084:22115,15239088:22116,15239089:22117,15239090:22118,15239093:22119,15239094:22120,15239096:22121,15239097:22122,15239101:22123,15239103:22124,15239296:22125,15239299:22126,15239311:22127,15239315:22128,15239316:22129,15239321:22130,15239322:22131,15239325:22132,15239329:22133,15239330:22134,15239336:22135,15239346:22136,15239348:22137,15239354:22138,15239555:22139,15239556:22140,15239557:22141,15239558:22142,15239563:22305,15239566:22306,15239567:22307,15239569:22308,15239574:22309,15239580:22310,15239584:22311,15239587:22312,15239591:22313,15239597:22314,15239604:22315,15239611:22316,15239613:22317,15239615:22318,15239808:22319,15239809:22320,15239811:22321,15239812:22322,15239815:22323,15239817:22324,15239818:22325,15239822:22326,15239825:22327,15239828:22328,15239830:22329,15239832:22330,15239834:22331,15239835:22332,15239840:22333,15239841:22334,15239843:22335,15239844:22336,15239847:22337,15239848:22338,15239849:22339,15239850:22340,15239854:22341,15239856:22342,15239858:22343,15239860:22344,15239863:22345,15239866:22346,15239868:22347,15239870:22348,15239871:22349,15240070:22350,15240080:22351,15240085:22352,15240090:22353,15240096:22354,15240098:22355,15240100:22356,15240104:22357,15240106:22358,15240109:22359,15240111:22360,15240118:22361,15240119:22362,15240125:22363,15240126:22364,15240320:22365,15240321:22366,15240327:22367,15240328:22368,15240330:22369,15240331:22370,15240596:22371,15240347:22372,15240349:22373,15240350:22374,15240351:22375,15240353:22376,15240354:22377,15240364:22378,15240365:22379,15240366:22380,15240368:22381,15240371:22382,15240375:22383,15240378:22384,15240380:22385,15240381:22386,15240578:22387,15240579:22388,15240580:22389,15240583:22390,15240589:22391,15240590:22392,15240593:22393,15240597:22394,15240598:22395,15240599:22396,15240624:22397,15240632:22398,15240637:22561,15240639:22562,15240832:22563,15240834:22564,15240836:22565,15240838:22566,15240845:22567,15240850:22568,15240852:22569,15240853:22570,15240856:22571,15240857:22572,15240859:22573,15240860:22574,15240861:22575,15240870:22576,15240871:22577,15240873:22578,15240876:22579,15240894:22580,15240895:22581,15241088:22582,15241095:22583,15241097:22584,15241103:22585,15241104:22586,15241105:22587,15241108:22588,15241117:22589,15240595:22590,15241128:22591,15241130:22592,15241142:22593,15241144:22594,15241145:22595,15241148:22596,15241345:22597,15241350:22598,15241354:22599,15241359:22600,15241361:22601,15241365:22602,15241369:22603,15240877:22604,15241391:22605,15241401:22606,15241605:22607,15241607:22608,15241608:22609,15241610:22610,15241613:22611,15241615:22612,15241617:22613,15241618:22614,15241622:22615,15241624:22616,15241625:22617,15241626:22618,15241628:22619,15241632:22620,15241636:22621,15241637:22622,15241639:22623,15241642:22624,15241648:22625,15241651:22626,15241652:22627,15241654:22628,15241656:22629,15241660:22630,15241661:22631,15241857:22632,15241861:22633,15241874:22634,15241875:22635,15241877:22636,15241886:22637,15241894:22638,15241896:22639,15241897:22640,15241898:22641,15241903:22642,15241905:22643,15241908:22644,15241914:22645,15241917:22646,15241918:22647,15242112:22648,15242114:22649,15242119:22650,15242120:22651,15242124:22652,15242127:22653,15242131:22654,15242140:22817,15242151:22818,15242154:22819,15242159:22820,15242160:22821,15242161:22822,15242162:22823,15242167:22824,15242418:22825,15242170:22826,15242171:22827,15242173:22828,15242370:22829,15242371:22830,15242375:22831,15242380:22832,15242382:22833,15242384:22834,15242396:22835,15242398:22836,15242402:22837,15242403:22838,15242404:22839,15242405:22840,15242407:22841,15242410:22842,15242411:22843,15242415:22844,15242419:22845,15242420:22846,15242422:22847,15242431:22848,15242630:22849,15242639:22850,15242640:22851,15242641:22852,15242642:22853,15242643:22854,15242646:22855,15242649:22856,15242652:22857,15242653:22858,15242654:22859,15242655:22860,15242656:22861,15242657:22862,15242658:22863,15242660:22864,15242667:22865,15242671:22866,15242681:22867,15242682:22868,15242683:22869,15242685:22870,15242687:22871,15242881:22872,15242885:22873,15242886:22874,15242889:22875,15242891:22876,15242892:22877,15242895:22878,15242899:22879,15242904:22880,15242909:22881,15242911:22882,15242912:22883,15242914:22884,15242917:22885,15242919:22886,15242932:22887,15242934:22888,15242935:22889,15242936:22890,15242940:22891,15242941:22892,15242942:22893,15242943:22894,15243138:22895,15243143:22896,15243146:22897,15243147:22898,15243150:22899,15242925:22900,15243160:22901,15243162:22902,15243167:22903,15243168:22904,15243174:22905,15243176:22906,15243181:22907,15243187:22908,15243190:22909,15243196:22910,15243199:23073,15243392:23074,15243396:23075,15243397:23076,15243405:23077,15243406:23078,15243408:23079,15243409:23080,15243410:23081,15243416:23082,15243417:23083,15243419:23084,15243422:23085,15243425:23086,15243431:23087,15243433:23088,15243446:23089,15243448:23090,15243450:23091,15243452:23092,15243453:23093,15243648:23094,15243650:23095,15243654:23096,15243666:23097,15243667:23098,15243670:23099,15243671:23100,15243672:23101,15243673:23102,15243677:23103,15243680:23104,15243681:23105,15243682:23106,15243683:23107,15243684:23108,15243689:23109,15243692:23110,15243695:23111,15243701:23112,15243702:23113,15243703:23114,15243706:23115,15243917:23116,15243921:23117,15243926:23118,15243928:23119,15243930:23120,15243932:23121,15243937:23122,15243942:23123,15243943:23124,15243944:23125,15243949:23126,15243953:23127,15243955:23128,15243956:23129,15243957:23130,15243959:23131,15243960:23132,15243961:23133,15243967:23134,15244160:23135,15244161:23136,15244163:23137,15244165:23138,15244177:23139,15244178:23140,15244181:23141,15244183:23142,15244186:23143,15244188:23144,15244192:23145,15244195:23146,15244197:23147,15244199:23148,15243912:23149,15244218:23150,15244220:23151,15244221:23152,15244420:23153,15244421:23154,15244423:23155,15244427:23156,15244430:23157,15244431:23158,15244432:23159,15244435:23160,15244436:23161,15244441:23162,15244446:23163,15244447:23164,15244449:23165,15244451:23166,15244456:23329,15244462:23330,15244463:23331,15244465:23332,15244466:23333,15244473:23334,15244474:23335,15244476:23336,15244477:23337,15244478:23338,15244672:23339,15244675:23340,15244677:23341,15244685:23342,15244696:23343,15244701:23344,15244705:23345,15244708:23346,15244709:23347,15244719:23348,15244721:23349,15244722:23350,15244731:23351,15244931:23352,15244932:23353,15244933:23354,15244934:23355,15244935:23356,15244936:23357,15244937:23358,15244939:23359,15244940:23360,15244944:23361,15244947:23362,15244949:23363,15244951:23364,15244952:23365,15244953:23366,15244958:23367,15244960:23368,15244963:23369,15244967:23370,15244972:23371,15244973:23372,15244974:23373,15244977:23374,15244981:23375,15244990:23376,15244991:23377,15245185:23378,15245192:23379,15245193:23380,15245194:23381,15245198:23382,15245205:23383,15245206:23384,15245209:23385,15245210:23386,15245212:23387,15245215:23388,15245218:23389,15245219:23390,15245220:23391,15245226:23392,15245227:23393,15245229:23394,15245233:23395,15245235:23396,15245240:23397,15245242:23398,15245247:23399,15245441:23400,15245443:23401,15245446:23402,15245449:23403,15245450:23404,15245451:23405,15245456:23406,15245465:23407,15245458:23408,15245459:23409,15245460:23410,15245464:23411,15245466:23412,15245467:23413,15245468:23414,15245470:23415,15245471:23416,15245480:23417,15245485:23418,15245486:23419,15245488:23420,15245490:23421,15245493:23422,15245498:23585,15245500:23586,15245697:23587,15245699:23588,15245701:23589,15245704:23590,15245705:23591,15245706:23592,15245707:23593,15245710:23594,15245713:23595,15245717:23596,15245718:23597,15245720:23598,15245722:23599,15245724:23600,15245727:23601,15245728:23602,15245732:23603,15245737:23604,15245745:23605,15245753:23606,15245755:23607,15245952:23608,15245976:23609,15245978:23610,15245979:23611,15245980:23612,15245983:23613,15245984:23614,15245992:23615,15245994:23616,15246010:23617,15246013:23618,15246014:23619,15246208:23620,15246218:23621,15246219:23622,15246220:23623,15246221:23624,15246222:23625,15246225:23626,15246226:23627,15246227:23628,15246235:23629,15246238:23630,15246247:23631,15246255:23632,15246256:23633,15246257:23634,15246261:23635,15246263:23636,15246465:23637,15246470:23638,15246477:23639,15246478:23640,15246479:23641,15246485:23642,15246486:23643,15246488:23644,15246489:23645,15246490:23646,15246492:23647,15246496:23648,15246502:23649,15246503:23650,15246504:23651,15246512:23652,15246513:23653,15246514:23654,15246517:23655,15246521:23656,15246522:23657,15246526:23658,15246720:23659,15246722:23660,15246725:23661,15246726:23662,15246729:23663,15246735:23664,15246738:23665,15246743:23666,15246746:23667,15246747:23668,15246748:23669,15246753:23670,15246754:23671,15246755:23672,15246763:23673,15246766:23674,15246768:23675,15246771:23676,15246773:23677,15246778:23678,15246779:23841,15246780:23842,15246781:23843,15246985:23844,15246989:23845,15246992:23846,15246996:23847,15246997:23848,15247003:23849,15247004:23850,15247007:23851,15247008:23852,15247013:23853,15247024:23854,15247028:23855,15247029:23856,15247030:23857,15247031:23858,15247036:23859,15247252:23860,15247253:23861,15247254:23862,15247255:23863,15247256:23864,15247269:23865,15247273:23866,15247275:23867,15247277:23868,15247281:23869,15247283:23870,15247286:23871,15247289:23872,15247293:23873,15247295:23874,15247492:23875,15247493:23876,15247495:23877,15247503:23878,15247505:23879,15247506:23880,15247508:23881,15247509:23882,15247518:23883,15247520:23884,15247522:23885,15247524:23886,15247526:23887,15247531:23888,15247532:23889,15247535:23890,15247541:23891,15247543:23892,15247549:23893,15247550:23894,15247744:23895,15247747:23896,15247749:23897,15247751:23898,15247753:23899,15247757:23900,15247758:23901,15247763:23902,15247766:23903,15247767:23904,15247768:23905,15247772:23906,15247773:23907,15247777:23908,15247781:23909,15247783:23910,15247797:23911,15247798:23912,15247799:23913,15247801:23914,15247802:23915,15247803:23916,15247806:23917,15247807:23918,15248e3:23919,15248003:23920,15248006:23921,15248011:23922,15248015:23923,15248016:23924,15248018:23925,15248022:23926,15248023:23927,15248025:23928,15248031:23929,15248039:23930,15248041:23931,15248046:23932,15248047:23933,15248051:23934,15248054:24097,15248055:24098,15248059:24099,15248062:24100,15248259:24101,15248262:24102,15248264:24103,15248265:24104,15248266:24105,15248273:24106,15248275:24107,15248276:24108,15248277:24109,15248279:24110,15248285:24111,15248287:24112,15248300:24113,15248304:24114,15248308:24115,15248309:24116,15248310:24117,15248316:24118,15248319:24119,15248517:24120,15248518:24121,15248523:24122,15248529:24123,15248540:24124,15248542:24125,15248543:24126,15248522:24127,15248557:24128,15248560:24129,15248567:24130,15248572:24131,15248770:24132,15248771:24133,15248772:24134,15248773:24135,15248774:24136,15248776:24137,15248786:24138,15248787:24139,15248788:24140,15248793:24141,15248781:24142,15248798:24143,15248803:24144,15248813:24145,15248822:24146,15248824:24147,15248825:24148,15248828:24149,15248830:24150,15249025:24151,15249028:24152,15249029:24153,15249035:24154,15249037:24155,15249039:24156,15249044:24157,15249045:24158,15249052:24159,15249054:24160,15249055:24161,15249592:24162,15249593:24163,15249597:24164,15249598:24165,15249797:24166,15249799:24167,15249801:24168,15249803:24169,15249807:24170,15249809:24171,15249811:24172,15249812:24173,15249815:24174,15249816:24175,15249819:24176,15249821:24177,15249817:24178,15249827:24179,15249828:24180,15249830:24181,15249832:24182,15249833:24183,15249837:24184,15249843:24185,15249845:24186,15249846:24187,15249851:24188,15249854:24189,15250054:24190,15250055:24353,15250059:24354,15250064:24355,15250066:24356,15250067:24357,15250073:24358,15250075:24359,15250076:24360,15250084:24361,15250105:24362,15250106:24363,15250309:24364,15250310:24365,15250313:24366,15250315:24367,15250319:24368,15250326:24369,15250325:24370,15250329:24371,15250333:24372,15250337:24373,15250344:24374,15250348:24375,15250351:24376,15250352:24377,15250354:24378,15250357:24379,15250359:24380,15250360:24381,15250366:24382,15250367:24383,15250561:24384,15250563:24385,15250569:24386,15250578:24387,15250583:24388,15250587:24389,15250853:24390,15250857:24391,15250860:24392,15250862:24393,15250879:24394,15251074:24395,15251076:24396,15251080:24397,15251085:24398,15251088:24399,15251089:24400,15251093:24401,15251102:24402,15251103:24403,15251104:24404,15251110:24405,15251115:24406,15251116:24407,15251119:24408,15251122:24409,15251125:24410,15251127:24411,15251129:24412,15251131:24413,15251328:24414,15251333:24415,15251334:24416,15251335:24417,15251336:24418,15251338:24419,15251342:24420,15251345:24421,15251348:24422,15251349:24423,15251351:24424,15251353:24425,15251364:24426,15251365:24427,15251367:24428,15251372:24429,15251376:24430,15251132:24431,15251377:24432,15251378:24433,15251380:24434,15251389:24435,15251585:24436,15251588:24437,15251589:24438,15251590:24439,15251595:24440,15251601:24441,15251604:24442,15251606:24443,15251616:24444,15251617:24445,15251618:24446,15251619:24609,15251622:24610,15251623:24611,15251633:24612,15251635:24613,15251638:24614,15251639:24615,15251640:24616,15251641:24617,15251645:24618,15251840:24619,15251841:24620,15251851:24621,15251853:24622,15251854:24623,15251855:24624,15251860:24625,15251867:24626,15251868:24627,15251869:24628,15251870:24629,15251873:24630,15251874:24631,15251881:24632,15251884:24633,15251885:24634,15251887:24635,15251888:24636,15251889:24637,15251897:24638,15251898:24639,15251899:24640,15252098:24641,15252099:24642,15252105:24643,15252112:24644,15252114:24645,15252117:24646,15252122:24647,15252123:24648,15252125:24649,15252126:24650,15252130:24651,15252135:24652,15252137:24653,15252141:24654,15252142:24655,15252147:24656,15252149:24657,15252154:24658,15252155:24659,15252352:24660,15252353:24661,15252355:24662,15252356:24663,15252359:24664,15252367:24665,15252369:24666,15252372:24667,15252380:24668,15252392:24669,15252398:24670,15252400:24671,15252401:24672,15252407:24673,15252409:24674,15252410:24675,15252397:24676,15252608:24677,15252610:24678,15252615:24679,15252616:24680,15252623:24681,15252624:24682,15252630:24683,15252631:24684,15252632:24685,15252638:24686,15252640:24687,15252641:24688,15252643:24689,15252645:24690,15252647:24691,15252648:24692,15252652:24693,15252653:24694,15252654:24695,15252660:24696,15252661:24697,15252662:24698,15252663:24699,15252666:24700,15252864:24701,15252865:24702,15252867:24865,15252871:24866,15252879:24867,15252881:24868,15252882:24869,15252883:24870,15252884:24871,15252885:24872,15252888:24873,15252893:24874,15252894:24875,15252901:24876,15253149:24877,15253152:24878,15253153:24879,15253156:24880,15253157:24881,15253158:24882,15253173:24883,15253174:24884,15253176:24885,15253182:24886,15253376:24887,15253377:24888,15253382:24889,15253386:24890,15253387:24891,15253389:24892,15253392:24893,15253394:24894,15253395:24895,15253397:24896,15253408:24897,15253411:24898,15253412:24899,15253416:24900,15253422:24901,15253425:24902,15253429:24903,15253430:24904,15253435:24905,15253438:24906,15302786:24907,15302788:24908,15302792:24909,15302796:24910,15302808:24911,15302811:24912,15302824:24913,15302825:24914,15302831:24915,15302826:24916,15302828:24917,15302829:24918,15302835:24919,15302836:24920,15302839:24921,15302847:24922,15303043:24923,15303044:24924,15303052:24925,15303067:24926,15303069:24927,15303074:24928,15303078:24929,15303079:24930,15303084:24931,15303088:24932,15303092:24933,15303097:24934,15303301:24935,15303304:24936,15303307:24937,15303308:24938,15303310:24939,15303312:24940,15303317:24941,15303319:24942,15303320:24943,15303321:24944,15303323:24945,15303328:24946,15303329:24947,15303330:24948,15303333:24949,15303344:24950,15303346:24951,15303347:24952,15303348:24953,15303350:24954,15303357:24955,15303564:24956,15303358:24957,15303555:24958,15303556:25121,15303557:25122,15303559:25123,15303560:25124,15303573:25125,15303575:25126,15303576:25127,15303577:25128,15303580:25129,15303581:25130,15303583:25131,15303589:25132,15303570:25133,15303606:25134,15303595:25135,15303599:25136,15303600:25137,15303604:25138,15303614:25139,15303615:25140,15303808:25141,15303812:25142,15303813:25143,15303814:25144,15303816:25145,15303821:25146,15303824:25147,15303828:25148,15303830:25149,15303831:25150,15303832:25151,15303834:25152,15303836:25153,15303838:25154,15303840:25155,15303845:25156,15303842:25157,15303843:25158,15303847:25159,15303849:25160,15303854:25161,15303855:25162,15303857:25163,15303860:25164,15303862:25165,15303863:25166,15303865:25167,15303866:25168,15303868:25169,15303869:25170,15304067:25171,15304071:25172,15304072:25173,15304079:25174,15304083:25175,15304087:25176,15304089:25177,15304090:25178,15304091:25179,15304097:25180,15304100:25181,15304103:25182,15304109:25183,15304116:25184,15304121:25185,15304122:25186,15304123:25187,15304321:25188,15304323:25189,15304325:25190,15304326:25191,15304330:25192,15304334:25193,15304337:25194,15304339:25195,15304340:25196,15304341:25197,15304344:25198,15304350:25199,15304353:25200,15304358:25201,15304360:25202,15304364:25203,15304365:25204,15304366:25205,15304368:25206,15304369:25207,15304370:25208,15304371:25209,15304374:25210,15304379:25211,15304380:25212,15304381:25213,15304383:25214,15304578:25377,15304579:25378,15304581:25379,15304595:25380,15304596:25381,15304599:25382,15304601:25383,15304602:25384,15304606:25385,15304612:25386,15304613:25387,15304617:25388,15304618:25389,15304620:25390,15304621:25391,15304622:25392,15304623:25393,15304624:25394,15304625:25395,15304631:25396,15304633:25397,15304635:25398,15304637:25399,15304832:25400,15304833:25401,15304836:25402,15304837:25403,15304838:25404,15304839:25405,15304841:25406,15304842:25407,15304844:25408,15304848:25409,15304850:25410,15304851:25411,15304854:25412,15304856:25413,15304860:25414,15304861:25415,15304867:25416,15304868:25417,15304869:25418,15304870:25419,15304872:25420,15304878:25421,15304879:25422,15304880:25423,15304883:25424,15304885:25425,15304886:25426,15304888:25427,15304889:25428,15304890:25429,15304892:25430,15304894:25431,15305088:25432,15305090:25433,15305091:25434,15305094:25435,15305095:25436,15305098:25437,15305101:25438,15305102:25439,15305103:25440,15305105:25441,15305112:25442,15305113:25443,15305116:25444,15305117:25445,15305120:25446,15305121:25447,15305125:25448,15305127:25449,15305128:25450,15305129:25451,15305134:25452,15305135:25453,15305136:25454,15305141:25455,15305142:25456,15305143:25457,15305144:25458,15305145:25459,15305147:25460,15305148:25461,15305149:25462,15305151:25463,15305352:25464,15305353:25465,15305354:25466,15305357:25467,15305358:25468,15305362:25469,15305367:25470,15305369:25633,15305375:25634,15305376:25635,15305380:25636,15305381:25637,15305383:25638,15305384:25639,15305387:25640,15305391:25641,15305394:25642,15305398:25643,15305400:25644,15305402:25645,15305403:25646,15305404:25647,15305405:25648,15305407:25649,15305600:25650,15305601:25651,15305602:25652,15305603:25653,15305605:25654,15305606:25655,15305607:25656,15305608:25657,15305611:25658,15305612:25659,15305613:25660,15305614:25661,15305616:25662,15305619:25663,15305621:25664,15305623:25665,15305624:25666,15305625:25667,15305628:25668,15305629:25669,15305631:25670,15305632:25671,15305633:25672,15305635:25673,15305637:25674,15305639:25675,15305640:25676,15305644:25677,15305646:25678,15305648:25679,15305657:25680,15305659:25681,15305663:25682,15305856:25683,15305858:25684,15305864:25685,15305869:25686,15305873:25687,15305876:25688,15305877:25689,15305884:25690,15305885:25691,15305886:25692,15305887:25693,15305889:25694,15305892:25695,15305893:25696,15305895:25697,15305897:25698,15305898:25699,15305907:25700,15305908:25701,15305910:25702,15305911:25703,15306119:25704,15306120:25705,15306121:25706,15306128:25707,15306129:25708,15306130:25709,15306133:25710,15306135:25711,15306136:25712,15306138:25713,15306142:25714,15306148:25715,15306149:25716,15306151:25717,15306153:25718,15306154:25719,15306157:25720,15306159:25721,15306160:25722,15306161:25723,15306163:25724,15306164:25725,15306166:25726,15306170:25889,15306173:25890,15306175:25891,15306368:25892,15306369:25893,15306370:25894,15306376:25895,15306378:25896,15306379:25897,15306381:25898,15306383:25899,15306386:25900,15306389:25901,15306392:25902,15306395:25903,15306398:25904,15306401:25905,15306403:25906,15306404:25907,15306406:25908,15306408:25909,15306411:25910,15306420:25911,15306421:25912,15306422:25913,15306426:25914,15306409:25915,15306625:25916,15306628:25917,15306629:25918,15306630:25919,15306631:25920,15306633:25921,15306634:25922,15306635:25923,15306636:25924,15306637:25925,15306643:25926,15306649:25927,15306652:25928,15306654:25929,15306655:25930,15306658:25931,15306662:25932,15306663:25933,15306681:25934,15306679:25935,15306680:25936,15306682:25937,15306683:25938,15306685:25939,15306881:25940,15306882:25941,15306884:25942,15306888:25943,15306889:25944,15306893:25945,15306894:25946,15306895:25947,15306901:25948,15306902:25949,15306903:25950,15306911:25951,15306926:25952,15306927:25953,15306929:25954,15306930:25955,15306931:25956,15306932:25957,15306939:25958,15306943:25959,15306941:25960,15307139:25961,15307141:25962,15307144:25963,15307146:25964,15307148:25965,15307157:25966,15307161:25967,15307164:25968,15307167:25969,15307169:25970,15307171:25971,15307176:25972,15307179:25973,15307181:25974,15307182:25975,15307183:25976,15307185:25977,15307186:25978,15307396:25979,15307395:25980,15308216:25981,15308217:25982,15308222:26145,15308420:26146,15308424:26147,15308428:26148,15308429:26149,15308430:26150,15308445:26151,15308446:26152,15308447:26153,15308449:26154,15308454:26155,15308457:26156,15308459:26157,15308460:26158,15308468:26159,15308470:26160,15308474:26161,15308477:26162,15308479:26163,15308678:26164,15308680:26165,15308681:26166,15308683:26167,15308688:26168,15308689:26169,15308690:26170,15308691:26171,15308697:26172,15308698:26173,15308701:26174,15308702:26175,15308703:26176,15308704:26177,15308708:26178,15308710:26179,15308957:26180,15308958:26181,15308962:26182,15308964:26183,15308965:26184,15308966:26185,15308972:26186,15308977:26187,15308979:26188,15308983:26189,15308984:26190,15308985:26191,15308986:26192,15308988:26193,15308989:26194,15309185:26195,15309202:26196,15309204:26197,15309206:26198,15309207:26199,15309208:26200,15309217:26201,15309230:26202,15309236:26203,15309243:26204,15309244:26205,15309246:26206,15309247:26207,15309441:26208,15309442:26209,15309443:26210,15309444:26211,15309449:26212,15309457:26213,15309462:26214,15309466:26215,15309469:26216,15309471:26217,15309476:26218,15309477:26219,15309478:26220,15309481:26221,15309486:26222,15309487:26223,15309491:26224,15309498:26225,15309706:26226,15309714:26227,15054514:26228,15309720:26229,15309722:26230,15309725:26231,15309726:26232,15309727:26233,15309737:26234,15309743:26235,15309745:26236,15309754:26237,15309954:26238,15309955:26401,15309957:26402,15309961:26403,15309978:26404,15309979:26405,15309981:26406,15309985:26407,15309986:26408,15309987:26409,15309992:26410,15310001:26411,15310003:26412,15310209:26413,15310211:26414,15310218:26415,15310222:26416,15310223:26417,15310229:26418,15310231:26419,15310232:26420,15310234:26421,15310235:26422,15310243:26423,15310247:26424,15310250:26425,15310254:26426,15310259:26427,15310262:26428,15310263:26429,15310264:26430,15310267:26431,15310269:26432,15310271:26433,15310464:26434,15310473:26435,15310485:26436,15310486:26437,15310487:26438,15310489:26439,15310490:26440,15310494:26441,15310495:26442,15310498:26443,15310508:26444,15310510:26445,15310513:26446,15310514:26447,15310517:26448,15310518:26449,15310520:26450,15310521:26451,15310522:26452,15310524:26453,15310526:26454,15310527:26455,15310721:26456,15310724:26457,15310725:26458,15310727:26459,15310729:26460,15310730:26461,15310732:26462,15310733:26463,15310734:26464,15310736:26465,15310737:26466,15310740:26467,15310743:26468,15310744:26469,15310745:26470,15310749:26471,15310750:26472,15310752:26473,15310747:26474,15310753:26475,15310756:26476,15310767:26477,15310769:26478,15310772:26479,15310775:26480,15310776:26481,15310778:26482,15310983:26483,15310986:26484,15311001:26485,15310989:26486,15310990:26487,15310996:26488,15310998:26489,15311004:26490,15311006:26491,15311008:26492,15311011:26493,15311014:26494,15311019:26657,15311022:26658,15311023:26659,15311024:26660,15311026:26661,15311027:26662,15311029:26663,15311013:26664,15311038:26665,15311236:26666,15311239:26667,15311242:26668,15311249:26669,15311250:26670,15311251:26671,15311254:26672,15311255:26673,15311257:26674,15311258:26675,15311266:26676,15311267:26677,15311269:26678,15311270:26679,15311274:26680,15311276:26681,15311531:26682,15311533:26683,15311534:26684,15311536:26685,15311540:26686,15311543:26687,15311544:26688,15311546:26689,15311547:26690,15311551:26691,15311746:26692,15311749:26693,15311752:26694,15311756:26695,15311777:26696,15311779:26697,15311781:26698,15311782:26699,15311783:26700,15311786:26701,15311795:26702,15311798:26703,15312002:26704,15312007:26705,15312008:26706,15312017:26707,15312021:26708,15312022:26709,15312023:26710,15312026:26711,15312027:26712,15312028:26713,15312031:26714,15312034:26715,15312038:26716,15312039:26717,15312043:26718,15312049:26719,15312050:26720,15312051:26721,15312052:26722,15312053:26723,15312057:26724,15312058:26725,15312059:26726,15312060:26727,15312256:26728,15312257:26729,15312262:26730,15312263:26731,15312264:26732,15312269:26733,15312270:26734,15312276:26735,15312280:26736,15312281:26737,15312283:26738,15312284:26739,15312286:26740,15312287:26741,15312288:26742,15312539:26743,15312541:26744,15312543:26745,15312550:26746,15312560:26747,15312561:26748,15312562:26749,15312565:26750,15312569:26913,15312570:26914,15312573:26915,15312575:26916,15312771:26917,15312777:26918,15312787:26919,15312788:26920,15312793:26921,15312794:26922,15312796:26923,15312798:26924,15312807:26925,15312810:26926,15312811:26927,15312812:26928,15312816:26929,15312820:26930,15312821:26931,15312825:26932,15312829:26933,15312830:26934,15313026:26935,15313027:26936,15313028:26937,15313035:26938,15313036:26939,15313040:26940,15313041:26941,15313046:26942,15313054:26943,15313056:26944,15313058:26945,15313059:26946,15313060:26947,15313063:26948,15313069:26949,15313070:26950,15313075:26951,15313077:26952,15313078:26953,15313080:26954,15313287:26955,15313281:26956,15313284:26957,15313290:26958,15313291:26959,15313292:26960,15313294:26961,15313297:26962,15313300:26963,15313302:26964,15313309:26965,15313578:26966,15313580:26967,15313582:26968,15313583:26969,15313586:26970,15313588:26971,15313589:26972,15313590:26973,15313593:26974,15313595:26975,15313598:26976,15313599:26977,15313793:26978,15313795:26979,15313798:26980,15313800:26981,15313806:26982,15313808:26983,15313810:26984,15313813:26985,15313814:26986,15313815:26987,15313819:26988,15313820:26989,15313824:26990,15313828:26991,15313829:26992,15313831:26993,15313833:26994,15313836:26995,15313842:26996,15313843:26997,15313845:26998,15313849:26999,15313850:27e3,15313853:27001,15313855:27002,15314048:27003,15314049:27004,15314050:27005,15314051:27006,15314052:27169,15314053:27170,15314056:27171,15314057:27172,15314059:27173,15314060:27174,15314061:27175,15314062:27176,15314064:27177,15314066:27178,15314070:27179,15314073:27180,15314075:27181,15314076:27182,15314080:27183,15314086:27184,15314091:27185,15314093:27186,15314099:27187,15314100:27188,15314101:27189,15314103:27190,15314105:27191,15314106:27192,15314109:27193,15314312:27194,15314315:27195,15314316:27196,15314325:27197,15314326:27198,15314327:27199,15314331:27200,15314334:27201,15314337:27202,15314339:27203,15314341:27204,15314342:27205,15314344:27206,15314346:27207,15314347:27208,15314348:27209,15314349:27210,15314350:27211,15314355:27212,15314357:27213,15314359:27214,15314360:27215,15314361:27216,15314367:27217,15314560:27218,15314564:27219,15314565:27220,15314566:27221,15314567:27222,15314569:27223,15314570:27224,15314571:27225,15314573:27226,15314575:27227,15314576:27228,15314580:27229,15314586:27230,15314589:27231,15314590:27232,15314598:27233,15314599:27234,15314601:27235,15314604:27236,15314608:27237,15314609:27238,15314610:27239,15314615:27240,15314616:27241,15314619:27242,15314620:27243,15314622:27244,15314623:27245,15314817:27246,15314823:27247,15314824:27248,15314830:27249,15314832:27250,15314839:27251,15314840:27252,15314845:27253,15314847:27254,15314853:27255,15314855:27256,15314858:27257,15314859:27258,15314863:27259,15314867:27260,15314871:27261,15314872:27262,15314873:27425,15314874:27426,15314877:27427,15314879:27428,15315072:27429,15315074:27430,15315083:27431,15315087:27432,15315089:27433,15315094:27434,15315096:27435,15315097:27436,15315098:27437,15315100:27438,15315102:27439,15315106:27440,15315107:27441,15315110:27442,15315111:27443,15315112:27444,15315113:27445,15315114:27446,15315121:27447,15315125:27448,15315126:27449,15315127:27450,15315133:27451,15315329:27452,15315331:27453,15315332:27454,15315333:27455,15315337:27456,15315338:27457,15315342:27458,15315343:27459,15315344:27460,15315347:27461,15315348:27462,15315350:27463,15315352:27464,15315355:27465,15315357:27466,15315358:27467,15315359:27468,15315363:27469,15315369:27470,15315370:27471,15315356:27472,15315371:27473,15315368:27474,15315374:27475,15315376:27476,15315378:27477,15315381:27478,15315383:27479,15315387:27480,15315878:27481,15315890:27482,15315895:27483,15315897:27484,15316107:27485,15316098:27486,15316113:27487,15316119:27488,15316120:27489,15316124:27490,15316125:27491,15316126:27492,15316143:27493,15316144:27494,15316146:27495,15316147:27496,15316148:27497,15316154:27498,15316156:27499,15316357:27500,15316157:27501,15316354:27502,15316355:27503,15316359:27504,15316362:27505,15316371:27506,15316372:27507,15316383:27508,15316387:27509,15316386:27510,15316389:27511,15316393:27512,15316394:27513,15316395:27514,15316400:27515,15316406:27516,15316407:27517,15316411:27518,15316412:27681,15316414:27682,15316611:27683,15316612:27684,15316614:27685,15316618:27686,15316621:27687,15316622:27688,15316626:27689,15316627:27690,15316629:27691,15316630:27692,15316631:27693,15316632:27694,15316641:27695,15316650:27696,15316652:27697,15316654:27698,15316657:27699,15316661:27700,15316665:27701,15316668:27702,15316671:27703,15316867:27704,15316871:27705,15316873:27706,15316874:27707,15316884:27708,15316885:27709,15316886:27710,15316887:27711,15316890:27712,15316894:27713,15316895:27714,15316896:27715,15316901:27716,15316903:27717,15316905:27718,15316907:27719,15316910:27720,15316912:27721,15316915:27722,15316916:27723,15316926:27724,15317130:27725,15317122:27726,15317127:27727,15317134:27728,15317136:27729,15317137:27730,15317138:27731,15317141:27732,15317142:27733,15317145:27734,15317148:27735,15317149:27736,15317434:27737,15317435:27738,15317436:27739,15317632:27740,15317634:27741,15317635:27742,15317636:27743,15317637:27744,15317639:27745,15317646:27746,15317647:27747,15317654:27748,15317656:27749,15317659:27750,15317662:27751,15317668:27752,15317672:27753,15317676:27754,15317678:27755,15317679:27756,15317680:27757,15317683:27758,15317684:27759,15317685:27760,15317894:27761,15317896:27762,15317899:27763,15317909:27764,15317919:27765,15317924:27766,15317927:27767,15317932:27768,15317933:27769,15317934:27770,15317936:27771,15317937:27772,15317938:27773,15317941:27774,15317944:27937,15317951:27938,15318146:27939,15318147:27940,15318153:27941,15318159:27942,15318160:27943,15318161:27944,15318162:27945,15318164:27946,15318166:27947,15318167:27948,15318169:27949,15318170:27950,15318171:27951,15318175:27952,15318178:27953,15318182:27954,15318186:27955,15318187:27956,15318191:27957,15318193:27958,15318194:27959,15318196:27960,15318199:27961,15318201:27962,15318202:27963,15318204:27964,15318205:27965,15318207:27966,15318401:27967,15318403:27968,15318404:27969,15318405:27970,15318406:27971,15318407:27972,15318419:27973,15318421:27974,15318422:27975,15318423:27976,15318424:27977,15318426:27978,15318429:27979,15318430:27980,15318440:27981,15318441:27982,15318445:27983,15318446:27984,15318447:27985,15318448:27986,15318449:27987,15318451:27988,15318453:27989,15318458:27990,15318461:27991,15318671:27992,15318672:27993,15318673:27994,15318674:27995,15318676:27996,15318678:27997,15318679:27998,15318686:27999,15318689:28e3,15318690:28001,15318691:28002,15318693:28003,14909596:8513}},2912:(e,t,s)=>{var r=s(4124),n=String.fromCharCode,i=Array.prototype.slice,o=Object.prototype.toString,a=Object.prototype.hasOwnProperty,c=Array.isArray,l=Object.keys;function u(e){return c?c(e):"[object Array]"===o.call(e)}function h(e){if(l)return l(e);var t=[];for(var s in e)a.call(e,s)&&(t[t.length]=s);return t}function p(e,t){if(r.HAS_TYPED)switch(e){case 8:return new Uint8Array(t);case 16:return new Uint16Array(t)}return new Array(t)}function d(e){if(r.CAN_CHARCODE_APPLY&&r.CAN_CHARCODE_APPLY_TYPED){var t=e&&e.length;if(t<r.APPLY_BUFFER_SIZE&&r.APPLY_BUFFER_SIZE_OK)return n.apply(null,e);if(null===r.APPLY_BUFFER_SIZE_OK)try{var s=n.apply(null,e);return t>r.APPLY_BUFFER_SIZE&&(r.APPLY_BUFFER_SIZE_OK=!0),s}catch(e){r.APPLY_BUFFER_SIZE_OK=!1}}return f(e)}function f(e){for(var t,s="",i=e&&e.length,o=0;o<i;){if(t=e.subarray?e.subarray(o,o+r.APPLY_BUFFER_SIZE):e.slice(o,o+r.APPLY_BUFFER_SIZE),o+=r.APPLY_BUFFER_SIZE,!r.APPLY_BUFFER_SIZE_OK){if(null===r.APPLY_BUFFER_SIZE_OK)try{s+=n.apply(null,t),t.length>r.APPLY_BUFFER_SIZE&&(r.APPLY_BUFFER_SIZE_OK=!0);continue}catch(e){r.APPLY_BUFFER_SIZE_OK=!1}return m(e)}s+=n.apply(null,t)}return s}function m(e){for(var t="",s=e&&e.length,r=0;r<s;r++)t+=n(e[r]);return t}t.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},t.isArray=u,t.isString=function(e){return"string"==typeof e||"[object String]"===o.call(e)},t.objectKeys=h,t.createBuffer=p,t.stringToBuffer=function(e){for(var t=e.length,s=p(16,t),r=0;r<t;r++)s[r]=e.charCodeAt(r);return s},t.codeToString_fast=d,t.codeToString_chunked=f,t.codeToString_slow=m,t.stringToCode=function(e){for(var t=[],s=e&&e.length,r=0;r<s;r++)t[r]=e.charCodeAt(r);return t},t.codeToBuffer=function(e){if(r.HAS_TYPED)return new Uint16Array(e);if(u(e))return e;for(var t=e&&e.length,s=[],n=0;n<t;n++)s[n]=e[n];return s},t.bufferToCode=function(e){return u(e)?e:i.call(e)},t.canonicalizeEncodingName=function(e){for(var t,s,n,i="",o=(""+e).toUpperCase().replace(/[^A-Z0-9]+/g,""),c=h(r.EncodingAliases),l=c.length,u=0,p=0;p<l;p++){if((t=c[p])===o){i=t;break}for(s=t.length,n=u;n<s;n++)t.slice(0,n)!==o.slice(0,n)&&t.slice(-n)!==o.slice(-n)||(i=t,u=n)}return a.call(r.EncodingAliases,i)?r.EncodingAliases[i]:i};var g=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],y=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],S="=".charCodeAt(0);t.base64encode=function(e){var t,s,r,n,i,o;for(r=e&&e.length,s=0,t=[];s<r;){if(n=e[s++],s==r){t[t.length]=g[n>>2],t[t.length]=g[(3&n)<<4],t[t.length]=S,t[t.length]=S;break}if(i=e[s++],s==r){t[t.length]=g[n>>2],t[t.length]=g[(3&n)<<4|(240&i)>>4],t[t.length]=g[(15&i)<<2],t[t.length]=S;break}o=e[s++],t[t.length]=g[n>>2],t[t.length]=g[(3&n)<<4|(240&i)>>4],t[t.length]=g[(15&i)<<2|(192&o)>>6],t[t.length]=g[63&o]}return d(t)},t.base64decode=function(e){var t,s,r,n,i,o,a;for(o=e&&e.length,i=0,a=[];i<o;){do{t=y[255&e.charCodeAt(i++)]}while(i<o&&-1==t);if(-1==t)break;do{s=y[255&e.charCodeAt(i++)]}while(i<o&&-1==s);if(-1==s)break;a[a.length]=t<<2|(48&s)>>4;do{if(61==(r=255&e.charCodeAt(i++)))return a;r=y[r]}while(i<o&&-1==r);if(-1==r)break;a[a.length]=(15&s)<<4|(60&r)>>2;do{if(61==(n=255&e.charCodeAt(i++)))return a;n=y[n]}while(i<o&&-1==n);if(-1==n)break;a[a.length]=(3&r)<<6|n}return a}},7304:function(e,t,s){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,s,r){void 0===r&&(r=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,r,n)}:function(e,t,s,r){void 0===r&&(r=s),e[r]=t[s]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=o(s(3528));t.htmlDecodeTree=a.default;var c=o(s(5096));t.xmlDecodeTree=c.default;var l=i(s(9397));t.decodeCodePoint=l.default;var u,h=s(9397);Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return h.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return h.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(u||(u={}));var p,d,f;function m(e){return e>=u.ZERO&&e<=u.NINE}function g(e){return e===u.EQUALS||function(e){return e>=u.UPPER_A&&e<=u.UPPER_Z||e>=u.LOWER_A&&e<=u.LOWER_Z||m(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(p=t.BinTrieFlags||(t.BinTrieFlags={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(d||(d={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(f=t.DecodingMode||(t.DecodingMode={}));var y=function(){function e(e,t,s){this.decodeTree=e,this.emitCodePoint=t,this.errors=s,this.state=d.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=f.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=d.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case d.EntityStart:return e.charCodeAt(t)===u.NUM?(this.state=d.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=d.NamedEntity,this.stateNamedEntity(e,t));case d.NumericStart:return this.stateNumericStart(e,t);case d.NumericDecimal:return this.stateNumericDecimal(e,t);case d.NumericHex:return this.stateNumericHex(e,t);case d.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===u.LOWER_X?(this.state=d.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=d.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,s,r){if(t!==s){var n=s-t;this.result=this.result*Math.pow(r,n)+parseInt(e.substr(t,n),r),this.consumed+=n}},e.prototype.stateNumericHex=function(e,t){for(var s,r=t;t<e.length;){var n=e.charCodeAt(t);if(!(m(n)||(s=n,s>=u.UPPER_A&&s<=u.UPPER_F||s>=u.LOWER_A&&s<=u.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var s=t;t<e.length;){var r=e.charCodeAt(t);if(!m(r))return this.addToNumericResult(e,s,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,s,t,10),-1},e.prototype.emitNumericEntity=function(e,t){var s;if(this.consumed<=t)return null===(s=this.errors)||void 0===s||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===u.SEMI)this.consumed+=1;else if(this.decodeMode===f.Strict)return 0;return this.emitCodePoint((0,l.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==u.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(e,t){for(var s=this.decodeTree,r=s[this.treeIndex],n=(r&p.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var i=e.charCodeAt(t);if(this.treeIndex=E(s,r,this.treeIndex+Math.max(1,n),i),this.treeIndex<0)return 0===this.result||this.decodeMode===f.Attribute&&(0===n||g(i))?0:this.emitNotTerminatedNamedEntity();if(0!==(n=((r=s[this.treeIndex])&p.VALUE_LENGTH)>>14)){if(i===u.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==f.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,s=(this.decodeTree[t]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,s,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,s){var r=this.decodeTree;return this.emitCodePoint(1===t?r[e]&~p.VALUE_LENGTH:r[e+1],s),3===t&&this.emitCodePoint(r[e+2],s),s},e.prototype.end=function(){var e;switch(this.state){case d.NamedEntity:return 0===this.result||this.decodeMode===f.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case d.NumericDecimal:return this.emitNumericEntity(0,2);case d.NumericHex:return this.emitNumericEntity(0,3);case d.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case d.EntityStart:return 0}},e}();function S(e){var t="",s=new y(e,(function(e){return t+=(0,l.fromCodePoint)(e)}));return function(e,r){for(var n=0,i=0;(i=e.indexOf("&",i))>=0;){t+=e.slice(n,i),s.startEntity(r);var o=s.write(e,i+1);if(o<0){n=i+s.end();break}n=i+o,i=0===o?n+1:n}var a=t+e.slice(n);return t="",a}}function E(e,t,s,r){var n=(t&p.BRANCH_LENGTH)>>7,i=t&p.JUMP_TABLE;if(0===n)return 0!==i&&r===i?s:-1;if(i){var o=r-i;return o<0||o>=n?-1:e[s+o]-1}for(var a=s,c=a+n-1;a<=c;){var l=a+c>>>1,u=e[l];if(u<r)a=l+1;else{if(!(u>r))return e[l+n];c=l-1}}return-1}t.EntityDecoder=y,t.determineBranch=E;var v=S(a.default),T=S(c.default);t.decodeHTML=function(e,t){return void 0===t&&(t=f.Legacy),v(e,t)},t.decodeHTMLAttribute=function(e){return v(e,f.Attribute)},t.decodeHTMLStrict=function(e){return v(e,f.Strict)},t.decodeXML=function(e){return T(e,f.Strict)}},9397:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function n(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=r.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(s=String.fromCodePoint)&&void 0!==s?s:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=n,t.default=function(e){return(0,t.fromCodePoint)(n(e))}},3528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},5096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},611:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(7736).mkdirsSync,o=s(9968).utimesMillisSync,a=s(2200);function c(e,t,s,i){if(!i.filter||i.filter(t,s))return function(e,t,s,i){const o=i.dereference?r.statSync:r.lstatSync,c=o(t);if(c.isDirectory())return function(e,t,s,n,i){if(!t)return function(e,t,s,n){return r.mkdirSync(s),u(t,s,n),r.chmodSync(s,e.mode)}(e,s,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${s}'.`);return u(s,n,i)}(c,e,t,s,i);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return function(e,t,s,n,i){return t?function(e,t,s,n){if(n.overwrite)return r.unlinkSync(s),l(e,t,s,n);if(n.errorOnExist)throw new Error(`'${s}' already exists`)}(e,s,n,i):l(e,s,n,i)}(c,e,t,s,i);if(c.isSymbolicLink())return function(e,t,s,i){let o=r.readlinkSync(t);i.dereference&&(o=n.resolve(process.cwd(),o));if(e){let e;try{e=r.readlinkSync(s)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return r.symlinkSync(o,s);throw e}if(i.dereference&&(e=n.resolve(process.cwd(),e)),a.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(r.statSync(s).isDirectory()&&a.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}(o,s)}return r.symlinkSync(o,s)}(e,t,s,i)}(e,t,s,i)}function l(e,t,n,i){return"function"==typeof r.copyFileSync?(r.copyFileSync(t,n),r.chmodSync(n,e.mode),i.preserveTimestamps?o(n,e.atime,e.mtime):void 0):function(e,t,n,i){const o=65536,a=s(3400)(o),c=r.openSync(t,"r"),l=r.openSync(n,"w",e.mode);let u=0;for(;u<e.size;){const e=r.readSync(c,a,0,o,u);r.writeSync(l,a,0,e),u+=e}i.preserveTimestamps&&r.futimesSync(l,e.atime,e.mtime);r.closeSync(c),r.closeSync(l)}(e,t,n,i)}function u(e,t,s){r.readdirSync(e).forEach((r=>function(e,t,s,r){const i=n.join(t,e),o=n.join(s,e),{destStat:l}=a.checkPathsSync(i,o,"copy");return c(l,i,o,r)}(r,e,t,s)))}e.exports=function(e,t,s){"function"==typeof s&&(s={filter:s}),(s=s||{}).clobber=!("clobber"in s)||!!s.clobber,s.overwrite="overwrite"in s?!!s.overwrite:s.clobber,s.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:o,destStat:l}=a.checkPathsSync(e,t,"copy");return a.checkParentPathsSync(e,o,t,"copy"),function(e,t,s,o){if(o.filter&&!o.filter(t,s))return;const a=n.dirname(s);r.existsSync(a)||i(a);return c(e,t,s,o)}(l,e,t,s)}},2820:(e,t,s)=>{"use strict";e.exports={copySync:s(611)}},8547:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(7736).mkdirs,o=s(908).pathExists,a=s(9968).utimesMillis,c=s(2200);function l(e,t,s,r,a){const c=n.dirname(s);o(c,((n,o)=>n?a(n):o?h(e,t,s,r,a):void i(c,(n=>n?a(n):h(e,t,s,r,a)))))}function u(e,t,s,r,n,i){Promise.resolve(n.filter(s,r)).then((o=>o?e(t,s,r,n,i):i()),(e=>i(e)))}function h(e,t,s,r,n){return r.filter?u(p,e,t,s,r,n):p(e,t,s,r,n)}function p(e,t,s,n,i){(n.dereference?r.stat:r.lstat)(t,((o,a)=>o?i(o):a.isDirectory()?function(e,t,s,n,i,o){if(!t)return function(e,t,s,n,i){r.mkdir(s,(o=>{if(o)return i(o);m(t,s,n,(t=>t?i(t):r.chmod(s,e.mode,i)))}))}(e,s,n,i,o);if(t&&!t.isDirectory())return o(new Error(`Cannot overwrite non-directory '${n}' with directory '${s}'.`));return m(s,n,i,o)}(a,e,t,s,n,i):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,s,n,i,o){return t?function(e,t,s,n,i){if(!n.overwrite)return n.errorOnExist?i(new Error(`'${s}' already exists`)):i();r.unlink(s,(r=>r?i(r):d(e,t,s,n,i)))}(e,s,n,i,o):d(e,s,n,i,o)}(a,e,t,s,n,i):a.isSymbolicLink()?y(e,t,s,n,i):void 0))}function d(e,t,s,n,i){return"function"==typeof r.copyFile?r.copyFile(t,s,(t=>t?i(t):f(e,s,n,i))):function(e,t,s,n,i){const o=r.createReadStream(t);o.on("error",(e=>i(e))).once("open",(()=>{const t=r.createWriteStream(s,{mode:e.mode});t.on("error",(e=>i(e))).on("open",(()=>o.pipe(t))).once("close",(()=>f(e,s,n,i)))}))}(e,t,s,n,i)}function f(e,t,s,n){r.chmod(t,e.mode,(r=>r?n(r):s.preserveTimestamps?a(t,e.atime,e.mtime,n):n()))}function m(e,t,s,n){r.readdir(e,((r,i)=>r?n(r):g(i,e,t,s,n)))}function g(e,t,s,r,i){const o=e.pop();return o?function(e,t,s,r,i,o){const a=n.join(s,t),l=n.join(r,t);c.checkPaths(a,l,"copy",((t,n)=>{if(t)return o(t);const{destStat:c}=n;h(c,a,l,i,(t=>t?o(t):g(e,s,r,i,o)))}))}(e,o,t,s,r,i):i()}function y(e,t,s,i,o){r.readlink(t,((t,a)=>t?o(t):(i.dereference&&(a=n.resolve(process.cwd(),a)),e?void r.readlink(s,((t,l)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?r.symlink(a,s,o):o(t):(i.dereference&&(l=n.resolve(process.cwd(),l)),c.isSrcSubdir(a,l)?o(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&c.isSrcSubdir(l,a)?o(new Error(`Cannot overwrite '${l}' with '${a}'.`)):function(e,t,s){r.unlink(t,(n=>n?s(n):r.symlink(e,t,s)))}(a,s,o)))):r.symlink(a,s,o))))}e.exports=function(e,t,s,r){"function"!=typeof s||r?"function"==typeof s&&(s={filter:s}):(r=s,s={}),r=r||function(){},(s=s||{}).clobber=!("clobber"in s)||!!s.clobber,s.overwrite="overwrite"in s?!!s.overwrite:s.clobber,s.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(e,t,"copy",((n,i)=>{if(n)return r(n);const{srcStat:o,destStat:a}=i;c.checkParentPaths(e,o,t,"copy",(n=>n?r(n):s.filter?u(l,a,e,t,s,r):l(a,e,t,s,r)))}))}},9020:(e,t,s)=>{"use strict";const r=s(4952).e;e.exports={copy:r(s(8547))}},9264:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(4056),i=s(7072),o=s(7736),a=s(7404),c=r((function(e,t){t=t||function(){},n.readdir(e,((s,r)=>{if(s)return o.mkdirs(e,t);r=r.map((t=>i.join(e,t))),function e(){const s=r.pop();if(!s)return t();a.remove(s,(s=>{if(s)return t(s);e()}))}()}))}));function l(e){let t;try{t=n.readdirSync(e)}catch(t){return o.mkdirsSync(e)}t.forEach((t=>{t=i.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}},4620:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(7072),i=s(4056),o=s(7736),a=s(908).pathExists;e.exports={createFile:r((function(e,t){function s(){i.writeFile(e,"",(e=>{if(e)return t(e);t()}))}i.stat(e,((r,i)=>{if(!r&&i.isFile())return t();const c=n.dirname(e);a(c,((e,r)=>e?t(e):r?s():void o.mkdirs(c,(e=>{if(e)return t(e);s()}))))}))})),createFileSync:function(e){let t;try{t=i.statSync(e)}catch(e){}if(t&&t.isFile())return;const s=n.dirname(e);i.existsSync(s)||o.mkdirsSync(s),i.writeFileSync(e,"")}}},52:(e,t,s)=>{"use strict";const r=s(4620),n=s(8124),i=s(6995);e.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}},8124:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(7072),i=s(4056),o=s(7736),a=s(908).pathExists;e.exports={createLink:r((function(e,t,s){function r(e,t){i.link(e,t,(e=>{if(e)return s(e);s(null)}))}a(t,((c,l)=>c?s(c):l?s(null):void i.lstat(e,(i=>{if(i)return i.message=i.message.replace("lstat","ensureLink"),s(i);const c=n.dirname(t);a(c,((n,i)=>n?s(n):i?r(e,t):void o.mkdirs(c,(n=>{if(n)return s(n);r(e,t)}))))}))))})),createLinkSync:function(e,t){if(i.existsSync(t))return;try{i.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const s=n.dirname(t);return i.existsSync(s)||o.mkdirsSync(s),i.linkSync(e,t)}}},5880:(e,t,s)=>{"use strict";const r=s(7072),n=s(4056),i=s(908).pathExists;e.exports={symlinkPaths:function(e,t,s){if(r.isAbsolute(e))return n.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),s(t)):s(null,{toCwd:e,toDst:e})));{const o=r.dirname(t),a=r.join(o,e);return i(a,((t,i)=>t?s(t):i?s(null,{toCwd:a,toDst:e}):n.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),s(t)):s(null,{toCwd:e,toDst:r.relative(o,e)})))))}},symlinkPathsSync:function(e,t){let s;if(r.isAbsolute(e)){if(s=n.existsSync(e),!s)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const i=r.dirname(t),o=r.join(i,e);if(s=n.existsSync(o),s)return{toCwd:o,toDst:e};if(s=n.existsSync(e),!s)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:r.relative(i,e)}}}}},5824:(e,t,s)=>{"use strict";const r=s(4056);e.exports={symlinkType:function(e,t,s){if(s="function"==typeof t?t:s,t="function"!=typeof t&&t)return s(null,t);r.lstat(e,((e,r)=>{if(e)return s(null,"file");t=r&&r.isDirectory()?"dir":"file",s(null,t)}))},symlinkTypeSync:function(e,t){let s;if(t)return t;try{s=r.lstatSync(e)}catch(e){return"file"}return s&&s.isDirectory()?"dir":"file"}}},6995:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(7072),i=s(4056),o=s(7736),a=o.mkdirs,c=o.mkdirsSync,l=s(5880),u=l.symlinkPaths,h=l.symlinkPathsSync,p=s(5824),d=p.symlinkType,f=p.symlinkTypeSync,m=s(908).pathExists;e.exports={createSymlink:r((function(e,t,s,r){r="function"==typeof s?s:r,s="function"!=typeof s&&s,m(t,((o,c)=>o?r(o):c?r(null):void u(e,t,((o,c)=>{if(o)return r(o);e=c.toDst,d(c.toCwd,s,((s,o)=>{if(s)return r(s);const c=n.dirname(t);m(c,((s,n)=>s?r(s):n?i.symlink(e,t,o,r):void a(c,(s=>{if(s)return r(s);i.symlink(e,t,o,r)}))))}))}))))})),createSymlinkSync:function(e,t,s){if(i.existsSync(t))return;const r=h(e,t);e=r.toDst,s=f(r.toCwd,s);const o=n.dirname(t);return i.existsSync(o)||c(o),i.symlinkSync(e,t,s)}}},2096:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(4056),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.keys(n).forEach((e=>{"promises"!==e&&(t[e]=n[e])})),i.forEach((e=>{t[e]=r(n[e])})),t.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},t.read=function(e,t,s,r,i,o){return"function"==typeof o?n.read(e,t,s,r,i,o):new Promise(((o,a)=>{n.read(e,t,s,r,i,((e,t,s)=>{if(e)return a(e);o({bytesRead:t,buffer:s})}))}))},t.write=function(e,t,...s){return"function"==typeof s[s.length-1]?n.write(e,t,...s):new Promise(((r,i)=>{n.write(e,t,...s,((e,t,s)=>{if(e)return i(e);r({bytesWritten:t,buffer:s})}))}))},"function"==typeof n.realpath.native&&(t.realpath.native=r(n.realpath.native))},2072:(e,t,s)=>{"use strict";e.exports=Object.assign({},s(2096),s(2820),s(9020),s(9264),s(52),s(7536),s(7736),s(5440),s(344),s(1528),s(908),s(7404));const r=s(2058);Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>r.promises})},7536:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(9664);n.outputJson=r(s(3408)),n.outputJsonSync=s(3984),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,e.exports=n},9664:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(6368);e.exports={readJson:r(n.readFile),readJsonSync:n.readFileSync,writeJson:r(n.writeFile),writeJsonSync:n.writeFileSync}},3984:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(7736),o=s(9664);e.exports=function(e,t,s){const a=n.dirname(e);r.existsSync(a)||i.mkdirsSync(a),o.writeJsonSync(e,t,s)}},3408:(e,t,s)=>{"use strict";const r=s(7072),n=s(7736),i=s(908).pathExists,o=s(9664);e.exports=function(e,t,s,a){"function"==typeof s&&(a=s,s={});const c=r.dirname(e);i(c,((r,i)=>r?a(r):i?o.writeJson(e,t,s,a):void n.mkdirs(c,(r=>{if(r)return a(r);o.writeJson(e,t,s,a)}))))}},7736:(e,t,s)=>{"use strict";const r=(0,s(4952).e)(s(9124)),n=s(456);e.exports={mkdirs:r,mkdirsSync:n,mkdirp:r,mkdirpSync:n,ensureDir:r,ensureDirSync:n}},456:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(8856).invalidWin32Path,o=parseInt("0777",8);e.exports=function e(t,s,a){s&&"object"==typeof s||(s={mode:s});let c=s.mode;const l=s.fs||r;if("win32"===process.platform&&i(t)){const e=new Error(t+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===c&&(c=o&~process.umask()),a||(a=null),t=n.resolve(t);try{l.mkdirSync(t,c),a=a||t}catch(r){if("ENOENT"===r.code){if(n.dirname(t)===t)throw r;a=e(n.dirname(t),s,a),e(t,s,a)}else{let e;try{e=l.statSync(t)}catch(e){throw r}if(!e.isDirectory())throw r}}return a}},9124:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(8856).invalidWin32Path,o=parseInt("0777",8);e.exports=function e(t,s,a,c){if("function"==typeof s?(a=s,s={}):s&&"object"==typeof s||(s={mode:s}),"win32"===process.platform&&i(t)){const e=new Error(t+" contains invalid WIN32 path characters.");return e.code="EINVAL",a(e)}let l=s.mode;const u=s.fs||r;void 0===l&&(l=o&~process.umask()),c||(c=null),a=a||function(){},t=n.resolve(t),u.mkdir(t,l,(r=>{if(!r)return a(null,c=c||t);if("ENOENT"===r.code){if(n.dirname(t)===t)return a(r);e(n.dirname(t),s,((r,n)=>{r?a(r,n):e(t,s,a,n)}))}else u.stat(t,((e,t)=>{e||!t.isDirectory()?a(r,c):a(null,c)}))}))}},8856:(e,t,s)=>{"use strict";const r=s(7072);function n(e){return(e=r.normalize(r.resolve(e)).split(r.sep)).length>0?e[0]:null}const i=/[<>:"|?*]/;e.exports={getRootPath:n,invalidWin32Path:function(e){const t=n(e);return e=e.replace(t,""),i.test(e)}}},5440:(e,t,s)=>{"use strict";e.exports={moveSync:s(6128)}},6128:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(2820).copySync,o=s(7404).removeSync,a=s(7736).mkdirpSync,c=s(2200);function l(e,t,s){try{r.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throw r;return function(e,t,s){const r={overwrite:s,errorOnExist:!0};return i(e,t,r),o(e)}(e,t,s)}}e.exports=function(e,t,s){const i=(s=s||{}).overwrite||s.clobber||!1,{srcStat:u}=c.checkPathsSync(e,t,"move");return c.checkParentPathsSync(e,u,t,"move"),a(n.dirname(t)),function(e,t,s){if(s)return o(t),l(e,t,s);if(r.existsSync(t))throw new Error("dest already exists.");return l(e,t,s)}(e,t,i)}},344:(e,t,s)=>{"use strict";const r=s(4952).e;e.exports={move:r(s(680))}},680:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(9020).copy,o=s(7404).remove,a=s(7736).mkdirp,c=s(908).pathExists,l=s(2200);function u(e,t,s,n){r.rename(e,t,(r=>r?"EXDEV"!==r.code?n(r):function(e,t,s,r){const n={overwrite:s,errorOnExist:!0};i(e,t,n,(t=>t?r(t):o(e,r)))}(e,t,s,n):n()))}e.exports=function(e,t,s,r){"function"==typeof s&&(r=s,s={});const i=s.overwrite||s.clobber||!1;l.checkPaths(e,t,"move",((s,h)=>{if(s)return r(s);const{srcStat:p}=h;l.checkParentPaths(e,p,t,"move",(s=>{if(s)return r(s);a(n.dirname(t),(s=>s?r(s):function(e,t,s,r){if(s)return o(t,(n=>n?r(n):u(e,t,s,r)));c(t,((n,i)=>n?r(n):i?r(new Error("dest already exists.")):u(e,t,s,r)))}(e,t,i,r)))}))}))}},1528:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(4056),i=s(7072),o=s(7736),a=s(908).pathExists;e.exports={outputFile:r((function(e,t,s,r){"function"==typeof s&&(r=s,s="utf8");const c=i.dirname(e);a(c,((i,a)=>i?r(i):a?n.writeFile(e,t,s,r):void o.mkdirs(c,(i=>{if(i)return r(i);n.writeFile(e,t,s,r)}))))})),outputFileSync:function(e,...t){const s=i.dirname(e);if(n.existsSync(s))return n.writeFileSync(e,...t);o.mkdirsSync(s),n.writeFileSync(e,...t)}}},908:(e,t,s)=>{"use strict";const r=s(4952).u,n=s(2096);e.exports={pathExists:r((function(e){return n.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:n.existsSync}},7404:(e,t,s)=>{"use strict";const r=s(4952).e,n=s(8184);e.exports={remove:r(n),removeSync:n.sync}},8184:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=s(6608),o="win32"===process.platform;function a(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||r[t],e[t+="Sync"]=e[t]||r[t]})),e.maxBusyTries=e.maxBusyTries||3}function c(e,t,s){let r=0;"function"==typeof t&&(s=t,t={}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i.strictEqual(typeof s,"function","rimraf: callback function required"),i(t,"rimraf: invalid options argument provided"),i.strictEqual(typeof t,"object","rimraf: options should be object"),a(t),l(e,t,(function n(i){if(i){if(("EBUSY"===i.code||"ENOTEMPTY"===i.code||"EPERM"===i.code)&&r<t.maxBusyTries){r++;return setTimeout((()=>l(e,t,n)),100*r)}"ENOENT"===i.code&&(i=null)}s(i)}))}function l(e,t,s){i(e),i(t),i("function"==typeof s),t.lstat(e,((r,n)=>r&&"ENOENT"===r.code?s(null):r&&"EPERM"===r.code&&o?u(e,t,r,s):n&&n.isDirectory()?p(e,t,r,s):void t.unlink(e,(r=>{if(r){if("ENOENT"===r.code)return s(null);if("EPERM"===r.code)return o?u(e,t,r,s):p(e,t,r,s);if("EISDIR"===r.code)return p(e,t,r,s)}return s(r)}))))}function u(e,t,s,r){i(e),i(t),i("function"==typeof r),s&&i(s instanceof Error),t.chmod(e,438,(n=>{n?r("ENOENT"===n.code?null:s):t.stat(e,((n,i)=>{n?r("ENOENT"===n.code?null:s):i.isDirectory()?p(e,t,s,r):t.unlink(e,r)}))}))}function h(e,t,s){let r;i(e),i(t),s&&i(s instanceof Error);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw s}try{r=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw s}r.isDirectory()?f(e,t,s):t.unlinkSync(e)}function p(e,t,s,r){i(e),i(t),s&&i(s instanceof Error),i("function"==typeof r),t.rmdir(e,(o=>{!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?o&&"ENOTDIR"===o.code?r(s):r(o):function(e,t,s){i(e),i(t),i("function"==typeof s),t.readdir(e,((r,i)=>{if(r)return s(r);let o,a=i.length;if(0===a)return t.rmdir(e,s);i.forEach((r=>{c(n.join(e,r),t,(r=>{if(!o)return r?s(o=r):void(0==--a&&t.rmdir(e,s))}))}))}))}(e,t,r)}))}function d(e,t){let s;a(t=t||{}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i(t,"rimraf: missing options"),i.strictEqual(typeof t,"object","rimraf: options should be object");try{s=t.lstatSync(e)}catch(s){if("ENOENT"===s.code)return;"EPERM"===s.code&&o&&h(e,t,s)}try{s&&s.isDirectory()?f(e,t,null):t.unlinkSync(e)}catch(s){if("ENOENT"===s.code)return;if("EPERM"===s.code)return o?h(e,t,s):f(e,t,s);if("EISDIR"!==s.code)throw s;f(e,t,s)}}function f(e,t,s){i(e),i(t),s&&i(s instanceof Error);try{t.rmdirSync(e)}catch(r){if("ENOTDIR"===r.code)throw s;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(e,t){if(i(e),i(t),t.readdirSync(e).forEach((s=>d(n.join(e,s),t))),!o){return t.rmdirSync(e,t)}{const s=Date.now();do{try{return t.rmdirSync(e,t)}catch(e){}}while(Date.now()-s<500)}}(e,t);else if("ENOENT"!==r.code)throw r}}e.exports=c,c.sync=d},3400:e=>{"use strict";e.exports=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(e)}catch(t){return new Buffer(e)}return new Buffer(e)}},2200:(e,t,s)=>{"use strict";const r=s(4056),n=s(7072),i=10,o=5,a=0,c=process.versions.node.split("."),l=Number.parseInt(c[0],10),u=Number.parseInt(c[1],10),h=Number.parseInt(c[2],10);function p(){if(l>i)return!0;if(l===i){if(u>o)return!0;if(u===o&&h>=a)return!0}return!1}function d(e,t){const s=n.resolve(e).split(n.sep).filter((e=>e)),r=n.resolve(t).split(n.sep).filter((e=>e));return s.reduce(((e,t,s)=>e&&r[s]===t),!0)}function f(e,t,s){return`Cannot ${s} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:function(e,t,s,n){!function(e,t,s){p()?r.stat(e,{bigint:!0},((e,n)=>{if(e)return s(e);r.stat(t,{bigint:!0},((e,t)=>e?"ENOENT"===e.code?s(null,{srcStat:n,destStat:null}):s(e):s(null,{srcStat:n,destStat:t})))})):r.stat(e,((e,n)=>{if(e)return s(e);r.stat(t,((e,t)=>e?"ENOENT"===e.code?s(null,{srcStat:n,destStat:null}):s(e):s(null,{srcStat:n,destStat:t})))}))}(e,t,((r,i)=>{if(r)return n(r);const{srcStat:o,destStat:a}=i;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&d(e,t)?n(new Error(f(e,t,s))):n(null,{srcStat:o,destStat:a})}))},checkPathsSync:function(e,t,s){const{srcStat:n,destStat:i}=function(e,t){let s,n;s=p()?r.statSync(e,{bigint:!0}):r.statSync(e);try{n=p()?r.statSync(t,{bigint:!0}):r.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:n}}(e,t);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&d(e,t))throw new Error(f(e,t,s));return{srcStat:n,destStat:i}},checkParentPaths:function e(t,s,i,o,a){const c=n.resolve(n.dirname(t)),l=n.resolve(n.dirname(i));if(l===c||l===n.parse(l).root)return a();p()?r.stat(l,{bigint:!0},((r,n)=>r?"ENOENT"===r.code?a():a(r):n.ino&&n.dev&&n.ino===s.ino&&n.dev===s.dev?a(new Error(f(t,i,o))):e(t,s,l,o,a))):r.stat(l,((r,n)=>r?"ENOENT"===r.code?a():a(r):n.ino&&n.dev&&n.ino===s.ino&&n.dev===s.dev?a(new Error(f(t,i,o))):e(t,s,l,o,a)))},checkParentPathsSync:function e(t,s,i,o){const a=n.resolve(n.dirname(t)),c=n.resolve(n.dirname(i));if(c===a||c===n.parse(c).root)return;let l;try{l=p()?r.statSync(c,{bigint:!0}):r.statSync(c)}catch(e){if("ENOENT"===e.code)return;throw e}if(l.ino&&l.dev&&l.ino===s.ino&&l.dev===s.dev)throw new Error(f(t,i,o));return e(t,s,c,o)},isSrcSubdir:d}},9968:(e,t,s)=>{"use strict";const r=s(4056),n=s(8558),i=s(7072);e.exports={hasMillisRes:function(e){let t=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));t=i.join(n.tmpdir(),t);const s=new Date(1435410243862);r.writeFile(t,"https://github.com/jprichardson/node-fs-extra/pull/141",(n=>{if(n)return e(n);r.open(t,"r+",((n,i)=>{if(n)return e(n);r.futimes(i,s,s,(s=>{if(s)return e(s);r.close(i,(s=>{if(s)return e(s);r.stat(t,((t,s)=>{if(t)return e(t);e(null,s.mtime>1435410243e3)}))}))}))}))}))},hasMillisResSync:function(){let e=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));e=i.join(n.tmpdir(),e);const t=new Date(1435410243862);r.writeFileSync(e,"https://github.com/jprichardson/node-fs-extra/pull/141");const s=r.openSync(e,"r+");return r.futimesSync(s,t,t),r.closeSync(s),r.statSync(e).mtime>1435410243e3},timeRemoveMillis:function(e){if("number"==typeof e)return 1e3*Math.floor(e/1e3);if(e instanceof Date)return new Date(1e3*Math.floor(e.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(e,t,s,n){r.open(e,"r+",((e,i)=>{if(e)return n(e);r.futimes(i,t,s,(e=>{r.close(i,(t=>{n&&n(e||t)}))}))}))},utimesMillisSync:function(e,t,s){const n=r.openSync(e,"r+");return r.futimesSync(n,t,s),r.closeSync(n)}}},1848:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var s={__proto__:t(e)};else s=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(e,t))})),s};var t=Object.getPrototypeOf||function(e){return e.__proto__}},4056:(e,t,s)=>{var r,n,i=s(2058),o=s(7780),a=s(4432),c=s(1848),l=s(970);function u(e,t){Object.defineProperty(e,r,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),n=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",n="___graceful-fs.previous");var h,p=function(){};if(l.debuglog?p=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!i[r]){var d=global[r]||[];u(i,d),i.close=function(e){function t(t,s){return e.call(i,t,(function(e){e||g(),"function"==typeof s&&s.apply(this,arguments)}))}return Object.defineProperty(t,n,{value:e}),t}(i.close),i.closeSync=function(e){function t(t){e.apply(i,arguments),g()}return Object.defineProperty(t,n,{value:e}),t}(i.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){p(i[r]),s(6608).equal(i[r].length,0)}))}function f(e){o(e),e.gracefulify=f,e.createReadStream=function(t,s){return new e.ReadStream(t,s)},e.createWriteStream=function(t,s){return new e.WriteStream(t,s)};var t=e.readFile;e.readFile=function(e,s,r){"function"==typeof s&&(r=s,s=null);return function e(s,r,n,i){return t(s,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof n&&n.apply(this,arguments):m([e,[s,r,n],t,i||Date.now(),Date.now()])}))}(e,s,r)};var s=e.writeFile;e.writeFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=null);return function e(t,r,n,i,o){return s(t,r,n,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,r,n,i],s,o||Date.now(),Date.now()])}))}(e,t,r,n)};var r=e.appendFile;r&&(e.appendFile=function(e,t,s,n){"function"==typeof s&&(n=s,s=null);return function e(t,s,n,i,o){return r(t,s,n,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,s,n,i],r,o||Date.now(),Date.now()])}))}(e,t,s,n)});var n=e.copyFile;n&&(e.copyFile=function(e,t,s,r){"function"==typeof s&&(r=s,s=0);return function e(t,s,r,i,o){return n(t,s,r,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,s,r,i],n,o||Date.now(),Date.now()])}))}(e,t,s,r)});var i=e.readdir;e.readdir=function(e,t,s){"function"==typeof t&&(s=t,t=null);var r=c.test(process.version)?function(e,t,s,r){return i(e,n(e,t,s,r))}:function(e,t,s,r){return i(e,t,n(e,t,s,r))};return r(e,t,s);function n(e,t,s,n){return function(i,o){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?(o&&o.sort&&o.sort(),"function"==typeof s&&s.call(this,i,o)):m([r,[e,t,s],i,n||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,y=l.WriteStream}var u=e.ReadStream;u&&(g.prototype=Object.create(u.prototype),g.prototype.open=function(){var e=this;E(e.path,e.flags,e.mode,(function(t,s){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=s,e.emit("open",s),e.read())}))});var h=e.WriteStream;h&&(y.prototype=Object.create(h.prototype),y.prototype.open=function(){var e=this;E(e.path,e.flags,e.mode,(function(t,s){t?(e.destroy(),e.emit("error",t)):(e.fd=s,e.emit("open",s))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var p=g;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var d=y;function g(e,t){return this instanceof g?(u.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function y(e,t){return this instanceof y?(h.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var S=e.open;function E(e,t,s,r){return"function"==typeof s&&(r=s,s=null),function e(t,s,r,n,i){return S(t,s,r,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof n&&n.apply(this,arguments):m([e,[t,s,r,n],o,i||Date.now(),Date.now()])}))}(e,t,s,r)}return e.open=E,e}function m(e){p("ENQUEUE",e[0].name,e[1]),i[r].push(e),y()}function g(){for(var e=Date.now(),t=0;t<i[r].length;++t)i[r][t].length>2&&(i[r][t][3]=e,i[r][t][4]=e);y()}function y(){if(clearTimeout(h),h=void 0,0!==i[r].length){var e=i[r].shift(),t=e[0],s=e[1],n=e[2],o=e[3],a=e[4];if(void 0===o)p("RETRY",t.name,s),t.apply(null,s);else if(Date.now()-o>=6e4){p("TIMEOUT",t.name,s);var c=s.pop();"function"==typeof c&&c.call(null,n)}else{var l=Date.now()-a,u=Math.max(a-o,1);l>=Math.min(1.2*u,100)?(p("RETRY",t.name,s),t.apply(null,s.concat([o]))):i[r].push(e)}void 0===h&&(h=setTimeout(y,0))}}global[r]||u(global,i[r]),e.exports=f(c(i)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched&&(e.exports=f(i),i.__patched=!0)},4432:(e,t,s)=>{var r=s(8378).Stream;e.exports=function(e){return{ReadStream:function t(s,n){if(!(this instanceof t))return new t(s,n);r.call(this);var i=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var o=Object.keys(n),a=0,c=o.length;a<c;a++){var l=o[a];this[l]=n[l]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(s,n){if(!(this instanceof t))return new t(s,n);r.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),o=0,a=i.length;o<a;o++){var c=i[o];this[c]=n[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},7780:(e,t,s)=>{var r=s(7116),n=process.cwd,i=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){i=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,s,n){e.open(t,r.O_WRONLY|r.O_SYMLINK,s,(function(t,r){t?n&&n(t):e.fchmod(r,s,(function(t){e.close(r,(function(e){n&&n(t||e)}))}))}))},e.lchmodSync=function(t,s){var n,i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,s),o=!0;try{n=e.fchmodSync(i,s),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){r.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,s,n,i){e.open(t,r.O_SYMLINK,(function(t,r){t?i&&i(t):e.futimes(r,s,n,(function(t){e.close(r,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,s,n){var i,o=e.openSync(t,r.O_SYMLINK),a=!0;try{i=e.futimesSync(o,s,n),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):e.futimes&&(e.lutimes=function(e,t,s,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}(e);e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,s){s&&process.nextTick(s)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,s,r){r&&process.nextTick(r)},e.lchownSync=function(){});"win32"===o&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function s(s,r,n){var i=Date.now(),o=0;t(s,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-i<6e4)return setTimeout((function(){e.stat(r,(function(e,i){e&&"ENOENT"===e.code?t(s,r,a):n(c)}))}),o),void(o<100&&(o+=10));n&&n(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(s,t),s}(e.rename));function t(t){return t?function(s,r,n){return t.call(e,s,r,(function(e){l(e)&&(e=null),n&&n.apply(this,arguments)}))}:t}function s(t){return t?function(s,r){try{return t.call(e,s,r)}catch(e){if(!l(e))throw e}}:t}function n(t){return t?function(s,r,n,i){return t.call(e,s,r,n,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function i(t){return t?function(s,r,n){try{return t.call(e,s,r,n)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(s,r,n){function i(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),n&&n.apply(this,arguments)}return"function"==typeof r&&(n=r,r=null),r?t.call(e,s,r,i):t.call(e,s,i)}:t}function c(t){return t?function(s,r){var n=r?t.call(e,s,r):t.call(e,s);return n&&(n.uid<0&&(n.uid+=4294967296),n.gid<0&&(n.gid+=4294967296)),n}:t}function l(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function s(s,r,n,i,o,a){var c;if(a&&"function"==typeof a){var l=0;c=function(u,h,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,s,r,n,i,o,c);a.apply(this,arguments)}}return t.call(e,s,r,n,i,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(s,t),s}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(u=e.readSync,function(t,s,r,n,i){for(var o=0;;)try{return u.call(e,t,s,r,n,i)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var u}},8920:e=>{"use strict";e.exports=(e,t=process.argv)=>{const s=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(s+e),n=t.indexOf("--");return-1!==r&&(-1===n||r<n)}},6368:(e,t,s)=>{var r;try{r=s(4056)}catch(e){r=s(2058)}function n(e,t){var s,r="\n";return"object"==typeof t&&null!==t&&(t.spaces&&(s=t.spaces),t.EOL&&(r=t.EOL)),JSON.stringify(e,t?t.replacer:null,s).replace(/\n/g,r)+r}function i(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e=e.replace(/^\uFEFF/,"")}var o={readFile:function(e,t,s){null==s&&(s=t,t={}),"string"==typeof t&&(t={encoding:t});var n=(t=t||{}).fs||r,o=!0;"throws"in t&&(o=t.throws),n.readFile(e,t,(function(r,n){if(r)return s(r);var a;n=i(n);try{a=JSON.parse(n,t?t.reviver:null)}catch(t){return o?(t.message=e+": "+t.message,s(t)):s(null,null)}s(null,a)}))},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});var s=t.fs||r,n=!0;"throws"in t&&(n=t.throws);try{var o=s.readFileSync(e,t);return o=i(o),JSON.parse(o,t.reviver)}catch(t){if(n)throw t.message=e+": "+t.message,t;return null}},writeFile:function(e,t,s,i){null==i&&(i=s,s={});var o=(s=s||{}).fs||r,a="";try{a=n(t,s)}catch(e){return void(i&&i(e,null))}o.writeFile(e,a,s,i)},writeFileSync:function(e,t,s){var i=(s=s||{}).fs||r,o=n(t,s);return i.writeFileSync(e,o,s)}};e.exports=o},8688:(e,t,s)=>{const r=s(5504),n=s(4424);const i=new class{constructor(){const e={__LOG4JS_undefined__:void 0,__LOG4JS_NaN__:Number("abc"),__LOG4JS_Infinity__:1/0,"__LOG4JS_-Infinity__":-1/0};this.deMap=e,this.serMap={},Object.keys(this.deMap).forEach((e=>{const t=this.deMap[e];this.serMap[t]=e}))}canSerialise(e){return"string"!=typeof e&&e in this.serMap}serialise(e){return this.canSerialise(e)?this.serMap[e]:e}canDeserialise(e){return e in this.deMap}deserialise(e){return this.canDeserialise(e)?this.deMap[e]:e}};class o{constructor(e,t,s,r,n,i){if(this.startTime=new Date,this.categoryName=e,this.data=s,this.level=t,this.context=Object.assign({},r),this.pid=process.pid,this.error=i,void 0!==n){if(!n||"object"!=typeof n||Array.isArray(n))throw new TypeError("Invalid location type passed to LoggingEvent constructor");this.constructor._getLocationKeys().forEach((e=>{void 0!==n[e]&&(this[e]=n[e])}))}}static _getLocationKeys(){return["fileName","lineNumber","columnNumber","callStack","className","functionName","functionAlias","callerName"]}serialise(){return r.stringify(this,((e,t)=>(t instanceof Error&&(t=Object.assign({message:t.message,stack:t.stack},t)),i.serialise(t))))}static deserialise(e){let t;try{const s=r.parse(e,((e,t)=>{if(t&&t.message&&t.stack){const e=new Error(t);Object.keys(t).forEach((s=>{e[s]=t[s]})),t=e}return i.deserialise(t)}));this._getLocationKeys().forEach((e=>{void 0!==s[e]&&(s.location||(s.location={}),s.location[e]=s[e])})),t=new o(s.categoryName,n.getLevel(s.level.levelStr),s.data,s.context,s.location,s.error),t.startTime=new Date(s.startTime),t.pid=s.pid,s.cluster&&(t.cluster=s.cluster)}catch(s){t=new o("log4js",n.ERROR,["Unable to parse log:",e,"because: ",s])}return t}}e.exports=o},8400:e=>{function t(e){if("number"==typeof e&&Number.isInteger(e))return e;const t={K:1024,M:1048576,G:1073741824},s=Object.keys(t),r=e.slice(-1).toLocaleUpperCase(),n=e.slice(0,-1).trim();if(s.indexOf(r)<0||!Number.isInteger(Number(n)))throw Error(`maxLogSize: "${e}" is invalid`);return n*t[r]}function s(e){return function(e,t){const s=Object.assign({},t);return Object.keys(e).forEach((r=>{s[r]&&(s[r]=e[r](t[r]))})),s}({maxLogSize:t},e)}const r={dateFile:s,file:s,fileSync:s};e.exports.modifyConfig=e=>r[e.type]?r[e.type](e):e},2504:(e,t,s)=>{const r=s(5432)("log4js:categoryFilter");e.exports.configure=function(e,t,s){const n=s(e.appender);return function(e,t){return"string"==typeof e&&(e=[e]),s=>{r(`Checking ${s.categoryName} against ${e}`),-1===e.indexOf(s.categoryName)&&(r("Not excluded, sending to appender"),t(s))}}(e.exclude,n)}},60:e=>{const t=console.log.bind(console);e.exports.configure=function(e,s){let r=s.colouredLayout;return e.layout&&(r=s.layout(e.layout.type,e.layout)),function(e,s){return r=>{t(e(r,s))}}(r,e.timezoneOffset)}},2704:(e,t,s)=>{const r=s(8564),n=s(8558).EOL;function i(e,t,s,i,o){i.maxSize=i.maxLogSize;const a=function(e,t,s){const n=new r.DateRollingFileStream(e,t,s);return n.on("error",(t=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",e,t)})),n.on("drain",(()=>{process.emit("log4js:pause",!1)})),n}(e,t,i),c=function(e){a.writable&&(a.write(s(e,o)+n,"utf8")||process.emit("log4js:pause",!0))};return c.shutdown=function(e){a.end("","utf-8",e)},c}e.exports.configure=function(e,t){let s=t.basicLayout;return e.layout&&(s=t.layout(e.layout.type,e.layout)),e.alwaysIncludePattern||(e.alwaysIncludePattern=!1),e.mode=e.mode||384,i(e.filename,e.pattern,s,e,e.timezoneOffset)}},5736:(e,t,s)=>{const r=s(5432)("log4js:file"),n=s(7072),i=s(8564),o=s(8558),a=o.EOL;let c=!1;const l=new Set;function u(){l.forEach((e=>{e.sighupHandler()}))}e.exports.configure=function(e,t){let s=t.basicLayout;return e.layout&&(s=t.layout(e.layout.type,e.layout)),e.mode=e.mode||384,function(e,t,s,h,p,d){if("string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(n.sep))throw new Error(`Filename is a directory: ${e}`);function f(e,t,s,r){const n=new i.RollingFileStream(e,t,s,r);return n.on("error",(t=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",e,t)})),n.on("drain",(()=>{process.emit("log4js:pause",!1)})),n}0===e.indexOf(`~${n.sep}`)&&(e=e.replace("~",o.homedir())),e=n.normalize(e),r("Creating file appender (",e,", ",s,", ",h=h||0===h?h:5,", ",p,", ",d,")");let m=f(e,s,h,p);const g=function(e){if(m.writable){if(!0===p.removeColor){const t=/\x1b[[0-9;]*m/g;e.data=e.data.map((e=>"string"==typeof e?e.replace(t,""):e))}m.write(t(e,d)+a,"utf8")||process.emit("log4js:pause",!0)}};return g.reopen=function(){m.end((()=>{m=f(e,s,h,p)}))},g.sighupHandler=function(){r("SIGHUP handler called."),g.reopen()},g.shutdown=function(e){l.delete(g),0===l.size&&c&&(process.removeListener("SIGHUP",u),c=!1),m.end("","utf-8",e)},l.add(g),c||(process.on("SIGHUP",u),c=!0),g}(e.filename,s,e.maxLogSize,e.backups,e,e.timezoneOffset)}},2976:(e,t,s)=>{const r=s(5432)("log4js:fileSync"),n=s(7072),i=s(2058),o=s(8558),a=o.EOL;function c(e,t){const s=e=>{try{return i.mkdirSync(e,{recursive:!0})}catch(t){if("ENOENT"===t.code)return s(n.dirname(e)),s(e);if("EEXIST"!==t.code&&"EROFS"!==t.code)throw t;try{if(i.statSync(e).isDirectory())return e;throw t}catch(e){throw t}}};s(n.dirname(e)),i.appendFileSync(e,"",{mode:t.mode,flag:t.flags})}class l{constructor(e,t,s,n){if(r("In RollingFileStream"),t<0)throw new Error(`maxLogSize (${t}) should be > 0`);this.filename=e,this.size=t,this.backups=s,this.options=n,this.currentSize=0,this.currentSize=function(e){let t=0;try{t=i.statSync(e).size}catch(t){c(e,n)}return t}(this.filename)}shouldRoll(){return r("should roll with current size %d, and max size %d",this.currentSize,this.size),this.currentSize>=this.size}roll(e){const t=this,s=new RegExp(`^${n.basename(e)}`);function o(e){return s.test(e)}function a(t){return parseInt(t.slice(`${n.basename(e)}.`.length),10)||0}function c(e,t){return a(e)-a(t)}function l(s){const o=a(s);if(r(`Index of ${s} is ${o}`),0===t.backups)i.truncateSync(e,0);else if(o<t.backups){try{i.unlinkSync(`${e}.${o+1}`)}catch(e){}r(`Renaming ${s} -> ${e}.${o+1}`),i.renameSync(n.join(n.dirname(e),s),`${e}.${o+1}`)}}r("Rolling, rolling, rolling"),r("Renaming the old files"),i.readdirSync(n.dirname(e)).filter(o).sort(c).reverse().forEach(l)}write(e,t){const s=this;r("in write"),this.shouldRoll()&&(this.currentSize=0,this.roll(this.filename)),r("writing the chunk to the file"),s.currentSize+=e.length,i.appendFileSync(s.filename,e)}}e.exports.configure=function(e,t){let s=t.basicLayout;e.layout&&(s=t.layout(e.layout.type,e.layout));const u={flags:e.flags||"a",encoding:e.encoding||"utf8",mode:e.mode||384};return function(e,t,s,u,h,p){if("string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(n.sep))throw new Error(`Filename is a directory: ${e}`);0===e.indexOf(`~${n.sep}`)&&(e=e.replace("~",o.homedir())),e=n.normalize(e),r("Creating fileSync appender (",e,", ",s,", ",u=u||0===u?u:5,", ",h,", ",p,")");const d=function(e,t,s){let r;var n;return t?r=new l(e,t,s,h):(c(n=e,h),r={write(e){i.appendFileSync(n,e)}}),r}(e,s,u);return e=>{d.write(t(e,p)+a)}}(e.filename,s,e.maxLogSize,e.backups,u,e.timezoneOffset)}},4408:(e,t,s)=>{const r=s(7072),n=s(5432)("log4js:appenders"),i=s(7388),o=s(7148),a=s(4424),c=s(6040),l=s(8400),u=new Map;u.set("console",s(60)),u.set("stdout",s(9616)),u.set("stderr",s(1156)),u.set("logLevelFilter",s(8428)),u.set("categoryFilter",s(2504)),u.set("noLogFilter",s(5456)),u.set("file",s(5736)),u.set("dateFile",s(2704)),u.set("fileSync",s(2976)),u.set("tcp",s(8448));const h=new Map,p=(e,t)=>{let r;try{const t=`${e}.cjs`;r=s(2444).resolve(t),n("Loading module from ",t)}catch(t){r=e,n("Loading module from ",e)}try{return s(2444)(r)}catch(s){return void i.throwExceptionIf(t,"MODULE_NOT_FOUND"!==s.code,`appender "${e}" could not be loaded (error was: ${s})`)}},d=new Set,f=(e,t)=>{if(h.has(e))return h.get(e);if(!t.appenders[e])return!1;if(d.has(e))throw new Error(`Dependency loop detected for appender ${e}.`);d.add(e),n(`Creating appender ${e}`);const s=m(e,t);return d.delete(e),h.set(e,s),s},m=(e,t)=>{const h=t.appenders[e],d=h.type.configure?h.type:((e,t)=>u.get(e)||p(`./${e}`,t)||p(e,t)||s.c[s.s]&&s.c[s.s].filename&&p(r.join(r.dirname(s.c[s.s].filename),e),t)||p(r.join(process.cwd(),e),t))(h.type,t);return i.throwExceptionIf(t,i.not(d),`appender "${e}" is not valid (type "${h.type}" could not be found)`),d.appender&&(process.emitWarning(`Appender ${h.type} exports an appender function.`,"DeprecationWarning","log4js-node-DEP0001"),n("[log4js-node-DEP0001]",`DEPRECATION: Appender ${h.type} exports an appender function.`)),d.shutdown&&(process.emitWarning(`Appender ${h.type} exports a shutdown function.`,"DeprecationWarning","log4js-node-DEP0002"),n("[log4js-node-DEP0002]",`DEPRECATION: Appender ${h.type} exports a shutdown function.`)),n(`${e}: clustering.isMaster ? ${o.isMaster()}`),n(`${e}: appenderModule is ${s(970).inspect(d)}`),o.onlyOnMaster((()=>(n(`calling appenderModule.configure for ${e} / ${h.type}`),d.configure(l.modifyConfig(h),c,(e=>f(e,t)),a))),(()=>{}))},g=e=>{if(h.clear(),d.clear(),!e)return;const t=[];Object.values(e.categories).forEach((e=>{t.push(...e.appenders)})),Object.keys(e.appenders).forEach((s=>{(t.includes(s)||"tcp-server"===e.appenders[s].type||"multiprocess"===e.appenders[s].type)&&f(s,e)}))},y=()=>{g()};y(),i.addListener((e=>{i.throwExceptionIf(e,i.not(i.anObject(e.appenders)),'must have a property "appenders" of type object.');const t=Object.keys(e.appenders);i.throwExceptionIf(e,i.not(t.length),"must define at least one appender."),t.forEach((t=>{i.throwExceptionIf(e,i.not(e.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)}))})),i.addListener(g),e.exports=h,e.exports.init=y},8428:e=>{e.exports.configure=function(e,t,s,r){const n=s(e.appender);return function(e,t,s,r){const n=r.getLevel(e),i=r.getLevel(t,r.FATAL);return e=>{const t=e.level;n.isLessThanOrEqualTo(t)&&i.isGreaterThanOrEqualTo(t)&&s(e)}}(e.level,e.maxLevel,n,r)}},5456:(e,t,s)=>{const r=s(5432)("log4js:noLogFilter");e.exports.configure=function(e,t,s){const n=s(e.appender);return function(e,t){return s=>{r(`Checking data: ${s.data} against filters: ${e}`),"string"==typeof e&&(e=[e]),e=e.filter((e=>null!=e&&""!==e));const n=new RegExp(e.join("|"),"i");(0===e.length||s.data.findIndex((e=>n.test(e)))<0)&&(r("Not excluded, sending to appender"),t(s))}}(e.exclude,n)}},7920:(e,t,s)=>{const r=s(5432)("log4js:recording"),n=[];function i(){return n.slice()}function o(){n.length=0}e.exports={configure:function(){return function(e){r(`received logEvent, number of events now ${n.length+1}`),r("log event was ",e),n.push(e)}},replay:i,playback:i,reset:o,erase:o}},1156:e=>{e.exports.configure=function(e,t){let s=t.colouredLayout;return e.layout&&(s=t.layout(e.layout.type,e.layout)),function(e,t){return s=>{process.stderr.write(`${e(s,t)}\n`)}}(s,e.timezoneOffset)}},9616:(e,t)=>{t.configure=function(e,t){let s=t.colouredLayout;return e.layout&&(s=t.layout(e.layout.type,e.layout)),function(e,t){return s=>{process.stdout.write(`${e(s,t)}\n`)}}(s,e.timezoneOffset)}},8448:(e,t,s)=>{const r=s(5432)("log4js:tcp"),n=s(5256);e.exports.configure=function(e,t){r(`configure with config = ${e}`);let s=function(e){return e.serialise()};return e.layout&&(s=t.layout(e.layout.type,e.layout)),function(e,t){let s=!1;const i=[];let o,a=3,c="__LOG4JS__";function l(e){r("Writing log event to socket"),s=o.write(`${t(e)}${c}`,"utf8")}function u(){let e;for(r("emptying buffer");e=i.shift();)l(e)}function h(e){s?l(e):(r("buffering log event because it cannot write at the moment"),i.push(e))}return function t(){r(`appender creating socket to ${e.host||"localhost"}:${e.port||5e3}`),c=`${e.endMsg||"__LOG4JS__"}`,o=n.createConnection(e.port||5e3,e.host||"localhost"),o.on("connect",(()=>{r("socket connected"),u(),s=!0})),o.on("drain",(()=>{r("drain event received, emptying buffer"),s=!0,u()})),o.on("timeout",o.end.bind(o)),o.on("error",(e=>{r("connection error",e),s=!1,u()})),o.on("close",t)}(),h.shutdown=function(e){r("shutdown called"),i.length&&a?(r("buffer has items, waiting 100ms to empty"),a-=1,setTimeout((()=>{h.shutdown(e)}),100)):(o.removeAllListeners("close"),o.end(e))},h}(e,s)}},2444:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=2444,e.exports=t},9244:(e,t,s)=>{const r=s(5432)("log4js:categories"),n=s(7388),i=s(4424),o=s(4408),a=new Map;function c(e,t,s){if(!1===t.inherit)return;const r=s.lastIndexOf(".");if(r<0)return;const n=s.slice(0,r);let i=e.categories[n];i||(i={inherit:!0,appenders:[]}),c(e,i,n),!e.categories[n]&&i.appenders&&i.appenders.length&&i.level&&(e.categories[n]=i),t.appenders=t.appenders||[],t.level=t.level||i.level,i.appenders.forEach((e=>{t.appenders.includes(e)||t.appenders.push(e)})),t.parent=i}function l(e){if(!e.categories)return;Object.keys(e.categories).forEach((t=>{const s=e.categories[t];c(e,s,t)}))}n.addPreProcessingListener((e=>l(e))),n.addListener((e=>{n.throwExceptionIf(e,n.not(n.anObject(e.categories)),'must have a property "categories" of type object.');const t=Object.keys(e.categories);n.throwExceptionIf(e,n.not(t.length),"must define at least one category."),t.forEach((t=>{const s=e.categories[t];n.throwExceptionIf(e,[n.not(s.appenders),n.not(s.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),n.throwExceptionIf(e,n.not(Array.isArray(s.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),n.throwExceptionIf(e,n.not(s.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(s,"enableCallStack")&&n.throwExceptionIf(e,"boolean"!=typeof s.enableCallStack,`category "${t}" is not valid (enableCallStack must be boolean type)`),s.appenders.forEach((s=>{n.throwExceptionIf(e,n.not(o.get(s)),`category "${t}" is not valid (appender "${s}" is not defined)`)})),n.throwExceptionIf(e,n.not(i.getLevel(s.level)),`category "${t}" is not valid (level "${s.level}" not recognised; valid levels are ${i.levels.join(", ")})`)})),n.throwExceptionIf(e,n.not(e.categories.default),'must define a "default" category.')}));const u=e=>{if(a.clear(),!e)return;Object.keys(e.categories).forEach((t=>{const s=e.categories[t],n=[];s.appenders.forEach((e=>{n.push(o.get(e)),r(`Creating category ${t}`),a.set(t,{appenders:n,level:i.getLevel(s.level),enableCallStack:s.enableCallStack||!1})}))}))},h=()=>{u()};h(),n.addListener(u);const p=e=>{if(r(`configForCategory: searching for config for ${e}`),a.has(e))return r(`configForCategory: ${e} exists in config, returning it`),a.get(e);let t;return e.indexOf(".")>0?(r(`configForCategory: ${e} has hierarchy, cloning from parents`),t={...p(e.slice(0,e.lastIndexOf(".")))}):(a.has("default")||u({categories:{default:{appenders:["out"],level:"OFF"}}}),r("configForCategory: cloning default category"),t={...a.get("default")}),a.set(e,t),t};e.exports=a,e.exports=Object.assign(e.exports,{appendersForCategory:e=>p(e).appenders,getLevelForCategory:e=>p(e).level,setLevelForCategory:(e,t)=>{p(e).level=t},getEnableCallStackForCategory:e=>!0===p(e).enableCallStack,setEnableCallStackForCategory:(e,t)=>{p(e).enableCallStack=t},init:h})},7148:(e,t,s)=>{const r=s(5432)("log4js:clustering"),n=s(8688),i=s(7388);let o=!1,a=null;try{a=s(1840)}catch(e){r("cluster module not present"),o=!0}const c=[];let l=!1,u="NODE_APP_INSTANCE";const h=()=>l&&"0"===process.env[u],p=()=>o||a&&a.isMaster||h(),d=e=>{c.forEach((t=>t(e)))},f=(e,t)=>{if(r("cluster message received from worker ",e,": ",t),e.topic&&e.data&&(t=e,e=void 0),t&&t.topic&&"log4js:message"===t.topic){r("received message: ",t.data);const e=n.deserialise(t.data);d(e)}};o||i.addListener((e=>{c.length=0,({pm2:l,disableClustering:o,pm2InstanceVar:u="NODE_APP_INSTANCE"}=e),r(`clustering disabled ? ${o}`),r(`cluster.isMaster ? ${a&&a.isMaster}`),r(`pm2 enabled ? ${l}`),r(`pm2InstanceVar = ${u}`),r(`process.env[${u}] = ${process.env[u]}`),l&&process.removeListener("message",f),a&&a.removeListener&&a.removeListener("message",f),o||e.disableClustering?r("Not listening for cluster messages, because clustering disabled."):h()?(r("listening for PM2 broadcast messages"),process.on("message",f)):a&&a.isMaster?(r("listening for cluster messages"),a.on("message",f)):r("not listening for messages, because we are not a master process")})),e.exports={onlyOnMaster:(e,t)=>p()?e():t,isMaster:p,send:e=>{p()?d(e):(l||(e.cluster={workerId:a.worker.id,worker:process.pid}),process.send({topic:"log4js:message",data:e.serialise()}))},onMessage:e=>{c.push(e)}}},7388:(e,t,s)=>{const r=s(970),n=s(5432)("log4js:configuration"),i=[],o=[],a=e=>!e,c=e=>e&&"object"==typeof e&&!Array.isArray(e),l=(e,t,s)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${r.inspect(e,{depth:5})}) - ${s}`)}))};e.exports={configure:e=>{n("New configuration to be validated: ",e),l(e,a(c(e)),"must be an object."),n(`Calling pre-processing listeners (${i.length})`),i.forEach((t=>t(e))),n("Configuration pre-processing finished."),n(`Calling configuration listeners (${o.length})`),o.forEach((t=>t(e))),n("Configuration finished.")},addListener:e=>{o.push(e),n(`Added listener, now ${o.length} listeners`)},addPreProcessingListener:e=>{i.push(e),n(`Added pre-processing listener, now ${i.length} listeners`)},throwExceptionIf:l,anObject:c,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:a}},9216:(e,t,s)=>{const r=s(4424);function n(e){return e.originalUrl||e.url}function i(e,t){for(let s=0;s<t.length;s++)e=e.replace(t[s].token,t[s].replacement);return e}e.exports=function(e,t){t="string"==typeof t||"function"==typeof t?{format:t}:t||{};const s=e;let o=r.getLevel(t.level,r.INFO);const a=t.format||':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';return(e,c,l)=>{if(void 0!==e._logging)return l();if("function"!=typeof t.nolog){const s=function(e){let t=null;if(e instanceof RegExp&&(t=e),"string"==typeof e&&(t=new RegExp(e)),Array.isArray(e)){const s=e.map((e=>e.source?e.source:e));t=new RegExp(s.join("|"))}return t}(t.nolog);if(s&&s.test(e.originalUrl))return l()}if(s.isLevelEnabled(o)||"auto"===t.level){const l=new Date,{writeHead:u}=c;e._logging=!0,c.writeHead=(e,t)=>{c.writeHead=u,c.writeHead(e,t),c.__statusCode=e,c.__headers=t||{}};let h=!1;const p=()=>{if(h)return;if(h=!0,"function"==typeof t.nolog&&!0===t.nolog(e,c))return void(e._logging=!1);c.responseTime=new Date-l,c.statusCode&&"auto"===t.level&&(o=r.INFO,c.statusCode>=300&&(o=r.WARN),c.statusCode>=400&&(o=r.ERROR)),o=function(e,t,s){let n=t;if(s){const t=s.find((t=>{let s=!1;return s=t.from&&t.to?e>=t.from&&e<=t.to:-1!==t.codes.indexOf(e),s}));t&&(n=r.getLevel(t.level,n))}return n}(c.statusCode,o,t.statusRules);const u=function(e,t,s){const r=[];return r.push({token:":url",replacement:n(e)}),r.push({token:":protocol",replacement:e.protocol}),r.push({token:":hostname",replacement:e.hostname}),r.push({token:":method",replacement:e.method}),r.push({token:":status",replacement:t.__statusCode||t.statusCode}),r.push({token:":response-time",replacement:t.responseTime}),r.push({token:":date",replacement:(new Date).toUTCString()}),r.push({token:":referrer",replacement:e.headers.referer||e.headers.referrer||""}),r.push({token:":http-version",replacement:`${e.httpVersionMajor}.${e.httpVersionMinor}`}),r.push({token:":remote-addr",replacement:e.headers["x-forwarded-for"]||e.ip||e._remoteAddress||e.socket&&(e.socket.remoteAddress||e.socket.socket&&e.socket.socket.remoteAddress)}),r.push({token:":user-agent",replacement:e.headers["user-agent"]}),r.push({token:":content-length",replacement:t.getHeader("content-length")||t.__headers&&t.__headers["Content-Length"]||"-"}),r.push({token:/:req\[([^\]]+)]/g,replacement:(t,s)=>e.headers[s.toLowerCase()]}),r.push({token:/:res\[([^\]]+)]/g,replacement:(e,s)=>t.getHeader(s.toLowerCase())||t.__headers&&t.__headers[s]}),(e=>{const t=e.concat();for(let e=0;e<t.length;++e)for(let s=e+1;s<t.length;++s)t[e].token==t[s].token&&t.splice(s--,1);return t})(s.concat(r))}(e,c,t.tokens||[]);if(t.context&&s.addContext("res",c),"function"==typeof a){const t=a(e,c,(e=>i(e,u)));t&&s.log(o,t)}else s.log(o,i(a,u));t.context&&s.removeContext("res")};c.on("end",p),c.on("finish",p),c.on("error",p),c.on("close",p)}return l()}}},6040:(e,t,s)=>{const r=s(656),n=s(8558),i=s(970),o=s(7072),a=s(8716),c=s(5432)("log4js:layouts"),l={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function u(e){return e?`[${l[e][0]}m`:""}function h(e){return e?`[${l[e][1]}m`:""}function p(e,t){return s=i.format("[%s] [%s] %s - ",r.asString(e.startTime),e.level.toString(),e.categoryName),u(n=t)+s+h(n);var s,n}function d(e){return p(e)+i.format(...e.data)}function f(e){return p(e,e.level.colour)+i.format(...e.data)}function m(e){return i.format(...e.data)}function g(e){return e.data[0]}function y(e,t){const s=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function l(e){return e&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";const p={c:function(e,t){let s=e.categoryName;if(t){const e=parseInt(t,10),r=s.split(".");e<r.length&&(s=r.slice(r.length-e).join("."))}return s},d:function(e,t){let s=r.ISO8601_FORMAT;if(t)switch(s=t,s){case"ISO8601":case"ISO8601_FORMAT":s=r.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":s=r.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":process.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),c("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":s=r.ABSOLUTETIME_FORMAT;break;case"DATE":process.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),c("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":s=r.DATETIME_FORMAT}return r.asString(s,e.startTime)},h:function(){return n.hostname().toString()},m:function(e,t){let s=e.data;if(t){const[e,r]=t.split(",");s=s.slice(e,r)}return i.format(...s)},n:function(){return n.EOL},p:function(e){return e.level.toString()},r:function(e){return r.asString("hh:mm:ss",e.startTime)},"[":function(e){return u(e.level.colour)},"]":function(e){return h(e.level.colour)},y:function(){return l()},z:l,"%":function(){return"%"},x:function(e,s){return void 0!==t[s]?"function"==typeof t[s]?t[s](e):t[s]:null},X:function(e,t){const s=e.context[t];return void 0!==s?"function"==typeof s?s(e):s:null},f:function(e,t){let s=e.fileName||"";if(s=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof a.fileURLToPath?e=a.fileURLToPath(e):(e=o.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===process.platform&&(e=e.startsWith("\\")?e.slice(1):o.sep+o.sep+e))),e}(s),t){const e=parseInt(t,10),r=s.split(o.sep);r.length>e&&(s=r.slice(-e).join(o.sep))}return s},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};function d(e,t,s){return p[e](t,s)}function f(e,t,s){let r=e;return r=function(e,t){let s;return e?(s=parseInt(e.slice(1),10),s>0?t.slice(0,s):t.slice(s)):t}(t,r),r=function(e,t){let s;if(e)if("-"===e.charAt(0))for(s=parseInt(e.slice(1),10);t.length<s;)t+=" ";else for(s=parseInt(e,10);t.length<s;)t=` ${t}`;return t}(s,r),r}return function(t){let r,n="",i=e;for(;null!==(r=s.exec(i));){const e=r[1],s=r[2],o=r[3],a=r[5],c=r[6];if(c)n+=c.toString();else{n+=f(d(o,t,a),s,e)}i=i.slice(r.index+r[0].length)}return n}}const S={messagePassThrough:()=>m,basic:()=>d,colored:()=>f,coloured:()=>f,pattern:e=>y(e&&e.pattern,e&&e.tokens),dummy:()=>g};e.exports={basicLayout:d,messagePassThroughLayout:m,patternLayout:y,colouredLayout:f,coloredLayout:f,dummyLayout:g,addLayout(e,t){S[e]=t},layout:(e,t)=>S[e]&&S[e](t)}},4424:(e,t,s)=>{const r=s(7388),n=["white","grey","black","blue","cyan","green","magenta","red","yellow"];class i{constructor(e,t,s){this.level=e,this.levelStr=t,this.colour=s}toString(){return this.levelStr}static getLevel(e,t){return e?e instanceof i?e:(e instanceof Object&&e.levelStr&&(e=e.levelStr),i[e.toString().toUpperCase()]||t):t}static addLevels(e){if(e){Object.keys(e).forEach((t=>{const s=t.toUpperCase();i[s]=new i(e[t].value,s,e[t].colour);const r=i.levels.findIndex((e=>e.levelStr===s));r>-1?i.levels[r]=i[s]:i.levels.push(i[s])})),i.levels.sort(((e,t)=>e.level-t.level))}}isLessThanOrEqualTo(e){return"string"==typeof e&&(e=i.getLevel(e)),this.level<=e.level}isGreaterThanOrEqualTo(e){return"string"==typeof e&&(e=i.getLevel(e)),this.level>=e.level}isEqualTo(e){return"string"==typeof e&&(e=i.getLevel(e)),this.level===e.level}}i.levels=[],i.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}}),r.addListener((e=>{const t=e.levels;if(t){r.throwExceptionIf(e,r.not(r.anObject(t)),"levels must be an object");Object.keys(t).forEach((s=>{r.throwExceptionIf(e,r.not(r.validIdentifier(s)),`level name "${s}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`),r.throwExceptionIf(e,r.not(r.anObject(t[s])),`level "${s}" must be an object`),r.throwExceptionIf(e,r.not(t[s].value),`level "${s}" must have a 'value' property`),r.throwExceptionIf(e,r.not(r.anInteger(t[s].value)),`level "${s}".value must have an integer value`),r.throwExceptionIf(e,r.not(t[s].colour),`level "${s}" must have a 'colour' property`),r.throwExceptionIf(e,r.not(n.indexOf(t[s].colour)>-1),`level "${s}".colour must be one of ${n.join(", ")}`)}))}})),r.addListener((e=>{i.addLevels(e.levels)})),e.exports=i},9340:(e,t,s)=>{const r=s(5432)("log4js:main"),n=s(2058),i=s(7328)({proto:!0}),o=s(7388),a=s(6040),c=s(4424),l=s(4408),u=s(9244),h=s(8104),p=s(7148),d=s(9216),f=s(7920);let m=!1;function g(e){if(!m)return;r("Received log event ",e);u.appendersForCategory(e.categoryName).forEach((t=>{t(e)}))}function y(e){m&&S();let t=e;return"string"==typeof t&&(t=function(e){r(`Loading configuration from ${e}`);try{return JSON.parse(n.readFileSync(e,"utf8"))}catch(t){throw new Error(`Problem reading config from file "${e}". Error was ${t.message}`,t)}}(e)),r(`Configuration is ${t}`),o.configure(i(t)),p.onMessage(g),m=!0,E}function S(e=(()=>{})){if("function"!=typeof e)throw new TypeError("Invalid callback passed to shutdown");r("Shutdown called. Disabling all log writing."),m=!1;const t=Array.from(l.values());l.init(),u.init();const s=t.reduce(((e,t)=>t.shutdown?e+1:e),0);0===s&&(r("No appenders with shutdown functions found."),e());let n,i=0;function o(t){n=n||t,i+=1,r(`Appender shutdowns complete: ${i} / ${s}`),i>=s&&(r("All shutdown functions completed."),e(n))}r(`Found ${s} appenders with shutdown functions.`),t.filter((e=>e.shutdown)).forEach((e=>e.shutdown(o)))}const E={getLogger:function(e){return m||y(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}}),new h(e||"default")},configure:y,isConfigured:function(){return m},shutdown:S,connectLogger:d,levels:c,addLayout:a.addLayout,recording:function(){return f}};e.exports=E},8104:(e,t,s)=>{const r=s(5432)("log4js:logger"),n=s(8688),i=s(4424),o=s(7148),a=s(9244),c=s(7388),l=/^(?:\s*)at (?:(.+) \()?(?:([^(]+?):(\d+):(\d+))\)?$/;function u(e,t=4){try{const s=e.stack.split("\n").slice(t);if(!s.length)return null;const r=l.exec(s[0]);if(r&&5===r.length){let e="",t="",n="";return r[1]&&""!==r[1]&&([t,n]=r[1].replace(/[[\]]/g,"").split(" as "),n=n||"",t.includes(".")&&([e,t]=t.split("."))),{fileName:r[2],lineNumber:parseInt(r[3],10),columnNumber:parseInt(r[4],10),callStack:s.join("\n"),className:e,functionName:t,functionAlias:n,callerName:r[1]||""}}console.error("log4js.logger - defaultParseCallStack error")}catch(e){console.error("log4js.logger - defaultParseCallStack error",e)}return null}class h{constructor(e){if(!e)throw new Error("No category provided.");this.category=e,this.context={},this.callStackSkipIndex=0,this.parseCallStack=u,r(`Logger created (${this.category}, ${this.level})`)}get level(){return i.getLevel(a.getLevelForCategory(this.category),i.OFF)}set level(e){a.setLevelForCategory(this.category,i.getLevel(e,this.level))}get useCallStack(){return a.getEnableCallStackForCategory(this.category)}set useCallStack(e){a.setEnableCallStackForCategory(this.category,!0===e)}get callStackLinesToSkip(){return this.callStackSkipIndex}set callStackLinesToSkip(e){if("number"!=typeof e)throw new TypeError("Must be a number");if(e<0)throw new RangeError("Must be >= 0");this.callStackSkipIndex=e}log(e,...t){const s=i.getLevel(e);s?this.isLevelEnabled(s)&&this._log(s,t):c.validIdentifier(e)&&t.length>0?(this.log(i.WARN,"log4js:logger.log: valid log-level not found as first parameter given:",e),this.log(i.INFO,`[${e}]`,...t)):this.log(i.INFO,e,...t)}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){r(`sending log data (${e}) to appenders`);const s=t.find((e=>e instanceof Error));let i;if(this.useCallStack){try{s&&(i=this.parseCallStack(s,this.callStackSkipIndex+1))}catch(e){}i=i||this.parseCallStack(new Error,this.callStackSkipIndex+3+1)}const a=new n(this.category,e,t,this.context,i,s);o.send(a)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){if("function"==typeof e)this.parseCallStack=e;else{if(void 0!==e)throw new TypeError("Invalid type passed to setParseCallStackFunction");this.parseCallStack=u}}}function p(e){const t=i.getLevel(e),s=t.toString().toLowerCase().replace(/_([a-z])/g,(e=>e[1].toUpperCase())),r=s[0].toUpperCase()+s.slice(1);h.prototype[`is${r}Enabled`]=function(){return this.isLevelEnabled(t)},h.prototype[s]=function(...e){this.log(t,...e)}}i.levels.forEach(p),c.addListener((()=>{i.levels.forEach(p)})),e.exports=h},6952:e=>{var t=1e3,s=60*t,r=60*s,n=24*r,i=7*n,o=365.25*n;function a(e,t,s,r){var n=t>=1.5*s;return Math.round(e/s)+" "+r+(n?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*s;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=n)return a(e,i,n,"day");if(i>=r)return a(e,i,r,"hour");if(i>=s)return a(e,i,s,"minute");if(i>=t)return a(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=n)return Math.round(e/n)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=s)return Math.round(e/s)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7328:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){return(e=e||{}).circles?function(e){var s=[],r=[];return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return n(i,e);if(i instanceof Map)return new Map(n(Array.from(i),e));if(i instanceof Set)return new Set(n(Array.from(i),e));var o={};for(var a in s.push(i),r.push(o),i){var c=i[a];if("object"!=typeof c||null===c)o[a]=c;else if(c instanceof Date)o[a]=new Date(c);else if(c instanceof Map)o[a]=new Map(n(Array.from(c),e));else if(c instanceof Set)o[a]=new Set(n(Array.from(c),e));else if(ArrayBuffer.isView(c))o[a]=t(c);else{var l=s.indexOf(c);o[a]=-1!==l?r[l]:e(c)}}return s.pop(),r.pop(),o}:function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return n(i,e);if(i instanceof Map)return new Map(n(Array.from(i),e));if(i instanceof Set)return new Set(n(Array.from(i),e));var o={};for(var a in s.push(i),r.push(o),i)if(!1!==Object.hasOwnProperty.call(i,a)){var c=i[a];if("object"!=typeof c||null===c)o[a]=c;else if(c instanceof Date)o[a]=new Date(c);else if(c instanceof Map)o[a]=new Map(n(Array.from(c),e));else if(c instanceof Set)o[a]=new Set(n(Array.from(c),e));else if(ArrayBuffer.isView(c))o[a]=t(c);else{var l=s.indexOf(c);o[a]=-1!==l?r[l]:e(c)}}return s.pop(),r.pop(),o};function n(e,n){for(var i=Object.keys(e),o=new Array(i.length),a=0;a<i.length;a++){var c=i[a],l=e[c];if("object"!=typeof l||null===l)o[c]=l;else if(l instanceof Date)o[c]=new Date(l);else if(ArrayBuffer.isView(l))o[c]=t(l);else{var u=s.indexOf(l);o[c]=-1!==u?r[u]:n(l)}}return o}}(e):e.proto?function e(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,e);if(r instanceof Map)return new Map(s(Array.from(r),e));if(r instanceof Set)return new Set(s(Array.from(r),e));var n={};for(var i in r){var o=r[i];"object"!=typeof o||null===o?n[i]=o:o instanceof Date?n[i]=new Date(o):o instanceof Map?n[i]=new Map(s(Array.from(o),e)):o instanceof Set?n[i]=new Set(s(Array.from(o),e)):ArrayBuffer.isView(o)?n[i]=t(o):n[i]=e(o)}return n}:function e(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,e);if(r instanceof Map)return new Map(s(Array.from(r),e));if(r instanceof Set)return new Set(s(Array.from(r),e));var n={};for(var i in r)if(!1!==Object.hasOwnProperty.call(r,i)){var o=r[i];"object"!=typeof o||null===o?n[i]=o:o instanceof Date?n[i]=new Date(o):o instanceof Map?n[i]=new Map(s(Array.from(o),e)):o instanceof Set?n[i]=new Set(s(Array.from(o),e)):ArrayBuffer.isView(o)?n[i]=t(o):n[i]=e(o)}return n};function s(e,s){for(var r=Object.keys(e),n=new Array(r.length),i=0;i<r.length;i++){var o=r[i],a=e[o];"object"!=typeof a||null===a?n[o]=a:a instanceof Date?n[o]=new Date(a):ArrayBuffer.isView(a)?n[o]=t(a):n[o]=s(a)}return n}}},3120:(e,t,s)=>{var r=s(848),n=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(e,t){for(var s=new o,r=0,n=e.length;r<n;r++)s.add(e[r],t);return s},o.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var s=i?e:r.toSetString(e),o=i?this.has(e):n.call(this._set,s),a=this._array.length;o&&!t||this._array.push(e),o||(i?this._set.set(e,a):this._set[s]=a)},o.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return n.call(this._set,t)},o.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var s=r.toSetString(e);if(n.call(this._set,s))return this._set[s]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.Q=o},1896:(e,t,s)=>{var r=s(4976);t.encode=function(e){var t,s="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),s+=r.encode(t)}while(n>0);return s},t.decode=function(e,t,s){var n,i,o,a,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),l+=(i&=31)<<u,u+=5}while(n);s.value=(a=(o=l)>>1,1==(1&o)?-a:a),s.rest=t}},4976:(e,t)=>{var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<s.length)return s[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},6612:(e,t)=>{function s(e,r,n,i,o,a){var c=Math.floor((r-e)/2)+e,l=o(n,i[c],!0);return 0===l?c:l>0?r-c>1?s(c,r,n,i,o,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:c:c-e>1?s(e,c,n,i,o,a):a==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var o=s(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===n(r[o],r[o-1],!0);)--o;return o}},6280:(e,t,s)=>{var r=s(848);function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},n.prototype.add=function(e){var t,s,n,i,o,a;t=this._last,s=e,n=t.generatedLine,i=s.generatedLine,o=t.generatedColumn,a=s.generatedColumn,i>n||i==n&&a>=o||r.compareByGeneratedPositionsInflated(t,s)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.k=n},5524:(e,t)=>{function s(e){function t(e,t,s){var r=e[t];e[t]=e[s],e[s]=r}return function e(s,r,n,i){if(n<i){var o=n-1;t(s,(u=n,h=i,Math.round(u+Math.random()*(h-u))),i);for(var a=s[i],c=n;c<i;c++)r(s[c],a,!1)<=0&&t(s,o+=1,c);t(s,o+1,c);var l=o+1;e(s,r,n,l-1),e(s,r,l+1,i)}var u,h}}let r=new WeakMap;t.O=function(e,t,n=0){let i=r.get(t);void 0===i&&(i=function(e){let t=s.toString();return new Function(`return ${t}`)()(e)}(t),r.set(t,i)),i(e,t,n,e.length-1)}},2512:(e,t,s)=>{var r=s(848),n=s(6612),i=s(3120).Q,o=s(1896),a=s(5524).O;function c(e,t){var s=e;return"string"==typeof e&&(s=r.parseSourceMapInput(e)),null!=s.sections?new d(s,t):new l(s,t)}function l(e,t){var s=e;"string"==typeof e&&(s=r.parseSourceMapInput(e));var n=r.getArg(s,"version"),o=r.getArg(s,"sources"),a=r.getArg(s,"names",[]),c=r.getArg(s,"sourceRoot",null),l=r.getArg(s,"sourcesContent",null),u=r.getArg(s,"mappings"),h=r.getArg(s,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);c&&(c=r.normalize(c)),o=o.map(String).map(r.normalize).map((function(e){return c&&r.isAbsolute(c)&&r.isAbsolute(e)?r.relative(c,e):e})),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=h}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}c.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var s=e.charAt(t);return";"===s||","===s},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,s){var n,i=t||null;switch(s||c.GENERATED_ORDER){case c.GENERATED_ORDER:n=this._generatedMappings;break;case c.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,a=e.bind(i),l=this._names,u=this._sources,h=this._sourceMapURL,p=0,d=n.length;p<d;p++){var f=n[p],m=null===f.source?null:u.at(f.source);a({source:m=r.computeSourceURL(o,m,h),generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:null===f.name?null:l.at(f.name)})}},c.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),s={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(s.source=this._findSourceIndex(s.source),s.source<0)return[];var i=[],o=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(void 0===e.column)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var l=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==l;)i.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,s=e;if(null!=this.sourceRoot&&(s=r.relative(this.sourceRoot,s)),this._sources.has(s))return this._sources.indexOf(s);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},l.fromSourceMap=function(e,t){var s=Object.create(l.prototype),n=s._names=i.fromArray(e._names.toArray(),!0),o=s._sources=i.fromArray(e._sources.toArray(),!0);s.sourceRoot=e._sourceRoot,s.sourcesContent=e._generateSourcesContent(s._sources.toArray(),s.sourceRoot),s.file=e._file,s._sourceMapURL=t,s._absoluteSources=s._sources.toArray().map((function(e){return r.computeSourceURL(s.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),h=s.__generatedMappings=[],p=s.__originalMappings=[],d=0,f=c.length;d<f;d++){var m=c[d],g=new u;g.generatedLine=m.generatedLine,g.generatedColumn=m.generatedColumn,m.source&&(g.source=o.indexOf(m.source),g.originalLine=m.originalLine,g.originalColumn=m.originalColumn,m.name&&(g.name=n.indexOf(m.name)),p.push(g)),h.push(g)}return a(s.__originalMappings,r.compareByOriginalPositions),s},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const h=r.compareByGeneratedPositionsDeflatedNoLine;function p(e,t){let s=e.length,r=e.length-t;if(!(r<=1))if(2==r){let s=e[t],r=e[t+1];h(s,r)>0&&(e[t]=r,e[t+1]=s)}else if(r<20)for(let r=t;r<s;r++)for(let s=r;s>t;s--){let t=e[s-1],r=e[s];if(h(t,r)<=0)break;e[s-1]=r,e[s]=t}else a(e,h,t)}function d(e,t){var s=e;"string"==typeof e&&(s=r.parseSourceMapInput(e));var n=r.getArg(s,"version"),o=r.getArg(s,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new i,this._names=new i;var a={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var s=r.getArg(e,"offset"),n=r.getArg(s,"line"),i=r.getArg(s,"column");if(n<a.line||n===a.line&&i<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=s,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new c(r.getArg(e,"map"),t)}}))}l.prototype._parseMappings=function(e,t){var s,n,i,c,l=1,h=0,d=0,f=0,m=0,g=0,y=e.length,S=0,E={},v=[],T=[];let b=0;for(;S<y;)if(";"===e.charAt(S))l++,S++,h=0,p(T,b),b=T.length;else if(","===e.charAt(S))S++;else{for((s=new u).generatedLine=l,i=S;i<y&&!this._charIsMappingSeparator(e,i);i++);for(e.slice(S,i),n=[];S<i;)o.decode(e,S,E),c=E.value,S=E.rest,n.push(c);if(2===n.length)throw new Error("Found a source, but no line and column");if(3===n.length)throw new Error("Found a source and line, but no column");if(s.generatedColumn=h+n[0],h=s.generatedColumn,n.length>1&&(s.source=m+n[1],m+=n[1],s.originalLine=d+n[2],d=s.originalLine,s.originalLine+=1,s.originalColumn=f+n[3],f=s.originalColumn,n.length>4&&(s.name=g+n[4],g+=n[4])),T.push(s),"number"==typeof s.originalLine){let e=s.source;for(;v.length<=e;)v.push(null);null===v[e]&&(v[e]=[]),v[e].push(s)}}p(T,b),this.__generatedMappings=T;for(var A=0;A<v.length;A++)null!=v[A]&&a(v[A],r.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...v)},l.prototype._findMapping=function(e,t,s,r,i,o){if(e[s]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[s]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return n.search(e,t,i,o)},l.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var s=this._generatedMappings[e+1];if(t.generatedLine===s.generatedLine){t.lastGeneratedColumn=s.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},s=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(s>=0){var n=this._generatedMappings[s];if(n.generatedLine===t.generatedLine){var i=r.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var o=r.getArg(n,"name",null);return null!==o&&(o=this._names.at(o)),{source:i,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var s=this._findSourceIndex(e);if(s>=0)return this.sourcesContent[s];var n,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var s={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},n=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===s.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var s=0;s<this._sections[t].consumer.sources.length;s++)e.push(this._sections[t].consumer.sources[s]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},s=n.search(t,this._sections,(function(e,t){var s=e.generatedLine-t.generatedOffset.generatedLine;return s||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[s];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var s=0;s<this._sections.length;s++){var r=this._sections[s].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var s=this._sections[t];if(-1!==s.consumer._findSourceIndex(r.getArg(e,"source"))){var n=s.consumer.generatedPositionFor(e);if(n)return{line:n.line+(s.generatedOffset.generatedLine-1),column:n.column+(s.generatedOffset.generatedLine===n.line?s.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var s=0;s<this._sections.length;s++)for(var n=this._sections[s],i=n.consumer._generatedMappings,o=0;o<i.length;o++){var c=i[o],l=n.consumer._sources.at(c.source);l=r.computeSourceURL(n.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=n.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var h={source:l,generatedLine:c.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(n.generatedOffset.generatedLine===c.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(h),"number"==typeof h.originalLine&&this.__originalMappings.push(h)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)}},5804:(e,t,s)=>{var r=s(1896),n=s(848),i=s(3120).Q,o=s(6280).k;function a(e){e||(e={}),this._file=n.getArg(e,"file",null),this._sourceRoot=n.getArg(e,"sourceRoot",null),this._skipValidation=n.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new o,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,s=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=n.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),s.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=n.relative(t,r)),s._sources.has(i)||s._sources.add(i);var o=e.sourceContentFor(r);null!=o&&s.setSourceContent(r,o)})),s},a.prototype.addMapping=function(e){var t=n.getArg(e,"generated"),s=n.getArg(e,"original",null),r=n.getArg(e,"source",null),i=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,s,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=s&&s.line,originalColumn:null!=s&&s.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var s=e;null!=this._sourceRoot&&(s=n.relative(this._sourceRoot,s)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(s)]=t):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(s)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,s){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var o=this._sourceRoot;null!=o&&(r=n.relative(o,r));var a=new i,c=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=s&&(t.source=n.join(s,t.source)),null!=o&&(t.source=n.relative(o,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var l=t.source;null==l||a.has(l)||a.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=a,this._names=c,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=s&&(t=n.join(s,t)),null!=o&&(t=n.relative(o,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,s,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||s||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&s))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:s,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,s,i,o=0,a=1,c=0,l=0,u=0,h=0,p="",d=this._mappings.toArray(),f=0,m=d.length;f<m;f++){if(e="",(t=d[f]).generatedLine!==a)for(o=0;t.generatedLine!==a;)e+=";",a++;else if(f>0){if(!n.compareByGeneratedPositionsInflated(t,d[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-h),h=i,e+=r.encode(t.originalLine-1-l),l=t.originalLine-1,e+=r.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(s=this._names.indexOf(t.name),e+=r.encode(s-u),u=s)),p+=e}return p},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=n.relative(t,e));var s=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},4732:(e,t,s)=>{var r=s(5804).SourceMapGenerator,n=s(848),i=/(\r?\n)/,o="$$$isSourceNode$$$";function a(e,t,s,r,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==s?null:s,this.name=null==n?null:n,this[o]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,s){var r=new a,o=e.split(i),c=0,l=function(){return e()+(e()||"");function e(){return c<o.length?o[c++]:void 0}},u=1,h=0,p=null;return t.eachMapping((function(e){if(null!==p){if(!(u<e.generatedLine)){var t=(s=o[c]||"").substr(0,e.generatedColumn-h);return o[c]=s.substr(e.generatedColumn-h),h=e.generatedColumn,d(p,t),void(p=e)}d(p,l()),u++,h=0}for(;u<e.generatedLine;)r.add(l()),u++;if(h<e.generatedColumn){var s=o[c]||"";r.add(s.substr(0,e.generatedColumn)),o[c]=s.substr(e.generatedColumn),h=e.generatedColumn}p=e}),this),c<o.length&&(p&&d(p,l()),r.add(o.splice(c).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=s&&(e=n.join(s,e)),r.setSourceContent(e,i))})),r;function d(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=s?n.join(s,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,s=0,r=this.children.length;s<r;s++)(t=this.children[s])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,s,r=this.children.length;if(r>0){for(t=[],s=0;s<r-1;s++)t.push(this.children[s]),t.push(e);t.push(this.children[s]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var s=this.children[this.children.length-1];return s[o]?s.replaceRight(e,t):"string"==typeof s?this.children[this.children.length-1]=s.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,s=this.children.length;t<s;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,s=r.length;t<s;t++)e(n.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},s=new r(e),n=!1,i=null,o=null,a=null,c=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&o===r.line&&a===r.column&&c===r.name||s.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,o=r.line,a=r.column,c=r.name,n=!0):n&&(s.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(i=null,n=!1):n&&s.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){s.setSourceContent(e,t)})),{code:t.code,map:s}},t.SourceNode=a},848:(e,t)=>{t.getArg=function(e,t,s){if(t in e)return e[t];if(3===arguments.length)return s;throw new Error('"'+t+'" is a required argument.')};var s=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function n(e){var t=e.match(s);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}t.urlParse=n,t.urlGenerate=i;var o,a,c=(o=function(e){var s=e,r=n(e);if(r){if(!r.path)return e;s=r.path}for(var o=t.isAbsolute(s),a=[],c=0,l=0;;){if(c=l,-1===(l=s.indexOf("/",c))){a.push(s.slice(c));break}for(a.push(s.slice(c,l));l<s.length&&"/"===s[l];)l++}var u,h=0;for(l=a.length-1;l>=0;l--)"."===(u=a[l])?a.splice(l,1):".."===u?h++:h>0&&(""===u?(a.splice(l+1,h),h=0):(a.splice(l,2),h--));return""===(s=a.join("/"))&&(s=o?"/":"."),r?(r.path=s,i(r)):s},a=[],function(e){for(var t=0;t<a.length;t++)if(a[t].input===e){var s=a[0];return a[0]=a[t],a[t]=s,a[0].result}var r=o(e);return a.unshift({input:e,result:r}),a.length>32&&a.pop(),r});function l(e,t){""===e&&(e="."),""===t&&(t=".");var s=n(t),o=n(e);if(o&&(e=o.path||"/"),s&&!s.scheme)return o&&(s.scheme=o.scheme),i(s);if(s||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var a="/"===t.charAt(0)?t:c(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=a,i(o)):a}t.normalize=c,t.join=l,t.isAbsolute=function(e){return"/"===e.charAt(0)||s.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var s=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++s}return Array(s+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function h(e){return e}function p(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var s=t-10;s>=0;s--)if(36!==e.charCodeAt(s))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?h:function(e){return p(e)?"$"+e:e},t.fromSetString=u?h:function(e){return p(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,s){var r=d(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||s||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByOriginalPositionsNoSource=function(e,t,s){var r;return 0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||s||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,s){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||s||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflatedNoLine=function(e,t,s){var r=e.generatedColumn-t.generatedColumn;return 0!==r||s||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var s=e.generatedLine-t.generatedLine;return 0!==s||0!==(s=e.generatedColumn-t.generatedColumn)||0!==(s=d(e.source,t.source))||0!==(s=e.originalLine-t.originalLine)||0!==(s=e.originalColumn-t.originalColumn)?s:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,s){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),s){var r=n(s);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var o=r.path.lastIndexOf("/");o>=0&&(r.path=r.path.substring(0,o+1))}t=l(i(r),t)}return c(t)}},7164:(e,t,s)=>{t.SourceMapGenerator=s(5804).SourceMapGenerator,t.SourceMapConsumer=s(2512).SourceMapConsumer,t.SourceNode=s(4732).SourceNode},5568:(e,t,s)=>{const r=s(7064);e.exports=class extends r{constructor(e,t,s){t&&"object"==typeof t&&(s=t,t=null),s||(s={}),t||(t="yyyy-MM-dd"),s.pattern=t,s.numBackups||0===s.numBackups?s.daysToKeep=s.numBackups:(s.daysToKeep||0===s.daysToKeep?process.emitWarning("options.daysToKeep is deprecated due to the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","streamroller-DEP0001"):s.daysToKeep=1,s.numBackups=s.daysToKeep),super(e,s),this.mode=this.options.mode}get theStream(){return this.currentFileStream}}},9341:(e,t,s)=>{const r=s(7064);e.exports=class extends r{constructor(e,t,s,r){r||(r={}),t&&(r.maxSize=t),r.numBackups||0===r.numBackups||(s||0===s||(s=1),r.numBackups=s),super(e,r),this.backups=r.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}}},7064:(e,t,s)=>{const r=s(5432)("streamroller:RollingFileWriteStream"),n=s(2072),i=s(7072),o=s(8558),a=s(2360),c=s(656),{Writable:l}=s(8378),u=s(7112),h=s(3384),p=s(7696);e.exports=class extends l{constructor(e,t){if(r(`constructor: creating RollingFileWriteStream. path=${e}`),"string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(i.sep))throw new Error(`Filename is a directory: ${e}`);0===e.indexOf(`~${i.sep}`)&&(e=e.replace("~",o.homedir())),super(t),this.options=this._parseOption(t),this.fileObject=i.parse(e),""===this.fileObject.dir&&(this.fileObject=i.parse(i.join(process.cwd(),e))),this.fileFormatter=u({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize<Number.MAX_SAFE_INTEGER,compress:this.options.compress,keepFileExt:this.options.keepFileExt,fileNameSep:this.options.fileNameSep}),this.fileNameParser=h({file:this.fileObject,keepFileExt:this.options.keepFileExt,pattern:this.options.pattern,fileNameSep:this.options.fileNameSep}),this.state={currentSize:0},this.options.pattern&&(this.state.currentDate=c(this.options.pattern,a())),this.filename=this.fileFormatter({index:0,date:this.state.currentDate}),["a","a+","as","as+"].includes(this.options.flags)&&this._setExistingSizeAndDate(),r(`constructor: create new file ${this.filename}, state=${JSON.stringify(this.state)}`),this._renewWriteStream()}_setExistingSizeAndDate(){try{const e=n.statSync(this.filename);this.state.currentSize=e.size,this.options.pattern&&(this.state.currentDate=c(this.options.pattern,e.mtime))}catch(e){return}}_parseOption(e){const t={maxSize:0,numToKeep:Number.MAX_SAFE_INTEGER,encoding:"utf8",mode:parseInt("0600",8),flags:"a",compress:!1,keepFileExt:!1,alwaysIncludePattern:!1},s=Object.assign({},t,e);if(s.maxSize){if(s.maxSize<=0)throw new Error(`options.maxSize (${s.maxSize}) should be > 0`)}else delete s.maxSize;if(s.numBackups||0===s.numBackups){if(s.numBackups<0)throw new Error(`options.numBackups (${s.numBackups}) should be >= 0`);if(s.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${s.numBackups}) should be < Number.MAX_SAFE_INTEGER`);s.numToKeep=s.numBackups+1}else if(s.numToKeep<=0)throw new Error(`options.numToKeep (${s.numToKeep}) should be > 0`);return r(`_parseOption: creating stream with option=${JSON.stringify(s)}`),s}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,s){this._shouldRoll().then((()=>{r(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,(t=>{this.state.currentSize+=e.length,s(t)}))}))}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(r(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==c(this.options.pattern,a())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return r("_roll: closing the current stream"),new Promise(((e,t)=>{this.currentFileStream.end("",this.options.encoding,(()=>{this._moveOldFiles().then(e).catch(t)}))}))}async _moveOldFiles(){const e=await this._getExistingFiles();for(let t=(this.state.currentDate?e.filter((e=>e.date===this.state.currentDate)):e).length;t>=0;t--){r(`_moveOldFiles: i = ${t}`);const e=this.fileFormatter({date:this.state.currentDate,index:t}),s=this.fileFormatter({date:this.state.currentDate,index:t+1}),n={compress:this.options.compress&&0===t,mode:this.options.mode};await p(e,s,n)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?c(this.options.pattern,a()):null,r(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise(((e,t)=>{this.currentFileStream.write("","utf8",(()=>{this._clean().then(e).catch(t)}))}))}async _getExistingFiles(){const e=await n.readdir(this.fileObject.dir).catch((()=>[]));r(`_getExistingFiles: files=${e}`);const t=e.map((e=>this.fileNameParser(e))).filter((e=>e)),s=e=>(e.timestamp?e.timestamp:a().getTime())-e.index;return t.sort(((e,t)=>s(e)-s(t))),t}_renewWriteStream(){const e=this.fileFormatter({date:this.state.currentDate,index:0}),t=e=>{try{return n.mkdirSync(e,{recursive:!0})}catch(s){if("ENOENT"===s.code)return t(i.dirname(e)),t(e);if("EEXIST"!==s.code&&"EROFS"!==s.code)throw s;try{if(n.statSync(e).isDirectory())return e;throw s}catch(e){throw s}}};t(this.fileObject.dir);const s={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};var r,o;n.appendFileSync(e,"",(r={...s},o="flags",r["flag"]=r[o],delete r[o],r)),this.currentFileStream=n.createWriteStream(e,s),this.currentFileStream.on("error",(e=>{this.emit("error",e)}))}async _clean(){const e=await this._getExistingFiles();if(r(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),r("_clean: existing files are: ",e),this._tooManyFiles(e.length)){const s=e.slice(0,e.length-this.options.numToKeep).map((e=>i.format({dir:this.fileObject.dir,base:e.filename})));await(t=s,r(`deleteFiles: files to delete: ${t}`),Promise.all(t.map((e=>n.unlink(e).catch((t=>{r(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))))))}var t}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}}},7112:(e,t,s)=>{const r=s(5432)("streamroller:fileNameFormatter"),n=s(7072);e.exports=({file:e,keepFileExt:t,needsIndex:s,alwaysIncludeDate:i,compress:o,fileNameSep:a})=>{let c=a||".";const l=n.join(e.dir,e.name),u=t=>t+e.ext,h=(e,t,r)=>!s&&r||!t?e:e+c+t,p=(e,t,s)=>(t>0||i)&&s?e+c+s:e,d=(e,t)=>t&&o?e+".gz":e,f=t?[p,h,u,d]:[u,p,h,d];return({date:e,index:t})=>(r(`_formatFileName: date=${e}, index=${t}`),f.reduce(((s,r)=>r(s,t,e)),l))}},3384:(e,t,s)=>{const r=s(5432)("streamroller:fileNameParser"),n=s(656);e.exports=({file:e,keepFileExt:t,pattern:s,fileNameSep:i})=>{let o=i||".";const a="__NOT_MATCHING__";let c=[(e,t)=>e.endsWith(".gz")?(r("it is gzipped"),t.isCompressed=!0,e.slice(0,-3)):e,t?t=>t.startsWith(e.name)&&t.endsWith(e.ext)?(r("it starts and ends with the right things"),t.slice(e.name.length+1,-1*e.ext.length)):a:t=>t.startsWith(e.base)?(r("it starts with the right things"),t.slice(e.base.length+1)):a,s?(e,t)=>{const i=e.split(o);let a=i[i.length-1];r("items: ",i,", indexStr: ",a);let c=e;void 0!==a&&a.match(/^\d+$/)?(c=e.slice(0,-1*(a.length+1)),r(`dateStr is ${c}`),s&&!c&&(c=a,a="0")):a="0";try{const r=n.parse(s,c,new Date(0,0));return n.asString(s,r)!==c?e:(t.index=parseInt(a,10),t.date=c,t.timestamp=r.getTime(),"")}catch(t){return r(`Problem parsing ${c} as ${s}, error was: `,t),e}}:(e,t)=>e.match(/^\d+$/)?(r("it has an index"),t.index=parseInt(e,10),""):e];return e=>{let t={filename:e,index:0,isCompressed:!1};return c.reduce(((e,s)=>s(e,t)),e)?null:t}}},8564:(e,t,s)=>{e.exports={RollingFileWriteStream:s(7064),RollingFileStream:s(9341),DateRollingFileStream:s(5568)}},7696:(e,t,s)=>{const r=s(5432)("streamroller:moveAndMaybeCompressFile"),n=s(2072),i=s(592);e.exports=async(e,t,s)=>{if(s=function(e){const t={mode:parseInt("0600",8),compress:!1},s=Object.assign({},t,e);return r(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(s)}`),s}(s),e!==t){if(await n.pathExists(e))if(r(`moveAndMaybeCompressFile: moving file from ${e} to ${t} ${s.compress?"with":"without"} compress`),s.compress)await new Promise(((o,a)=>{let c=!1;const l=n.createWriteStream(t,{mode:s.mode,flags:"wx"}).on("open",(()=>{c=!0;const t=n.createReadStream(e).on("open",(()=>{t.pipe(i.createGzip()).pipe(l)})).on("error",(t=>{r(`moveAndMaybeCompressFile: error reading ${e}`,t),l.destroy(t)}))})).on("finish",(()=>{r(`moveAndMaybeCompressFile: finished compressing ${t}, deleting ${e}`),n.unlink(e).then(o).catch((t=>{r(`moveAndMaybeCompressFile: error deleting ${e}, truncating instead`,t),n.truncate(e).then(o).catch((t=>{r(`moveAndMaybeCompressFile: error truncating ${e}`,t),a(t)}))}))})).on("error",(e=>{c?(r(`moveAndMaybeCompressFile: error writing ${t}, deleting`,e),n.unlink(t).then((()=>{a(e)})).catch((e=>{r(`moveAndMaybeCompressFile: error deleting ${t}`,e),a(e)}))):(r(`moveAndMaybeCompressFile: error creating ${t}`,e),a(e))}))})).catch((()=>{}));else{r(`moveAndMaybeCompressFile: renaming ${e} to ${t}`);try{await n.move(e,t,{overwrite:!0})}catch(s){if(r(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`,s),"ENOENT"!==s.code){r("moveAndMaybeCompressFile: trying copy+truncate instead");try{await n.copy(e,t,{overwrite:!0}),await n.truncate(e)}catch(e){r("moveAndMaybeCompressFile: error copy+truncate",e)}}}}}else r("moveAndMaybeCompressFile: source and target are the same, not doing anything")}},2360:e=>{e.exports=()=>new Date},5176:(e,t,s)=>{"use strict";const r=s(8558),n=s(3340),i=s(8920),{env:o}=process;let a;function c(e,{streamIsTTY:t,sniffFlags:s=!0}={}){const n=function(){if("FORCE_COLOR"in o)return"true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(Number.parseInt(o.FORCE_COLOR,10),3)}();void 0!==n&&(a=n);const c=s?a:n;if(0===c)return 0;if(s){if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2}if(e&&!t&&void 0===c)return 0;const l=c||0;if("dumb"===o.TERM)return l;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:l;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=Number.parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:l}function l(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(c(e,{streamIsTTY:e&&e.isTTY,...t}))}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),e.exports={supportsColor:l,stdout:l({isTTY:n.isatty(1)}),stderr:l({isTTY:n.isatty(2)})}},4952:(e,t)=>{"use strict";t.e=function(e){return Object.defineProperty((function(){if("function"!=typeof arguments[arguments.length-1])return new Promise(((t,s)=>{arguments[arguments.length]=(e,r)=>{if(e)return s(e);t(r)},arguments.length++,e.apply(this,arguments)}));e.apply(this,arguments)}),"name",{value:e.name})},t.u=function(e){return Object.defineProperty((function(){const t=arguments[arguments.length-1];if("function"!=typeof t)return e.apply(this,arguments);e.apply(this,arguments).then((e=>t(null,e)),t)}),"name",{value:e.name})}},119:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(9464),n=s(2016),i=s(8952);function o(e){var t=Object.create(null);if(e)for(var s in e)t[s]=e[s];return t.default=e,Object.freeze(t)}var a=o(n);const c=new WeakMap;function l(e,t){if(!i.isString(e)){if(!e.nodeType)return i.NOOP;e=e.innerHTML}const s=e,n=function(e){let t=c.get(null!=e?e:i.EMPTY_OBJ);return t||(t=Object.create(null),c.set(null!=e?e:i.EMPTY_OBJ,t)),t}(t),o=n[s];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const l=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},t);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:u}=r.compile(e,l),h=new Function("Vue",u)(a);return h._rc=!0,n[s]=h}n.registerRuntimeCompiler(l),t.compile=l,Object.keys(n).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n[e])}))},3876:e=>{"use strict";e.exports=require("electron")},6608:e=>{"use strict";e.exports=require("assert")},1840:e=>{"use strict";e.exports=require("cluster")},7116:e=>{"use strict";e.exports=require("constants")},2058:e=>{"use strict";e.exports=require("fs")},5256:e=>{"use strict";e.exports=require("net")},1096:e=>{"use strict";e.exports=require("node:child_process")},662:e=>{"use strict";e.exports=require("node:fs")},3066:e=>{"use strict";e.exports=require("node:net")},5672:e=>{"use strict";e.exports=require("node:os")},8864:e=>{"use strict";e.exports=require("node:path")},1520:e=>{"use strict";e.exports=require("node:readline")},8558:e=>{"use strict";e.exports=require("os")},7072:e=>{"use strict";e.exports=require("path")},8378:e=>{"use strict";e.exports=require("stream")},3340:e=>{"use strict";e.exports=require("tty")},8716:e=>{"use strict";e.exports=require("url")},970:e=>{"use strict";e.exports=require("util")},592:e=>{"use strict";e.exports=require("zlib")},1092:(e,t)=>{"use strict";function s(e,t){if(null==e)return{};var s,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)s=i[r],t.indexOf(s)>=0||(n[s]=e[s]);return n}Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=s}}class n{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function i(e,t){const{line:s,column:n,index:i}=e;return new r(s,n+t,i+t)}const o="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var a={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:o},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:o}};const c={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},l=({type:e,prefix:t})=>"UpdateExpression"===e?c.UpdateExpression[String(t)]:c[e];var u={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${1===e?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${l(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${l(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${l(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const h=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var p={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${l({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const d=["toMessage"],f=["message"];function m(e,t,s){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:s})}function g(e){let{toMessage:t}=e,n=s(e,d);return function e(s,i){const o=new SyntaxError;return Object.assign(o,n,{loc:s,pos:s.index}),"missingPlugin"in i&&Object.assign(o,{missingPlugin:i.missingPlugin}),m(o,"clone",(function(t={}){var n;const{line:o,column:a,index:c}=null!=(n=t.loc)?n:s;return e(new r(o,a,c),Object.assign({},i,t.details))})),m(o,"details",i),Object.defineProperty(o,"message",{configurable:!0,get(){const e=`${t(i)} (${s.line}:${s.column})`;return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),o}}function y(e,t){if(Array.isArray(e))return t=>y(t,e[0]);const r={};for(const n of Object.keys(e)){const i=e[n],o="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,{message:a}=o,c=s(o,f),l="string"==typeof a?()=>a:a;r[n]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:l},t?{syntaxPlugin:t}:{},c))}return r}const S=Object.assign({},y(a),y(u),y({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),y`pipelineOperator`(p)),{defineProperty:E}=Object,v=(e,t)=>E(e,t,{enumerable:!1,value:e[t]});function T(e){return e.loc.start&&v(e.loc.start,"index"),e.loc.end&&v(e.loc.end,"index"),e}class b{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const A={brace:new b("{"),j_oTag:new b("<tag"),j_cTag:new b("</tag"),j_expr:new b("<tag>...</tag>",!0)};A.template=new b("`",!0);const P=!0,I=!0,C=!0,N=!0,_=!0;class w{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const x=new Map;function O(e,t={}){t.keyword=e;const s=H(e,t);return x.set(e,s),s}function M(e,t){return H(e,{beforeExpr:P,binop:t})}let k=-1;const L=[],R=[],D=[],F=[],B=[],U=[];function H(e,t={}){var s,r,n,i;return++k,R.push(e),D.push(null!=(s=t.binop)?s:-1),F.push(null!=(r=t.beforeExpr)&&r),B.push(null!=(n=t.startsExpr)&&n),U.push(null!=(i=t.prefix)&&i),L.push(new w(e,t)),k}function G(e,t={}){var s,r,n,i;return++k,x.set(e,k),R.push(e),D.push(null!=(s=t.binop)?s:-1),F.push(null!=(r=t.beforeExpr)&&r),B.push(null!=(n=t.startsExpr)&&n),U.push(null!=(i=t.prefix)&&i),L.push(new w("name",t)),k}const K={bracketL:H("[",{beforeExpr:P,startsExpr:I}),bracketHashL:H("#[",{beforeExpr:P,startsExpr:I}),bracketBarL:H("[|",{beforeExpr:P,startsExpr:I}),bracketR:H("]"),bracketBarR:H("|]"),braceL:H("{",{beforeExpr:P,startsExpr:I}),braceBarL:H("{|",{beforeExpr:P,startsExpr:I}),braceHashL:H("#{",{beforeExpr:P,startsExpr:I}),braceR:H("}"),braceBarR:H("|}"),parenL:H("(",{beforeExpr:P,startsExpr:I}),parenR:H(")"),comma:H(",",{beforeExpr:P}),semi:H(";",{beforeExpr:P}),colon:H(":",{beforeExpr:P}),doubleColon:H("::",{beforeExpr:P}),dot:H("."),question:H("?",{beforeExpr:P}),questionDot:H("?."),arrow:H("=>",{beforeExpr:P}),template:H("template"),ellipsis:H("...",{beforeExpr:P}),backQuote:H("`",{startsExpr:I}),dollarBraceL:H("${",{beforeExpr:P,startsExpr:I}),templateTail:H("...`",{startsExpr:I}),templateNonTail:H("...${",{beforeExpr:P,startsExpr:I}),at:H("@"),hash:H("#",{startsExpr:I}),interpreterDirective:H("#!..."),eq:H("=",{beforeExpr:P,isAssign:N}),assign:H("_=",{beforeExpr:P,isAssign:N}),slashAssign:H("_=",{beforeExpr:P,isAssign:N}),xorAssign:H("_=",{beforeExpr:P,isAssign:N}),moduloAssign:H("_=",{beforeExpr:P,isAssign:N}),incDec:H("++/--",{prefix:_,postfix:!0,startsExpr:I}),bang:H("!",{beforeExpr:P,prefix:_,startsExpr:I}),tilde:H("~",{beforeExpr:P,prefix:_,startsExpr:I}),doubleCaret:H("^^",{startsExpr:I}),doubleAt:H("@@",{startsExpr:I}),pipeline:M("|>",0),nullishCoalescing:M("??",1),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),lt:M("</>/<=/>=",7),gt:M("</>/<=/>=",7),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),bitShiftL:M("<</>>/>>>",8),bitShiftR:M("<</>>/>>>",8),plusMin:H("+/-",{beforeExpr:P,binop:9,prefix:_,startsExpr:I}),modulo:H("%",{binop:10,startsExpr:I}),star:H("*",{binop:10}),slash:M("/",10),exponent:H("**",{beforeExpr:P,binop:11,rightAssociative:!0}),_in:O("in",{beforeExpr:P,binop:7}),_instanceof:O("instanceof",{beforeExpr:P,binop:7}),_break:O("break"),_case:O("case",{beforeExpr:P}),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",{beforeExpr:P}),_else:O("else",{beforeExpr:P}),_finally:O("finally"),_function:O("function",{startsExpr:I}),_if:O("if"),_return:O("return",{beforeExpr:P}),_switch:O("switch"),_throw:O("throw",{beforeExpr:P,prefix:_,startsExpr:I}),_try:O("try"),_var:O("var"),_const:O("const"),_with:O("with"),_new:O("new",{beforeExpr:P,startsExpr:I}),_this:O("this",{startsExpr:I}),_super:O("super",{startsExpr:I}),_class:O("class",{startsExpr:I}),_extends:O("extends",{beforeExpr:P}),_export:O("export"),_import:O("import",{startsExpr:I}),_null:O("null",{startsExpr:I}),_true:O("true",{startsExpr:I}),_false:O("false",{startsExpr:I}),_typeof:O("typeof",{beforeExpr:P,prefix:_,startsExpr:I}),_void:O("void",{beforeExpr:P,prefix:_,startsExpr:I}),_delete:O("delete",{beforeExpr:P,prefix:_,startsExpr:I}),_do:O("do",{isLoop:C,beforeExpr:P}),_for:O("for",{isLoop:C}),_while:O("while",{isLoop:C}),_as:G("as",{startsExpr:I}),_assert:G("assert",{startsExpr:I}),_async:G("async",{startsExpr:I}),_await:G("await",{startsExpr:I}),_defer:G("defer",{startsExpr:I}),_from:G("from",{startsExpr:I}),_get:G("get",{startsExpr:I}),_let:G("let",{startsExpr:I}),_meta:G("meta",{startsExpr:I}),_of:G("of",{startsExpr:I}),_sent:G("sent",{startsExpr:I}),_set:G("set",{startsExpr:I}),_source:G("source",{startsExpr:I}),_static:G("static",{startsExpr:I}),_using:G("using",{startsExpr:I}),_yield:G("yield",{startsExpr:I}),_asserts:G("asserts",{startsExpr:I}),_checks:G("checks",{startsExpr:I}),_exports:G("exports",{startsExpr:I}),_global:G("global",{startsExpr:I}),_implements:G("implements",{startsExpr:I}),_intrinsic:G("intrinsic",{startsExpr:I}),_infer:G("infer",{startsExpr:I}),_is:G("is",{startsExpr:I}),_mixins:G("mixins",{startsExpr:I}),_proto:G("proto",{startsExpr:I}),_require:G("require",{startsExpr:I}),_satisfies:G("satisfies",{startsExpr:I}),_keyof:G("keyof",{startsExpr:I}),_readonly:G("readonly",{startsExpr:I}),_unique:G("unique",{startsExpr:I}),_abstract:G("abstract",{startsExpr:I}),_declare:G("declare",{startsExpr:I}),_enum:G("enum",{startsExpr:I}),_module:G("module",{startsExpr:I}),_namespace:G("namespace",{startsExpr:I}),_interface:G("interface",{startsExpr:I}),_type:G("type",{startsExpr:I}),_opaque:G("opaque",{startsExpr:I}),name:H("name",{startsExpr:I}),string:H("string",{startsExpr:I}),num:H("num",{startsExpr:I}),bigint:H("bigint",{startsExpr:I}),decimal:H("decimal",{startsExpr:I}),regexp:H("regexp",{startsExpr:I}),privateName:H("#name",{startsExpr:I}),eof:H("eof"),jsxName:H("jsxName"),jsxText:H("jsxText",{beforeExpr:!0}),jsxTagStart:H("jsxTagStart",{startsExpr:!0}),jsxTagEnd:H("jsxTagEnd"),placeholder:H("%%",{startsExpr:!0})};function j(e){return e>=93&&e<=132}function $(e){return e>=58&&e<=132}function V(e){return e>=58&&e<=136}function W(e){return B[e]}function q(e){return e>=129&&e<=131}function J(e){return e>=58&&e<=92}function Y(e){return R[e]}function z(e){return D[e]}function X(e){return e>=24&&e<=25}function Q(e){return L[e]}L[8].updateContext=e=>{e.pop()},L[5].updateContext=L[7].updateContext=L[23].updateContext=e=>{e.push(A.brace)},L[22].updateContext=e=>{e[e.length-1]===A.template?e.pop():e.push(A.template)},L[142].updateContext=e=>{e.push(A.j_expr,A.j_oTag)};let Z="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ee="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const te=new RegExp("["+Z+"]"),se=new RegExp("["+Z+ee+"]");Z=ee=null;const re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ne=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function ie(e,t){let s=65536;for(let r=0,n=t.length;r<n;r+=2){if(s+=t[r],s>e)return!1;if(s+=t[r+1],s>=e)return!0}return!1}function oe(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&te.test(String.fromCharCode(e)):ie(e,re)))}function ae(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&se.test(String.fromCharCode(e)):ie(e,re)||ie(e,ne))))}const ce=["implements","interface","let","package","private","protected","public","static","yield"],le=["eval","arguments"],ue=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),he=new Set(ce),pe=new Set(le);function de(e,t){return t&&"await"===e||"enum"===e}function fe(e,t){return de(e,t)||he.has(e)}function me(e){return pe.has(e)}function ge(e,t){return fe(e,t)||me(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class Se{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class Ee{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&0==(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Se(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,s){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,s);let n=r.names.get(e)||0;16&t?n|=4:(r.firstLexicalName||(r.firstLexicalName=e),n|=2),r.names.set(e,n),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let n=this.scopeStack.length-1;n>=0&&(r=this.scopeStack[n],this.checkRedeclarationInScope(r,e,t,s),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--n);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,s,r){this.isRedeclaredInScope(e,t,s)&&this.parser.raise(S.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,s){if(!(1&s))return!1;if(8&s)return e.names.has(t);const r=e.names.get(t);return 16&s?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(387&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}}class ve extends Se{constructor(...e){super(...e),this.declareFunctions=new Set}}class Te extends Ee{createScope(e){return new ve(e)}declareName(e,t,s){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,s),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,s)}isRedeclaredInScope(e,t,s){if(super.isRedeclaredInScope(e,t,s))return!0;if(2048&s&&!e.declareFunctions.has(t)){const s=e.names.get(t);return(4&s)>0||(2&s)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}class be{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,s]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(s))if((null==r?void 0:r[e])!==s[e])return!1;return!0}}getPluginOption(e,t){var s;return null==(s=this.plugins.get(e))?void 0:s[t]}}function Ae(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Pe(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Ie(e,t,s){let r=null,n=t.length;for(;null===r&&n>0;)r=t[--n];null===r||r.start>s.start?Pe(e,s.comments):Ae(r,s.comments)}class Ce extends be{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!=t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,s=t.length;if(0===s)return;let r=s-1;const n=t[r];n.start===e.end&&(n.leadingNode=e,r--);const{start:i}=e;for(;r>=0;r--){const s=t[r],n=s.end;if(!(n>i)){n===i&&(s.trailingNode=e);break}s.containingNode=e,this.finalizeComment(s),t.splice(r,1)}}finalizeComment(e){const{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Ae(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{const{containingNode:s,start:r}=e;if(44===this.input.charCodeAt(r-1))switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ie(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":Ie(s,s.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ie(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ie(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ie(s,s.specifiers,e);break;default:Pe(s,t)}else Pe(s,t)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:s}=t;if(0===s)return;const r=t[s-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:s}=t;0!==s&&(t[s-1].trailingNode===e?t[s-1].trailingNode=null:s>=2&&t[s-2].trailingNode===e&&(t[s-2].trailingNode=null))}takeSurroundingComments(e,t,s){const{commentStack:r}=this.state,n=r.length;if(0===n)return;let i=n-1;for(;i>=0;i--){const n=r[i],o=n.end;if(n.start===s)n.leadingNode=e;else if(o===t)n.trailingNode=e;else if(o<t)break}}}const Ne=/\r\n?|[\n\u2028\u2029]/,_e=new RegExp(Ne.source,"g");function we(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const xe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Oe=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Me=new RegExp("(?=("+Oe.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function ke(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class Le{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[A.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startLine:s,startColumn:n}){this.strict=!1!==e&&(!0===e||"module"===t),this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new r(s,n,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new Le;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var Re=function(e){return e>=48&&e<=57};const De={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Fe={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Be(e,t,s,r,n,i){const o=s,a=r,c=n;let l="",u=null,h=s;const{length:p}=t;for(;;){if(s>=p){i.unterminated(o,a,c),l+=t.slice(h,s);break}const d=t.charCodeAt(s);if(Ue(e,d,t,s)){l+=t.slice(h,s);break}if(92===d){l+=t.slice(h,s);const o=He(t,s,r,n,"template"===e,i);null!==o.ch||u?l+=o.ch:u={pos:s,lineStart:r,curLine:n},({pos:s,lineStart:r,curLine:n}=o),h=s}else 8232===d||8233===d?(++n,r=++s):10===d||13===d?"template"===e?(l+=t.slice(h,s)+"\n",++s,13===d&&10===t.charCodeAt(s)&&++s,++n,h=r=s):i.unterminated(o,a,c):++s}return{pos:s,str:l,firstInvalidLoc:u,lineStart:r,curLine:n,containsInvalid:!!u}}function Ue(e,t,s,r){return"template"===e?96===t||36===t&&123===s.charCodeAt(r+1):t===("double"===e?34:39)}function He(e,t,s,r,n,i){const o=!n;t++;const a=e=>({pos:t,ch:e,lineStart:s,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return a("\n");case 114:return a("\r");case 120:{let n;return({code:n,pos:t}=Ge(e,t,s,r,2,!1,o,i)),a(null===n?null:String.fromCharCode(n))}case 117:{let n;return({code:n,pos:t}=je(e,t,s,r,o,i)),a(null===n?null:String.fromCodePoint(n))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:s=t,++r;case 8232:case 8233:return a("");case 56:case 57:if(n)return a(null);i.strictNumericEscape(t-1,s,r);default:if(c>=48&&c<=55){const o=t-1;let c=e.slice(o,t+2).match(/^[0-7]+/)[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;const u=e.charCodeAt(t);if("0"!==c||56===u||57===u){if(n)return a(null);i.strictNumericEscape(o,s,r)}return a(String.fromCharCode(l))}return a(String.fromCharCode(c))}}function Ge(e,t,s,r,n,i,o,a){const c=t;let l;return({n:l,pos:t}=Ke(e,t,s,r,16,n,i,!1,a,!o)),null===l&&(o?a.invalidEscapeSequence(c,s,r):t=c-1),{code:l,pos:t}}function Ke(e,t,s,r,n,i,o,a,c,l){const u=t,h=16===n?De.hex:De.decBinOct,p=16===n?Fe.hex:10===n?Fe.dec:8===n?Fe.oct:Fe.bin;let d=!1,f=0;for(let u=0,m=null==i?1/0:i;u<m;++u){const i=e.charCodeAt(t);let u;if(95!==i||"bail"===a){if(u=i>=97?i-97+10:i>=65?i-65+10:Re(i)?i-48:1/0,u>=n){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,s,r,n))u=0;else{if(!o)break;u=0,d=!0}}++t,f=f*n+u}else{const n=e.charCodeAt(t-1),i=e.charCodeAt(t+1);if(a){if(Number.isNaN(i)||!p(i)||h.has(n)||h.has(i)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,s,r)}}else{if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,s,r)}++t}}return t===u||null!=i&&t-u!==i||d?{n:null,pos:t}:{n:f,pos:t}}function je(e,t,s,r,n,i){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=Ge(e,t,s,r,e.indexOf("}",t)-t,!0,n,i)),++t,null!==o&&o>1114111){if(!n)return{code:null,pos:t};i.invalidCodePoint(t,s,r)}}else({code:o,pos:t}=Ge(e,t,s,r,4,!1,n,i));return{code:o,pos:t}}function $e(e,t,s){return new r(s,e-t,e)}const Ve=new Set([103,109,115,105,121,117,100,118]);class We{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new n(e.startLoc,e.endLoc)}}class qe extends Ce{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,s,r)=>!!this.options.errorRecovery&&(this.raise(S.InvalidDigit,$e(e,t,s),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(S.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(S.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(S.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(S.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,s)=>{this.recordStrictModeErrors(S.StrictNumericEscape,$e(e,t,s))},unterminated:(e,t,s)=>{throw this.raise(S.UnterminatedString,$e(e-1,t,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(S.StrictNumericEscape),unterminated:(e,t,s)=>{throw this.raise(S.UnterminatedTemplate,$e(e,t,s))}}),this.state=new Le,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new We(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return xe.lastIndex=e,xe.test(this.input)?xe.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const s=this.input.charCodeAt(e);56320==(64512&s)&&(t=65536+((1023&t)<<10)+(1023&s))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((([e,t])=>this.raise(e,t))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const s=this.state.pos,r=this.input.indexOf(e,s+2);if(-1===r)throw this.raise(S.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,_e.lastIndex=s+2;_e.test(this.input)&&_e.lastIndex<=r;)++this.state.curLine,this.state.lineStart=_e.lastIndex;if(this.isLookahead)return;const i={type:"CommentBlock",value:this.input.slice(s+2,r),start:s,end:r+e.length,loc:new n(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){const t=this.state.pos;let s;this.isLookahead||(s=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!we(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const i=this.state.pos,o={type:"CommentLine",value:this.input.slice(t+e,i),start:t,end:i,loc:new n(s,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){const s=this.input.charCodeAt(this.state.pos);switch(s){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(ke(s))++this.state.pos;else if(45===s&&!this.inModule&&this.options.annexB){const s=this.state.pos;if(45!==this.input.charCodeAt(s+1)||62!==this.input.charCodeAt(s+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==s||this.inModule||!this.options.annexB)break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){const s={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const s=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(s)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(S.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?S.RecordExpressionHashIncorrectStartSyntaxType:S.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else oe(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!we(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const s=this.input.slice(t+2,this.state.pos);return this.finishToken(28,s),!0}readToken_mult_modulo(e){let t=42===e?55:54,s=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(s++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(s++,t=37===e?33:30),this.finishOp(t,s)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(S.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(S.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e||this.state.inType)if(94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(S.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(S.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(oe(e))return void this.readWord(e)}throw this.raise(S.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const s=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,s)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let s,r,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(S.UnterminatedRegExp,i(e,1));const t=this.input.charCodeAt(n);if(we(t))throw this.raise(S.UnterminatedRegExp,i(e,1));if(s)s=!1;else{if(91===t)r=!0;else if(93===t&&r)r=!1;else if(47===t&&!r)break;s=92===t}}const o=this.input.slice(t,n);++n;let a="";const c=()=>i(e,n+2-t);for(;n<this.length;){const e=this.codePointAtPos(n),t=String.fromCharCode(e);if(Ve.has(e))118===e?a.includes("u")&&this.raise(S.IncompatibleRegExpUVFlags,c()):117===e&&a.includes("v")&&this.raise(S.IncompatibleRegExpUVFlags,c()),a.includes(t)&&this.raise(S.DuplicateRegExpFlags,c());else{if(!ae(e)&&92!==e)break;this.raise(S.MalformedRegExpFlags,c())}++n,a+=t}this.state.pos=n,this.finishToken(137,{pattern:o,flags:a})}readInt(e,t,s=!1,r=!0){const{n,pos:i}=Ke(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,s,r,this.errorHandlers_readInt,!1);return this.state.pos=i,n}readRadixNumber(e){const t=this.state.curPosition();let s=!1;this.state.pos+=2;const r=this.readInt(e);null==r&&this.raise(S.InvalidDigit,i(t,2),{radix:e});const n=this.input.charCodeAt(this.state.pos);if(110===n)++this.state.pos,s=!0;else if(109===n)throw this.raise(S.InvalidDecimal,t);if(oe(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,this.state.curPosition());if(s){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,r)}readNumber(e){const t=this.state.pos,s=this.state.curPosition();let r=!1,n=!1,o=!1,a=!1,c=!1;e||null!==this.readInt(10)||this.raise(S.InvalidNumber,this.state.curPosition());const l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(S.StrictOctalLiteral,s),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(S.ZeroDigitNumericSeparator,i(s,t))}c=l&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(46!==u||c||(++this.state.pos,this.readInt(10),r=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||c||(u=this.input.charCodeAt(++this.state.pos),43!==u&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(S.InvalidOrMissingExponent,s),r=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((r||l)&&this.raise(S.InvalidBigIntLiteral,s),++this.state.pos,n=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(S.InvalidDecimal,s),++this.state.pos,o=!0),oe(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,this.state.curPosition());const h=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)return void this.finishToken(135,h);if(o)return void this.finishToken(136,h);const p=c?parseInt(h,8):parseFloat(h);this.finishToken(134,p)}readCodePoint(e){const{code:t,pos:s}=je(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=s,t}readString(e){const{str:t,pos:s,curLine:r,lineStart:n}=Be(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=n,this.state.curLine=r,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:s,pos:n,curLine:i,lineStart:o}=Be("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=o,this.state.curLine=i,s&&(this.state.firstInvalidTemplateEscapePos=new r(s.curLine,s.pos-s.lineStart,s.pos)),96===this.input.codePointAt(n)?this.finishToken(24,s?null:e+t+"`"):(this.state.pos++,this.finishToken(25,s?null:e+t+"${"))}recordStrictModeErrors(e,t){const s=t.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(e,t):this.state.strictErrors.set(s,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const s=this.state.pos;let r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(ae(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);const e=this.state.curPosition(),n=this.state.pos===s?oe:ae;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(S.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const i=this.readCodePoint(!0);null!==i&&(n(i)||this.raise(S.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(i)),r=this.state.pos}}}return t+this.input.slice(r,this.state.pos)}readWord(e){const t=this.readWord1(e),s=x.get(t);void 0!==s?this.finishToken(s,Y(s)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;J(e)&&this.state.containsEsc&&this.raise(S.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Y(e)})}raise(e,t,s={}){const n=e(t instanceof r?t:t.loc.start,s);if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,t,s={}){const n=t instanceof r?t:t.loc.start,i=n.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.loc.index===i)return o[t]=e(n,s);if(r.loc.index<i)break}return this.raise(e,t,s)}updateContext(e){}unexpected(e,t){throw this.raise(S.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?Y(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(S.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(S.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,s,r)=>{this.raise(e,$e(t,s,r))}}}class Je{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ye{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Je)}exit(){const e=this.stack.pop(),t=this.current();for(const[s,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(s)||t.undefinedPrivateNames.set(s,r):this.parser.raise(S.InvalidPrivateFieldResolution,r,{identifierName:s})}declarePrivateName(e,t,s){const{privateNames:r,loneAccessors:n,undefinedPrivateNames:i}=this.current();let o=r.has(e);if(3&t){const s=o&&n.get(e);if(s){o=(3&s)===(3&t)||(4&s)!==(4&t),o||n.delete(e)}else o||n.set(e,t)}o&&this.parser.raise(S.PrivateNameRedeclaration,s,{identifierName:e}),r.add(e),i.delete(e)}usePrivateName(e,t){let s;for(s of this.stack)if(s.privateNames.has(e))return;s?s.undefinedPrivateNames.set(e,t):this.parser.raise(S.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ze{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Xe extends ze{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const s=t.index;this.declarationErrors.set(s,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class Qe{constructor(e){this.parser=void 0,this.stack=[new ze],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const s=t.loc.start,{stack:r}=this;let n=r.length-1,i=r[n];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,s),i=r[--n]}this.parser.raise(e,s)}recordArrowParameterBindingError(e,t){const{stack:s}=this,r=s[s.length-1],n=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,n);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,n)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let s=t.length-1,r=t[s];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(S.AwaitBindingIdentifier,e),r=t[--s]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((([t,s])=>{this.parser.raise(t,s);let r=e.length-2,n=e[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(s.index),n=e[--r]}))}}function Ze(){return new ze}class et{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function tt(e,t){return(e?2:0)|(t?1:0)}class st extends qe{addExtra(e,t,s,r=!0){if(!e)return;const n=e.extra=e.extra||{};r?n[t]=s:Object.defineProperty(n,t,{enumerable:r,value:s})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const s=e+t.length;if(this.input.slice(e,s)===t){const e=this.input.charCodeAt(s);return!(ae(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ne.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Me.lastIndex=this.state.end,Me.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(S.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const s={node:null};try{const r=e(((e=null)=>{throw s.node=e,s}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:s,doubleProtoLoc:r,privateKeyLoc:n,optionalParametersLoc:i}=e;if(!t)return!!(s||r||i||n);null!=s&&this.raise(S.InvalidCoverInitializedName,s),null!=r&&this.raise(S.DuplicateProto,r),null!=n&&this.raise(S.UnexpectedPrivateField,n),null!=i&&this.unexpected(i)}isLiteralPropertyName(){return V(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const n=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);const o=this.prodParam;this.prodParam=new et;const a=this.classScope;this.classScope=new Ye(this);const c=this.expressionScope;return this.expressionScope=new Qe(this),()=>{this.state.labels=t,this.exportedIdentifiers=s,this.inModule=r,this.scope=n,this.prodParam=o,this.classScope=a,this.expressionScope=c}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class rt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class nt{constructor(e,t,s){this.type="",this.start=t,this.end=0,this.loc=new n(s),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const it=nt.prototype;function ot(e){const{type:t,start:s,end:r,loc:n,range:i,extra:o,name:a}=e,c=Object.create(it);return c.type=t,c.start=s,c.end=r,c.loc=n,c.range=i,c.extra=o,c.name=a,"Placeholder"===t&&(c.expectedNode=e.expectedNode),c}function at(e){const{type:t,start:s,end:r,loc:n,range:i,extra:o}=e;if("Placeholder"===t)return function(e){return ot(e)}(e);const a=Object.create(it);return a.type=t,a.start=s,a.end=r,a.loc=n,a.range=i,void 0!==e.raw?a.raw=e.raw:a.extra=o,a.value=e.value,a}it.__clone=function(){const e=new nt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let s=0,r=t.length;s<r;s++){const r=t[s];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class ct extends st{startNode(){const e=this.state.startLoc;return new nt(this,e.index,e)}startNodeAt(e){return new nt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,s){return e.type=t,e.end=s.index,e.loc.end=s,this.options.ranges&&(e.range[1]=s.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}}const lt=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ut=y`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:s})=>`Enum \`${e}\` has type \`${s}\`, so the initializer of \`${t}\` needs to be a ${s} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:s})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${s}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ht(e){return"type"===e.importKind||"typeof"===e.importKind}const pt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const dt=/\*?\s*@((?:no)?flow)\b/;const ft={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},mt=y`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function gt(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function yt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return yt(e.object)+"."+yt(e.property);throw new Error("Node had unexpected type: "+e.type)}class St extends Se{constructor(...e){super(...e),this.tsNames=new Map}}class Et extends Ee{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new St(e)}enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 256==e&&this.importsStack.pop(),e}hasImport(e,t){const s=this.importsStack.length;if(this.importsStack[s-1].has(e))return!0;if(!t&&s>1)for(let t=0;t<s-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,s){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(S.VarRedeclaration,s,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const r=this.currentScope();let n=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|n);super.declareName(e,t,s),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,s),this.maybeExportDefined(r,e)),n|=1),256&t&&(n|=2),512&t&&(n|=4),128&t&&(n|=8),n&&r.tsNames.set(e,n)}isRedeclaredInScope(e,t,s){const r=e.tsNames.get(t);if((2&r)>0){if(256&s){return!!(512&s)!==(4&r)>0}return!0}return 128&s&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&s):!!(2&s&&(1&r)>0)||super.isRedeclaredInScope(e,t,s)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;for(let e=this.scopeStack.length-1;e>=0;e--){const s=this.scopeStack[e].tsNames.get(t);if((1&s)>0||(16&s)>0)return}super.checkLocalExport(e)}}const vt=e=>"ParenthesizedExpression"===e.type?vt(e.expression):e;class Tt extends ct{toAssignable(e,t=!1){var s,r;let n;switch(("ParenthesizedExpression"===e.type||null!=(s=e.extra)&&s.parenthesized)&&(n=vt(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(S.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(S.InvalidParenthesizedAssignment,e):this.raise(S.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let s=0,r=e.properties.length,n=r-1;s<r;s++){var i;const r=e.properties[s],o=s===n;this.toAssignableObjectExpressionProp(r,o,t),o&&"RestElement"===r.type&&null!=(i=e.extra)&&i.trailingCommaLoc&&this.raise(S.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:s,value:r}=e;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(r,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(S.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(n,t)}}toAssignableObjectExpressionProp(e,t,s){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?S.PatternHasAccessor:S.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";const r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,s),t||this.raise(S.RestTrailingComma,e)}else this.toAssignable(e,s)}toAssignableList(e,t,s){const r=e.length-1;for(let n=0;n<=r;n++){const i=e[n];if(i){if("SpreadElement"===i.type){i.type="RestElement";const e=i.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,s)}else this.toAssignable(i,s);"RestElement"===i.type&&(n<r?this.raise(S.RestTrailingComma,i):t&&this.raise(S.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,s)=>"ObjectMethod"!==e.type&&(s===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,s){const r=1&s,n=[];let i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),r&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){if(n.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(S.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());n.push(this.parseAssignableListItem(s,e))}}return n}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const e=this.startNode(),{type:t,startLoc:s}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",s),this.classScope.usePrivateName(this.state.value,s),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,s,!1,!1,!0,!1))}parseAssignableListItem(e,t){const s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,e);const r=this.parseMaybeDefault(s.loc.start,s);return t.length&&(s.decorators=t),r}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var s;if(null!=e||(e=this.state.startLoc),t=null!=(s=t)?s:this.parseBindingAtom(),!this.eat(29))return t;const r=this.startNodeAt(e);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,s){return r={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},n=e,Object.hasOwnProperty.call(r,n)&&r[n];var r,n}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,{in:t,binding:s=64,checkClashes:r=!1,strictModeChanged:n=!1,hasParenthesizedAncestor:i=!1}){var o;const a=e.type;if(this.isObjectMethod(e))return;const c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===a)return c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(S.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==s&&this.raise(S.InvalidPropertyBindingPattern,e));if("Identifier"===a){this.checkIdentifier(e,s,n);const{name:t}=e;return void(r&&(r.has(t)?this.raise(S.ParamDupe,e):r.add(t)))}const l=this.isValidLVal(a,!(i||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===t.type,s);if(!0===l)return;if(!1===l){const r=64===s?S.InvalidLhs:S.InvalidLhsBinding;return void this.raise(r,e,{ancestor:t})}const[u,h]=Array.isArray(l)?l:[l,"ParenthesizedExpression"===a],p="ArrayPattern"===a||"ObjectPattern"===a?{type:a}:t;for(const t of[].concat(e[u]))t&&this.checkLVal(t,{in:p,binding:s,checkClashes:r,strictModeChanged:n,hasParenthesizedAncestor:h})}checkIdentifier(e,t,s=!1){this.state.strict&&(s?ge(e.name,this.inModule):me(e.name))&&(64===t?this.raise(S.StrictEvalArguments,e,{referenceName:e.name}):this.raise(S.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(S.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(S.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?S.RestTrailingComma:S.ElementAfterRest,this.state.startLoc),!0)}}function bt(e){if(!e)throw new Error("Assert fail")}const At=y`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function Pt(e){return"private"===e||"public"===e||"protected"===e}function It(e){return"in"===e||"out"===e}function Ct(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:s}=e;return(!t||"StringLiteral"===s.type||!("TemplateLiteral"!==s.type||s.expressions.length>0))&&wt(e.object)}function Nt(e,t){var s;const{type:r}=e;if(null!=(s=e.extra)&&s.parenthesized)return!1;if(t){if("Literal"===r){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!_t(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:s,argument:r}=e;if("-"===s&&_t(r,t))return!0}return!1}(e,t))||("TemplateLiteral"===r&&0===e.expressions.length||!!Ct(e))}function _t(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function wt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&wt(e.object)}const xt=y`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Ot(e,t){const[s,r]="string"==typeof t?[t,{}]:t,n=Object.keys(r),i=0===n.length;return e.some((e=>{if("string"==typeof e)return i&&e===s;{const[t,i]=e;if(t!==s)return!1;for(const e of n)if(i[e]!==r[e])return!1;return!0}}))}function Mt(e,t,s){const r=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return r&&Array.isArray(r)&&r.length>1?r[1][s]:null}const kt=["minimal","fsharp","hack","smart"],Lt=["^^","@@","^","%","#"],Rt=["hash","bar"];const Dt={estree:e=>class extends e{parse(){const e=T(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(T)),e}parseRegExpLiteral({pattern:e,flags:t}){let s=null;try{s=new RegExp(e,t)}catch(e){}const r=this.estreeParseLiteral(s);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const s=this.estreeParseLiteral(t);return s.bigint=String(s.value||e),s}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;const s=e;return s.type="ExpressionStatement",s.expression=t,s.directive=t.extra.rawValue,delete t.extra,s}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,s,r,n){super.parseBlockBody(e,t,s,r,n);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,s,r,n,i){this.parseMethod(t,s,r,n,i,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const s=super.parseLiteral(e,t);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(e,t,s=!1){super.parseFunctionBody(e,t,s),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,s,r,n,i,o=!1){let a=this.startNode();return a.kind=e.kind,a=super.parseMethod(a,t,s,r,n,i,o),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===i&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(t.type="PropertyDefinition",t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(t.type="PropertyDefinition",t.computed=!1,t):t}parseObjectMethod(e,t,s,r,n){const i=super.parseObjectMethod(e,t,s,r,n);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,s,r){const n=super.parseObjectProperty(e,t,s,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,t,s){return"Property"===e?"value":super.isValidLVal(e,t,s)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:s,value:r}=e;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,s){"get"===e.kind||"set"===e.kind?this.raise(S.PatternHasAccessor,e.key):e.method?this.raise(S.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,s)}finishCallExpression(e,t){const s=super.finishCallExpression(e,t);if("Import"===s.callee.type){var r,n;if(s.type="ImportExpression",s.source=s.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))s.options=null!=(r=s.arguments[1])?r:null,s.attributes=null!=(n=s.arguments[1])?n:null;delete s.arguments,delete s.callee}return s}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const s=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(n=e.decorators)?void 0:n.length)>0&&e.start===r.start&&this.resetStartLocation(r,s)}}return r}parseSubscript(e,t,s,r){const n=super.parseSubscript(e,t,s,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==n.type&&"OptionalCallExpression"!==n.type||(n.type=n.type.substring(8)),r.stop){const e=this.startNodeAtNode(n);return e.expression=n,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==n.type&&"CallExpression"!==n.type||(n.optional=!1);return n}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,s){return T(super.finishNodeAt(e,t,s))}resetStartLocation(e,t){super.resetStartLocation(e,t),T(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),T(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(mt.UnterminatedJsxContent,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:return this.state.pos===this.state.start?void(60===s&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(s)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:we(s)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let s;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,s=e?"\n":"\r\n"):s=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(e){let t="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(S.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(s,this.state.pos),t+=this.jsxReadEntity(),s=this.state.pos):we(r)?(t+=this.input.slice(s,this.state.pos),t+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}t+=this.input.slice(s,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,s=!1;for(;t++<10&&this.state.pos<this.length&&!(s=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(s){const t=this.input.slice(e,this.state.pos),s=ft[t];if(++this.state.pos,s)return s}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(ae(e)||45===e);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(140)?e.name=this.state.value:J(this.state.type)?e.name=Y(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const s=this.startNodeAt(e);return s.namespace=t,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const s=this.startNodeAt(e);s.object=t,s.property=this.jsxParseIdentifier(),t=this.finishNode(s,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(A.brace),this.next(),e=this.jsxParseExpressionContainer(e,A.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(mt.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(mt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(A.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(A.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(A.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),s=[],r=this.jsxParseOpeningElementAt(e);let n=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(e);break e}s.push(this.jsxParseElementAt(e));break;case 141:s.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(A.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(e)):s.push(this.jsxParseExpressionContainer(e,A.j_expr));break}default:this.unexpected()}gt(r)&&!gt(n)&&null!==n?this.raise(mt.MissingClosingTagFragment,n):!gt(r)&&gt(n)?this.raise(mt.MissingClosingTagElement,n,{openingTagName:yt(r.name)}):gt(r)||gt(n)||yt(n.name)!==yt(r.name)&&this.raise(mt.MissingClosingTagElement,n,{openingTagName:yt(r.name)})}if(gt(r)?(t.openingFragment=r,t.closingFragment=n):(t.openingElement=r,t.closingElement=n),t.children=s,this.match(47))throw this.raise(mt.UnwrappedAdjacentJSXElements,this.state.startLoc);return gt(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==A.j_expr){if(t===A.j_oTag||t===A.j_cTag){if(oe(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===A.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:s}=this.state;if(56===s&&142===e)t.splice(-2,2,A.j_cTag),this.state.canStartJSXElement=!1;else if(142===s)t.push(A.j_oTag);else if(143===s){const s=t[t.length-1];s===A.j_oTag&&56===e||s===A.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===A.j_expr):(this.setContext(A.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=F[s]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Te}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){133!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=dt.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const s=this.flowParseType();return this.state.inType=t,s}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(ut.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,s=null;return this.match(54)?(this.state.inType=e,s=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(s=this.flowParsePredicate())),[t,s]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),s=this.startNode(),r=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);const n=this.flowParseFunctionTypeParams();return s.params=n.params,s.rest=n.rest,s.this=n._this,this.expect(11),[s.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(ut.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),s=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(ut.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,ut.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),s.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,n=!1;return s.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(n&&this.raise(ut.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(ut.AmbiguousDeclareModuleKind,e),r="CommonJS",n=!0):("CommonJS"===r&&this.raise(ut.AmbiguousDeclareModuleKind,e),r="ES")})),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(ut.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:pt[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(ut.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,s){lt.has(e)&&this.raise(s?ut.AssignReservedType:ut.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.startLoc,s=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return s.name=n.name,s.variance=r,s.bound=n.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):e&&this.raise(ut.MissingTypeParamDefault,t),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let s=!1;do{const e=this.flowParseTypeParameter(s);t.params.push(e),e.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);const s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=s,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,s){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=s,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const s=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(s),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:s,allowProto:r,allowInexact:n}){const i=this.state.inType;this.state.inType=!0;const o=this.startNode();let a,c;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let l=!1;for(t&&this.match(6)?(this.expect(6),a=9,c=!0):(this.expect(5),a=8,c=!1),o.exact=c;!this.match(a);){let t=!1,i=null,a=null;const u=this.startNode();if(r&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),i=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const h=this.flowParseVariance();if(this.eat(0))null!=i&&this.unexpected(i),this.eat(0)?(h&&this.unexpected(h.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,h));else if(this.match(10)||this.match(47))null!=i&&this.unexpected(i),h&&this.unexpected(h.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e="init";if(this.isContextual(99)||this.isContextual(104)){V(this.lookahead().type)&&(e=this.state.value,this.next())}const r=this.flowParseObjectTypeProperty(u,t,i,h,e,s,null!=n?n:!c);null===r?(l=!0,a=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),!a||this.match(8)||this.match(9)||this.raise(ut.UnexpectedExplicitInexactInObject,a)}this.expect(a),s&&(o.inexact=l);const u=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=i,u}flowParseObjectTypeProperty(e,t,s,r,n,i,o){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(i?o||this.raise(ut.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ut.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(ut.InexactVariance,r),null):(i||this.raise(ut.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=s&&this.unexpected(s),r&&this.raise(ut.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=s,e.kind=n;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=s&&this.unexpected(s),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!i&&"constructor"===e.key.name&&e.value.this&&this.raise(ut.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,s=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?ut.GetterMayNotHaveThisParam:ut.SetterMayNotHaveThisParam,e.value.this),s!==t&&this.raise("get"===e.kind?S.BadGetterArity:S.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(S.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let s=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=s,t.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(t,"QualifiedTypeIdentifier")}return s}flowParseGenericType(e,t){const s=this.startNodeAt(e);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,s=!1,r=null;const n=this.startNode(),i=this.lookahead(),o=78===this.state.type;return 14===i.type||17===i.type?(o&&!e&&this.raise(ut.ThisParamMustBeFirst,n),t=this.parseIdentifier(o),this.eat(17)&&(s=!0,o&&this.raise(ut.ThisParamMayNotBeOptional,n)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),n.name=t,n.optional=s,n.typeAnnotation=r,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:s}}flowIdentToTypeAnnotation(e,t,s){switch(s.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(e,s)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let s,r,n=!1;const i=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=i,r;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),t.params=s.params,t.rest=s.rest,t.this=s._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(j(this.state.type)||this.match(78)){const e=this.lookahead().type;n=17!==e&&14!==e}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=i,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return s=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),t.params=s.params,t.rest=s.rest,t.this=s._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(ut.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(J(this.state.type)){const e=Y(this.state.type);return this.next(),super.createIdentifier(t,e)}if(j(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(e),n=this.eat(18);s=s||n,this.expect(0),!n&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),s?(r.optional=n,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,s=!1){t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,s))):super.parseFunctionBody(e,!1,s)}parseFunctionBodyAndFinish(e,t,s=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,s)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if($(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,s){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||j(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(j(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,s)}shouldParseExportDeclaration(){const{type:e}=this.state;return q(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return q(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,s){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(s),e}this.expect(17);const r=this.state.clone(),n=this.state.noArrowAt,i=this.startNodeAt(t);let{consequent:o,failed:a}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(a||l.length>0){const e=[...n];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:a}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}a&&c.length>1&&this.raise(ut.AmbiguousConditionalArrow,r.startLoc),a&&1===c.length&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,({consequent:o,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=n,this.expect(14),i.test=e,i.consequent=o,i.alternate=this.forwardNoArrowParamsConversionAt(i,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(i,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const s=[e],r=[];for(;0!==s.length;){const e=s.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),s.push(e.body)):"ConditionalExpression"===e.type&&(s.push(e.consequent),s.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const s=[],r=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?s:r).push(e[n]);return[s,r]}(r,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let s;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),s=t(),this.state.noArrowParamsConversionAt.pop()):s=t(),s}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const s=this.startNodeAt(t);return s.expression=e,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,s=super.maybeParseExportNamespaceSpecifier(e);return s&&"type"===e.exportKind&&this.unexpected(t),s}parseClassId(e,t,s){super.parseClassId(e,t,s),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,s){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,s),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(ut.DeclareClassElement,r):t.value&&this.raise(ut.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(S.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):!function(e,t,s){return 64===e&&64===t&&oe(s)}(e,t,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(e):(this.state.pos+=2,this.readIterator()):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,s){for(let t=0;t<e.length;t++){const s=e[t];"TypeCastExpression"===(null==s?void 0:s.type)&&(e[t]=this.typeCastToParameter(s))}super.toAssignableList(e,t,s)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var s;const n=e[r];!n||"TypeCastExpression"!==n.type||null!=(s=n.extra)&&s.parenthesized||!(e.length>1)&&t||this.raise(ut.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,t,s,r){const n=super.parseArrayLike(e,t,s,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,t,s){return"TypeCastExpression"===e||super.isValidLVal(e,t,s)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,s,r,n,i){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,s,r,n,i),t.params&&n){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ut.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&n&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ut.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,s,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,s,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const s=t[0];this.isThisParam(s)&&"get"===e.kind?this.raise(ut.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ut.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,s,r,n,i,o){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!i&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(e,t,s,r,n,i,o);return a&&((c.value||c).typeParameters=a),c}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(ut.PatternIsOptional,e),this.isThisParam(e)&&this.raise(ut.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(ut.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(ut.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const s=super.parseMaybeDefault(e,t);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ut.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(ut.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,s){t.local=ht(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,s))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,s,r){if(super.applyImportPhase(e,t,s,r),t){if(!s&&this.match(65))return;e.exportKind="type"===s?s:"value"}else"type"===s&&this.match(55)&&this.unexpected(),e.importKind="type"===s||"typeof"===s?s:"value"}parseImportSpecifier(e,t,s,r,n){const i=e.imported;let o=null;"Identifier"===i.type&&("type"===i.name?o="type":"typeof"===i.name&&(o="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===o||$(this.state.type)?(e.imported=i,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=o,e.local=ot(t))}else{if(null!==o&&$(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(S.ImportBindingIsString,e,{importName:i.value});e.imported=i,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=ot(e.imported))}const c=ht(e);return s&&c&&this.raise(ut.ImportTypeShorthandOnlyInPureImport,e),(s||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||s||c||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const s=e.kind;"get"!==s&&"set"!==s&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var s;let r,n=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(n=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),n),!r.error)return r.node;const{context:s}=this.state,i=s[s.length-1];i!==A.j_oTag&&i!==A.j_expr||s.pop()}if(null!=(s=r)&&s.error||this.match(47)){var i,o;let s;n=n||this.state.clone();const a=this.tryParse((r=>{var n;s=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(s,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,s),r}));null!=(n=i.extra)&&n.parenthesized&&r();const o=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==o.type&&r(),o.typeParameters=s,this.resetStartLocationFromNode(o,s),i}),n);let c=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(ut.UnexpectedTypeParameterBeforeAsyncArrowFunction,s),a.node;c=a.node}if(null!=(i=r)&&i.node)return this.state=r.failState,r.node;if(c)return this.state=a.failState,c;if(null!=(o=r)&&o.thrown)throw r.error;if(a.thrown)throw a.error;throw this.raise(ut.UnexpectedTokenAfterTypeParameter,s)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,s,r=!0){if(!s||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(ut.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,s,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,s){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const s=this.startNodeAt(t);s.callee=e,s.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(s,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const r=this.state.clone(),n=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!n.error&&!n.aborted)return n.node;const i=this.tryParse((()=>super.parseSubscripts(e,t,s)),r);if(i.node&&!i.error)return i.node;if(n.node)return this.state=n.failState,n.node;if(i.node)return this.state=i.failState,i.node;throw n.error||i.error}return super.parseSubscripts(e,t,s)}parseSubscript(e,t,s,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,s)return r.stop=!0,e;this.next();const n=this.startNodeAt(t);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}if(!s&&this.shouldParseTypes()&&this.match(47)){const s=this.startNodeAt(t);s.callee=e;const n=this.tryParse((()=>(s.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),s.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(s.optional=!1),this.finishCallExpression(s,r.optionalChainMember))));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(e,t,s,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const s=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(ut.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(ut.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const s=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===s&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===s&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(S.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:s}){this.raise(ut.EnumBooleanMemberNotInitialized,e,{memberName:s,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?ut.EnumInvalidMemberInitializerSymbolType:ut.EnumInvalidMemberInitializerPrimaryType:ut.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(ut.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(ut.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const s=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:e}}case 133:{const s=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:e}}case 85:case 86:{const s=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,s){const{explicitType:r}=t;null!==r&&r!==s&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const s=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}const i=this.startNode(),{id:o,init:a}=this.flowEnumMemberRaw(),c=o.name;if(""===c)continue;/^[a-z]/.test(c)&&this.raise(ut.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),s.has(c)&&this.raise(ut.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),s.add(c);const l={enumName:e,explicitType:t,memberName:c};switch(i.id=o,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,l,"boolean"),i.init=a.value,r.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,l,"number"),i.init=a.value,r.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,l,"string"),i.init=a.value,r.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,l);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,l);break;default:r.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,t,{enumName:s}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:s});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:s});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!j(this.state.type))throw this.raise(ut.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(ut.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const s=t.name,r=t.loc.start,n=this.flowEnumParseExplicitType({enumName:s});this.expect(5);const{members:i,hasUnknownMembers:o}=this.flowEnumMembers({enumName:s,explicitType:n});switch(e.hasUnknownMembers=o,n){case"boolean":return e.explicitType=!0,e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=i.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const n=i.booleanMembers.length,o=i.numberMembers.length,a=i.stringMembers.length,c=i.defaultedMembers.length;if(n||o||a||c){if(n||o){if(!o&&!a&&n>=c){for(const e of i.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:s,memberName:e.id.name});return e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!n&&!a&&o>=c){for(const e of i.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:s,memberName:e.id.name});return e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(ut.EnumInconsistentMemberValues,r,{enumName:s}),t()}return e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:At.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:At.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:At.InvalidModifierOnTypeParameter})}getScopeHandler(){return Et}tsIsIdentifier(){return j(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!j(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const s=this.state.value;if(-1!==e.indexOf(s)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:s,errorTemplate:r=At.InvalidModifierOnTypeMember},n){const i=(e,t,s,r)=>{t===s&&n[r]&&this.raise(At.InvalidModifiersOrder,e,{orderedModifiers:[s,r]})},o=(e,t,s,r)=>{(n[s]&&t===r||n[r]&&t===s)&&this.raise(At.IncompatibleModifiers,e,{modifiers:[s,r]})};for(;;){const{startLoc:a}=this.state,c=this.tsParseModifier(e.concat(null!=t?t:[]),s);if(!c)break;Pt(c)?n.accessibility?this.raise(At.DuplicateAccessibilityModifier,a,{modifier:c}):(i(a,c,c,"override"),i(a,c,c,"static"),i(a,c,c,"readonly"),n.accessibility=c):It(c)?(n[c]&&this.raise(At.DuplicateModifier,a,{modifier:c}),n[c]=!0,i(a,c,"in","out")):(Object.hasOwnProperty.call(n,c)?this.raise(At.DuplicateModifier,a,{modifier:c}):(i(a,c,"static","readonly"),i(a,c,"static","override"),i(a,c,"override","readonly"),i(a,c,"abstract","override"),o(a,c,"declare","override"),o(a,c,"static","abstract")),n[c]=!0),null!=t&&t.includes(c)&&this.raise(r,a,{modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const s=[];for(;!this.tsIsListTerminator(e);)s.push(t());return s}tsParseDelimitedList(e,t,s){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,s))}tsParseDelimitedListWorker(e,t,s,r){const n=[];let i=-1;for(;!this.tsIsListTerminator(e);){i=-1;const r=t();if(null==r)return;if(n.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(s&&this.expect(12))}i=this.state.lastTokStartLoc.index}return r&&(r.value=i),n}tsParseBracketedList(e,t,s,r,n){r||(s?this.expect(0):this.expect(47));const i=this.tsParseDelimitedList(e,t,n);return s?this.expect(3):this.expect(48),i}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(At.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let t=this.parseIdentifier(e);for(;this.eat(16);){const s=this.startNodeAtNode(t);s.left=t,s.right=this.parseIdentifier(e),t=this.finishNode(s,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const s={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,s),0===t.params.length&&this.raise(At.EmptyTypeParameters,t),-1!==s.value&&this.addExtra(t,"trailingComma",s.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const s=19===e,r="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(s||this.match(e))&&(t[r]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(At.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!j(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const s=e;if(this.match(10)||this.match(47)){t&&this.raise(At.ReadonlyForMethodSignature,e);const r=s;r.kind&&this.match(47)&&this.raise(At.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const n="parameters",i="typeAnnotation";if("get"===r.kind)r[n].length>0&&(this.raise(S.BadGetterArity,this.state.curPosition()),this.isThisParam(r[n][0])&&this.raise(At.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[n].length)this.raise(S.BadSetterArity,this.state.curPosition());else{const e=r[n][0];this.isThisParam(e)&&this.raise(At.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(At.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(At.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[i]&&this.raise(At.SetAccesorCannotHaveReturnType,r[i])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const e=s;t&&(e.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{const{type:s}=e;!t||"TSRestType"===s||"TSOptionalType"===s||"TSNamedTupleMember"===s&&e.optional||this.raise(At.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===s&&e.optional||"TSOptionalType"===s)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let s,r,n,i;const o=$(this.state.type)?this.lookaheadCharCode():null;if(58===o)s=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),i=this.tsParseType();else if(63===o){n=!0;const e=this.state.startLoc,t=this.state.value,o=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(s=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),i=this.tsParseType()):(s=!1,i=o,this.expect(17))}else i=this.tsParseType(),n=this.eat(17),s=this.eat(14);if(s){let e;r?(e=this.startNodeAtNode(r),e.optional=n,e.label=r,e.elementType=i,this.eat(17)&&(e.optional=!0,this.raise(At.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(i),e.optional=n,this.raise(At.InvalidTupleMemberLabel,i),e.label=i,e.elementType=this.tsParseType()),i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAtNode(i);e.typeAnnotation=i,i=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=i,i=this.finishNode(t,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const s=this.startNode();return"TSConstructorType"===e&&(s.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,s))),this.finishNode(s,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(j(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(At.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,s){const r=this.startNode(),n=this.eat(s),i=[];do{i.push(t())}while(this.eat(s));return 1!==i.length||n?(r.types=i,this.finishNode(r,e)):i[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(j(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const s=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(s.parameterName=e,s.asserts=!0,s.typeAnnotation=null,e=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(e,s),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(s.parameterName=this.parseIdentifier(),s.asserts=r,s.typeAnnotation=null,t.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const i=this.tsParseTypeAnnotation(!1);return s.parameterName=n,s.typeAnnotation=i,s.asserts=r,t.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!j(this.state.type)&&!this.match(78))&&(e&&this.raise(S.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){bt(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(At.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return s.length||this.raise(At.EmptyHeritageClauseType,t,{token:e}),s}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),j(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(At.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,s){e.isExport=s||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(At.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),s=e();return this.state=t,s}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),s=e();if(void 0!==s&&!1!==s)return s;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,s=this.state.type;return this.isContextual(100)&&(s=74,t="let"),this.tsInAmbientContext((()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(j(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,s){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const s=e;return s.global=!0,s.id=t,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,s)}}tsParseDeclaration(e,t,s,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||j(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(j(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&j(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(s)&&j(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const s=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,s?super.parseArrowExpression(s,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(At.EmptyTypeArguments,e):this.state.inType||this.curContext()!==A.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const s=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const n=r.accessibility,i=r.override,o=r.readonly;4&e||!(n||o||i)||this.raise(At.UnexpectedParameterModifier,s);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const c=this.parseMaybeDefault(a.loc.start,a);if(n||o||i){const e=this.startNodeAt(s);return t.length&&(e.decorators=t),n&&(e.accessibility=n),o&&(e.readonly=o),i&&(e.override=i),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(At.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),c}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(At.PatternIsOptional,t)}setArrowFunctionParameters(e,t,s){super.setArrowFunctionParameters(e,t,s),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,s=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(At.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,s):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,s))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(At.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,s,r){const n=super.parseArrayLike(e,t,s,r);return"ArrayExpression"===n.type&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,t,s,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"TSNonNullExpression")}let n=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(s)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let i;const o=this.tsTryParseAndCatch((()=>{if(!s&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}const o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(n&&!this.match(10))return void(i=this.state.curPosition());if(X(this.state.type)){const s=super.parseTaggedTemplateExpression(e,t,r);return s.typeParameters=o,s}if(!s&&this.eat(10)){const s=this.startNodeAt(t);return s.callee=e,s.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeParameters=o,r.optionalChainMember&&(s.optional=n),this.finishCallExpression(s,r.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&W(a)&&!this.hasPrecedingLineBreak())return;const c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,"TSInstantiationExpression")}));if(i&&this.unexpected(i,10),o)return"TSInstantiationExpression"===o.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(At.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),o}return super.parseSubscript(e,t,s,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:s}=e;"TSInstantiationExpression"!==s.type||null!=(t=s.extra)&&t.parenthesized||(e.typeParameters=s.typeParameters,e.callee=s.expression)}parseExprOp(e,t,s){let r;if(z(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(S.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,s)}return super.parseExprOp(e,t,s)}checkReservedWord(e,t,s,r){this.state.isAmbientContext||super.checkReservedWord(e,t,s,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(At.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,s,r){super.applyImportPhase(e,t,s,r),t?e.exportKind="type"===s?"type":"value":e.importKind="type"===s||"typeof"===s?s:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if(j(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const s=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,s);t=super.parseImportSpecifiersAndAfter(e,s)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(At.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,s=!1){const{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,t,s||r);if(!r)return n;for(const{id:e,init:s}of n.declarations)s&&("const"!==t||e.typeAnnotation?this.raise(At.InitializerNotAllowedInAmbientContext,s):Nt(s,this.hasPlugin("estree"))||this.raise(At.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,s));return n}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>Pt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,s){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:At.InvalidModifierOnTypeParameterPositions},t);const n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(At.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,s,!!t.static)};t.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,t,s,r){const n=this.tsTryParseIndexSignature(t);if(n)return e.body.push(n),t.abstract&&this.raise(At.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(At.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(At.IndexSignatureHasDeclare,t),void(t.override&&this.raise(At.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(At.NonAbstractClassHasAbstractMethod,t),t.override&&(s.hadSuperClass||this.raise(At.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,s,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(At.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(At.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,s){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,s):void 0)||super.parseExpressionStatement(e,t,s)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,s);const r=this.tryParse((()=>super.parseConditional(e,t)));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(s,r.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const s=this.startNodeAt(t);return s.expression=e,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(At.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=j(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||s)&&(e.exportKind="type"),s&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,s,r){if((!t||s)&&this.isContextual(113))return;super.parseClassId(e,t,s,e.declare?1024:8331);const n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(At.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(At.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(At.PrivateElementHasAbstract,e),e.accessibility&&this.raise(At.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(At.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,s,r,n,i){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&n&&this.raise(At.ConstructorHasTypeParameters,o);const{declare:a=!1,kind:c}=t;!a||"get"!==c&&"set"!==c||this.raise(At.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,s,r,n,i)}pushClassPrivateMethod(e,t,s,r){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,s,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,s,r,n,i,o){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,s,r,n,i,o)}parseFunctionParams(e,t){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(e.typeParameters=s),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const s=this.tsTryParseTypeAnnotation();s&&(e.id.typeAnnotation=s,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var s,r,n,i,o;let a,c,l,u;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),c=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!c.error)return c.node;const{context:s}=this.state,r=s[s.length-1];r!==A.j_oTag&&r!==A.j_expr||s.pop()}if(!(null!=(s=c)&&s.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const h=this.tryParse((s=>{var r,n;u=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==i.type||null!=(r=i.extra)&&r.parenthesized)&&s(),0!==(null==(n=u)?void 0:n.params.length)&&this.resetStartLocationFromNode(i,u),i.typeParameters=u,i}),a);if(!h.error&&!h.aborted)return u&&this.reportReservedArrowTypeParam(u),h.node;if(!c&&(bt(!this.hasPlugin("jsx")),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!l.error))return l.node;if(null!=(r=c)&&r.node)return this.state=c.failState,c.node;if(h.node)return this.state=h.failState,u&&this.reportReservedArrowTypeParam(u),h.node;if(null!=(n=l)&&n.node)return this.state=l.failState,l.node;throw(null==(i=c)?void 0:i.error)||h.error||(null==(o=l)?void 0:o.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(At.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);const s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(At.UnexpectedTypeCastInParameter,e):this.raise(At.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,s){return r={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==s||!t)&&["expression",!0],TSSatisfiesExpression:(64!==s||!t)&&["expression",!0],TSTypeAssertion:(64!==s||!t)&&["expression",!0]},n=e,Object.hasOwnProperty.call(r,n)&&r[n]||super.isValidLVal(e,t,s);var r,n}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(e);return s.typeParameters=t,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const s=super.parseMaybeDefault(e,t);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(At.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,s){for(let t=0;t<e.length;t++){const s=e[t];"TSTypeCastExpression"===(null==s?void 0:s.type)&&(e[t]=this.typeCastToParameter(s))}super.toAssignableList(e,t,s)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e)[0];return s&&this.isThisParam(s)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,s){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,s)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(At.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,s,r,n,i,o){const a=super.parseMethod(e,t,s,r,n,i,o);if(a.abstract){if(this.hasPlugin("estree")?!!a.value.body:!!a.body){const{key:e}=a;this.raise(At.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,s,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,s),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,s,r))}parseImportSpecifier(e,t,s,r,n){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,s),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,s,r,s?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,s){const r=t?"imported":"local",n=t?"local":"exported";let i,o=e[r],a=!1,c=!0;const l=o.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const s=this.parseIdentifier();$(this.state.type)?(a=!0,o=e,i=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(i=s,c=!1)}else $(this.state.type)?(c=!1,i=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,o=e)}else $(this.state.type)&&(a=!0,t?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());a&&s&&this.raise(t?At.TypeModifierIsUsedInTypeImports:At.TypeModifierIsUsedInTypeExports,l),e[r]=o,e[n]=i;e[t?"importKind":"exportKind"]=a?"type":"value",c&&this.eatContextual(93)&&(e[n]=t?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=ot(e[r])),t&&this.checkIdentifier(e[n],a?4098:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),j(this.state.type)){const e=this.parseIdentifierName(),s=this.createIdentifier(t,e);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(144)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const s=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,s?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,s,r){void 0!==e&&super.checkReservedWord(e,t,s,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,s){return"Placeholder"===e||super.isValidLVal(e,t,s)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;return 144===this.lookahead().type}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var s;if("Placeholder"!==t.type||null!=(s=t.extra)&&s.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const s=e;return s.label=this.finishPlaceholder(t,"Identifier"),this.next(),s.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(s,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,s)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,s){const r=t?"ClassDeclaration":"ClassExpression";this.next();const n=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(144)||this.match(5))){if(s||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,r);throw this.raise(xt.ClassNameIsRequired,this.state.startLoc)}e.id=i}else this.parseClassId(e,t,s);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,t){const s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=s,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Y(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var s;return!(null==(s=e.specifiers)||!s.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const s=this.startNodeAtNode(t);if(s.local=t,e.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(xt.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ft=Object.keys(Dt),Bt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Ut extends Tt{checkProto(e,t,s,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(S.RecordNoProto,n);s.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=n.loc.start):this.raise(S.DuplicateProto,n)),s.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();const e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc,s=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[s];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var s;e.optionalParametersLoc=null!=(s=null==t?void 0:t.loc)?s:this.state.startLoc}parseMaybeAssign(e,t){const s=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,s)),e}let r;e?r=!1:(e=new rt,r=!0);const{type:n}=this.state;(10===n||j(n))&&(this.state.potentialArrowAt=this.state.start);let i=this.parseMaybeConditional(e);if(t&&(i=t.call(this,i,s)),(o=this.state.type)>=29&&o<=33){const t=this.startNodeAt(s),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(i,!0),t.left=i;const r=s.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=i;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(i,{in:this.finishNode(t,"AssignmentExpression")}),t}var o;return r&&this.checkExpressionErrors(e,!0),i}parseMaybeConditional(e){const t=this.state.startLoc,s=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,s)?r:this.parseConditional(r,t,e)}parseConditional(e,t,s){if(this.eat(17)){const s=this.startNodeAt(t);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,s=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,s)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,s){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(s>=z(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(S.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((n=r)>=39&&n<=59&&(this.prodParam.hasIn||!this.match(58))){let n=z(r);if(n>s){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;const o=41===r||42===r,a=40===r;if(a&&(n=z(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(S.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(r,n);const c=this.finishNode(i,o||a?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(a&&(41===l||42===l)||o&&40===l)throw this.raise(S.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,s)}}var n;return e}parseExprOpRightExpr(e,t){const s=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(S.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),s)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,s=this.parseMaybeAssign();return!h.has(s.type)||null!=(e=s.extra)&&e.parenthesized||this.raise(S.PipeUnparenthesizedBody,t,{type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipeTopicUnused,t),s}checkExponentialAfterUnary(e){this.match(57)&&this.raise(S.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const s=this.state.startLoc,r=this.isContextual(96);if(r&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(s);return t||this.checkExponentialAfterUnary(e),e}const n=this.match(34),i=this.startNode();if(o=this.state.type,U[o]){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const s=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&s){const e=i.argument;"Identifier"===e.type?this.raise(S.StrictDelete,i):this.hasPropertyAsPrivateName(e)&&this.raise(S.DeletePrivateField,i)}if(!n)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var o;const a=this.parseUpdate(i,n,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?W(e):W(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(S.AwaitNotInAsyncContext,s),this.parseAwait(s)}return a}parseUpdate(e,t,s){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const r=this.state.startLoc;let n=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return n;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=n,this.next(),this.checkLVal(n,{in:n=this.finishNode(e,"UpdateExpression")})}return n}parseExprSubscripts(e){const t=this.state.startLoc,s=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,s)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,s){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,s,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,s,r){const{type:n}=this.state;if(!s&&15===n)return this.parseBind(e,t,s,r);if(X(n))return this.parseTaggedTemplateExpression(e,t,r);let i=!1;if(18===n){if(s&&(this.raise(S.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,i);{const s=this.eat(0);return s||i||this.eat(16)?this.parseMember(e,t,r,s,i):(r.stop=!0,e)}}parseMember(e,t,s,r,n){const i=this.startNodeAt(t);return i.object=e,i.computed=r,r?(i.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(S.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),s.optionalChainMember?(i.optional=n,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,s,r){const n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,s)}parseCoverCallAndAsyncArrowHead(e,t,s,r){const n=this.state.maybeInArrowParameters;let i=null;this.state.maybeInArrowParameters=!0,this.next();const o=this.startNodeAt(t);o.callee=e;const{maybeAsyncArrow:a,optionalChainMember:c}=s;a&&(this.expressionScope.enter(new Xe(2)),i=new rt),c&&(o.optional=r),o.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,o,i);let l=this.finishCallExpression(o,c);return a&&this.shouldParseAsyncArrow()&&!r?(s.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(a&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=n,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,s){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(S.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(S.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(S.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,s,r,n){const i=[];let o=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(S.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(!1,n,s))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var s;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(s=t.extra)?void 0:s.trailingCommaLoc),t.innerComments&&Pe(e,t.innerComments),t.callee.trailingComments&&Pe(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,s=null;const{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(S.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(S.UnsupportedBind,e)}case 138:return this.raise(S.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());oe(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(j(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,s=this.parseIdentifier();if(!t&&"async"===s.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(s),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(s));if(j(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(s)):s;if(90===e)return this.resetPreviousNodeTrailingComments(s),this.parseDo(this.startNodeAtNode(s),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(s),[s],!1)):s}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(e){const t=this.startNode(),s=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,s,e,r)}finishTopicReference(e,t,s,r){if(this.testTopicReferenceConfiguration(s,t,r)){const r="smart"===s?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===s?S.PrimaryTopicNotAllowed:S.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}throw this.raise(S.PipeTopicUnconfiguredToken,t,{token:Y(r)})}testTopicReferenceConfiguration(e,t,s){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Y(s)}]);case"smart":return 27===s;default:throw this.raise(S.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(tt(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(S.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const s=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=s,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(S.UnexpectedSuper,e):this.raise(S.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(S.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),s=this.state.value;return this.next(),e.id=this.createIdentifier(t,s),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,s){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==s||r)&&this.raise(S.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:s}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(S.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(S.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,s){return this.addExtra(s,"rawValue",e),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=e,this.next(),this.finishNode(s,t)}parseLiteral(e,t){const s=this.startNode();return this.parseLiteralAtNode(e,t,s)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let s;this.next(),this.expressionScope.enter(new Xe(1));const r=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const i=this.state.startLoc,o=[],a=new rt;let c,l,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){l=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(a,this.parseParenItem))}const h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=n;let p=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,o,!1),p):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),l&&this.unexpected(l),c&&this.unexpected(c),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(i),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,h)):s=o[0],this.wrapParenthesis(t,s))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const s=this.startNodeAt(e);return s.expression=t,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const s=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(S.UnexpectedNewTarget,s),s}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),s=this.parseNoCallExpr();e.callee=s,!t||"Import"!==s.type&&"ImportExpression"!==s.type||this.raise(S.ImportCallNotNewExpression,s)}parseTemplateElement(e){const{start:t,startLoc:s,end:r,value:n}=this.state,o=t+1,a=this.startNodeAt(i(s,1));null===n&&(e||this.raise(S.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));const c=this.match(24),l=c?-1:-2,u=r+l;a.value={raw:this.input.slice(o,u).replace(/\r\n?/g,"\n"),cooked:null===n?null:n.slice(1,l)},a.tail=c,this.next();const h=this.finishNode(a,"TemplateElement");return this.resetEndLocation(h,i(this.state.lastTokEndLoc,l)),h}parseTemplate(e){const t=this.startNode();t.expressions=[];let s=this.parseTemplateElement(e);for(t.quasis=[s];!s.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(s=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,s,r){s&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=Object.create(null);let o=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let n;t?n=this.parseBindingProperty():(n=this.parsePropertyDefinition(r),this.checkProto(n,s,i,r)),s&&!this.isObjectProperty(n)&&"SpreadElement"!==n.type&&this.raise(S.InvalidRecordProperty,n),n.shorthand&&this.addExtra(n,"shorthand",!0),a.properties.push(n)}this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return t?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(a,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(S.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const s=this.startNode();let r,n=!1,i=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(s.decorators=t,t=[]),s.method=!1,e&&(r=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);const a=this.state.containsEsc,c=this.parsePropertyName(s,e);if(!o&&!a&&this.maybeAsyncOrAccessorProp(s)){const e=c.name;"async"!==e||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(s)),"get"!==e&&"set"!==e||(i=!0,this.resetPreviousNodeTrailingComments(c),s.kind=e,this.match(55)&&(o=!0,this.raise(S.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,r,o,n,!1,i,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const s=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==s&&this.raise("get"===e.kind?S.BadGetterArity:S.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(S.BadSetterRestParameter,e)}parseObjectMethod(e,t,s,r,n){if(n){const s=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(s||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,s,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,s,r){if(e.shorthand=!1,this.eat(14))return e.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),s)e.value=this.parseMaybeDefault(t,ot(e.key));else if(this.match(29)){const s=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=s):this.raise(S.InvalidCoverInitializedName,s),e.value=this.parseMaybeDefault(t,ot(e.key))}else e.value=ot(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,s,r,n,i,o){const a=this.parseObjectMethod(e,s,r,n,i)||this.parseObjectProperty(e,t,n,o);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:s,value:r}=this.state;let n;if($(s))n=this.parseIdentifier(!0);else switch(s){case 134:n=this.parseNumericLiteral(r);break;case 133:n=this.parseStringLiteral(r);break;case 135:n=this.parseBigIntLiteral(r);break;case 136:n=this.parseDecimalLiteral(r);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(S.UnexpectedPrivateField,e),n=this.parsePrivateName();break}default:this.unexpected()}e.key=n,138!==s&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,s,r,n,i,o=!1){this.initFunction(e,s),e.generator=t,this.scope.enter(18|(o?64:0)|(n?32:0)),this.prodParam.enter(tt(s,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,s,r){s&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!s,r,i),this.state.inFSharpPipelineDirectBody=n,this.finishNode(i,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,s,r){this.scope.enter(6);let n=tt(s,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,s);const i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,s){this.toAssignableList(t,s,!1),e.params=t}parseFunctionBodyAndFinish(e,t,s=!1){return this.parseFunctionBody(e,!1,s),this.finishNode(e,t)}parseFunctionBody(e,t,s=!1){const r=t&&!this.match(5);if(this.expressionScope.enter(Ze()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(n=>{const i=!this.isSimpleParamList(e.params);n&&i&&this.raise(S.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const o=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||s||i),t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)})),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,s=e.length;t<s;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,s,r=!0){const n=!t&&new Set,i={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:i,binding:5,checkClashes:n,strictModeChanged:r})}parseExprList(e,t,s,r){const n=[];let i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(t,s))}return n}parseExprListItem(e,t,s){let r;if(this.match(12))e||this.raise(S.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){const e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(S.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),r=this.finishNode(e,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){const t=this.startNode(),s=this.parseIdentifierName(e);return this.createIdentifier(t,s)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:s,type:r}=this.state;$(r)?t=this.state.value:this.unexpected();const n=r<=92;return e?n&&this.replaceToken(132):this.checkReservedWord(t,s,n,!1),this.next(),t}checkReservedWord(e,t,s,r){if(e.length>10)return;if(!function(e){return ye.has(e)}(e))return;if(s&&function(e){return ue.has(e)}(e))return void this.raise(S.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?r?ge:fe:de)(e,this.inModule))this.raise(S.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(S.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(S.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(S.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(S.ArgumentsInClass,t)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(S.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(S.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||X(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(S.YieldInParameter,e),this.next();let t=!1,s=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:s=this.parseMaybeAssign()}return e.delegate=t,e.argument=s,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(S.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const s=this.startNodeAt(t);return s.callee=e,this.finishNode(s,"PipelineBareFunction")}{const s=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),s.expression=e,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(S.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=s,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const s=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{s()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const Ht={kind:1},Gt={kind:2},Kt=/[\uD800-\uDFFF]/u,jt=/in(?:stanceof)?/y;class $t extends Ut{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(let s=0;s<e.length;s++){const r=e[s],{type:n}=r;if("number"==typeof n){if(138===n){const{loc:t,start:n,value:o,end:a}=r,c=n+1,l=i(t.start,1);e.splice(s,1,new We({type:Q(27),value:"#",start:n,end:c,startLoc:t.start,endLoc:l}),new We({type:Q(132),value:o,start:c,end:a,startLoc:l,endLoc:t.end})),s++;continue}if(X(n)){const{loc:o,start:a,value:c,end:l}=r,u=a+1,h=i(o.start,1);let p,d,f,m,g;p=96===t.charCodeAt(a)?new We({type:Q(22),value:"`",start:a,end:u,startLoc:o.start,endLoc:h}):new We({type:Q(8),value:"}",start:a,end:u,startLoc:o.start,endLoc:h}),24===n?(f=l-1,m=i(o.end,-1),d=null===c?null:c.slice(1,-1),g=new We({type:Q(22),value:"`",start:f,end:l,startLoc:m,endLoc:o.end})):(f=l-2,m=i(o.end,-2),d=null===c?null:c.slice(1,-2),g=new We({type:Q(23),value:"${",start:f,end:l,startLoc:m,endLoc:o.end})),e.splice(s,1,p,new We({type:Q(20),value:d,start:u,end:f,startLoc:h,endLoc:m}),g),s+=2;continue}r.type=Q(n)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e,t=139,s=this.options.sourceType){if(e.sourceType=s,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(S.ModuleExportUndefined,t,{localName:e});let r;return r=139===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",i(this.state.startLoc,-1)),r}stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,delete t.expression;const s=t.value,r=s.value,n=this.input.slice(s.start,s.end),i=s.value=n.slice(1,-1);return this.addExtra(s,"raw",n),this.addExtra(s,"rawValue",i),this.addExtra(s,"expressionValue",r),s.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(oe(e)){if(jt.lastIndex=t,jt.test(this.input)){const e=this.codePointAtPos(jt.lastIndex);if(!ae(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifier(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();return!(102===e&&!t)&&(j(e)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const s=this.state.type,r=this.startNode(),n=!!(2&e),i=!!(4&e),o=1&e;switch(s){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return i||this.raise(this.state.strict?S.StrictFunction:this.options.annexB?S.SloppyFunctionAnnexB:S.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!n&&i);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?n||this.raise(S.UnexpectedLexicalDeclaration,r):this.raise(S.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(S.UnexpectedUsingDeclaration,this.state.startLoc):n||this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!n&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:n||this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return this.options.allowImportExportEverywhere||o||this.raise(S.UnexpectedImportExport,this.state.startLoc),this.next(),83===s?(e=this.parseImport(r),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return n||this.raise(S.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!n&&i)}const a=this.state.value,c=this.parseExpression();return j(s)&&"Identifier"===c.type&&this.eat(14)?this.parseLabeledStatement(r,a,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(S.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,s){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(S.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),s&&this.resetStartLocationFromNode(s,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(S.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(S.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let s;if(this.match(10)){const t=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(t,s);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(s),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==s&&this.raise(S.DecoratorArgumentsOutsideParentheses,r)}else{for(s=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=s,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,s=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(s)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let s;for(s=0;s<this.state.labels.length;++s){const r=this.state.labels[s];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(t||1===r.kind))break;if(e.label&&t)break}}if(s===this.state.labels.length){const s=t?"BreakStatement":"ContinueStatement";this.raise(S.IllegalBreakContinue,e,{type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Ht),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Ht);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const s=this.isContextual(100);{const r=this.isContextual(96)&&this.startsAwaitUsing(),n=r||this.isContextual(107)&&this.startsUsingForOf(),i=s&&this.hasFollowingBindingAtom()||n;if(this.match(74)||this.match(75)||i){const s=this.startNode();let i;r?(i="await using",this.isAwaitAllowed()||this.raise(S.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(s,!0,i);const o=this.finishNode(s,"VariableDeclaration"),a=this.match(58);return a&&n&&this.raise(S.ForInUsing,o),(a||this.isContextual(102))&&1===o.declarations.length?this.parseForIn(e,o,t):(null!==t&&this.unexpected(t),this.parseFor(e,o))}}const r=this.isContextual(95),n=new rt,i=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(s&&this.raise(S.ForOfLet,i),null===t&&r&&"Identifier"===i.type&&this.raise(S.ForOfAsync,i)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(i,!0);const s=o?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{in:{type:s}}),this.parseForIn(e,i,t)}return this.checkExpressionErrors(n,!0),null!==t&&this.unexpected(t),this.parseFor(e,i)}parseFunctionStatement(e,t,s){return this.next(),this.parseFunction(e,1|(s?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(S.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let s;this.expect(5),this.state.labels.push(Gt),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);s&&this.finishNode(s,"SwitchCase"),t.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(e&&this.raise(S.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(S.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(S.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,s=!1){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Ht),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(S.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,s,r){for(const e of this.state.labels)e.name===t&&this.raise(S.LabelRedeclaration,s,{labelName:t});const n=(i=this.state.type)>=90&&i<=92?1:this.match(71)?2:null;var i;for(let t=this.state.labels.length-1;t>=0;t--){const s=this.state.labels[t];if(s.statementStart!==e.start)break;s.statementStart=this.state.start,s.kind=n}return this.state.labels.push({name:t,kind:n,statementStart:this.state.start}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,s){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,s){const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,s),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,s,r,n){const i=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?o:void 0,s,r,n)}parseBlockOrModuleBlockBody(e,t,s,r,n){const i=this.state.strict;let o=!1,a=!1;for(;!this.match(r);){const r=s?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),o||"use strict"!==e.value.value||(o=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(r)}null==n||n.call(this,o),i||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,s){const r=this.match(58);return this.next(),r?null!==s&&this.unexpected(s):e.await=null!==s,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(S.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(S.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,s,r=!1){const n=e.declarations=[];for(e.kind=s;;){const e=this.startNode();if(this.parseVarId(e,s),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||r||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==s||this.match(58)||this.isContextual(102)||this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"const"}):this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const s=this.parseBindingAtom();this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=s}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const s=2&t,r=!!(1&t),n=r&&!(4&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(s&&this.raise(S.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(n));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(tt(i,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!s&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||j(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ze(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,s){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,s),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const s={hadConstructor:!1,hadSuperClass:e};let r=[];const n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(S.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(n,e,s),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(S.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),r.length)throw this.raise(S.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){const s=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=s,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=s,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(e,t,s){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,s,r)}parseClassMemberWithIsStatic(e,t,s,r){const n=t,i=t,o=t,a=t,c=t,l=n,u=n;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind="method";const t=this.match(138);return this.parseClassElementName(l),t?void this.pushClassPrivateMethod(e,i,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(S.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}const h=j(this.state.type)&&!this.state.containsEsc,p=this.match(138),d=this.parseClassElementName(t),f=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind="method",p)return void this.pushClassPrivateMethod(e,i,!1,!1);const r=this.isNonstaticConstructor(n);let o=!1;r&&(n.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(S.DuplicateConstructor,d),r&&this.hasPlugin("typescript")&&t.override&&this.raise(S.OverrideOnConstructor,d),s.hadConstructor=!0,o=s.hadSuperClass),this.pushClassMethod(e,n,!1,!1,r,o)}else if(this.isClassProperty())p?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o);else if(h&&"async"===d.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);const t=this.eat(55);u.optional&&this.unexpected(f),l.kind="method";const s=this.match(138);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),s?this.pushClassPrivateMethod(e,i,t,!0):(this.isNonstaticConstructor(n)&&this.raise(S.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,t,!0,!1,!1))}else if(!h||"get"!==d.name&&"set"!==d.name||this.match(55)&&this.isLineTerminator())if(h&&"accessor"===d.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);const t=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?p?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o):this.unexpected();else{this.resetPreviousNodeTrailingComments(d),l.kind=d.name;const t=this.match(138);this.parseClassElementName(n),t?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(S.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}}parseClassElementName(e){const{type:t,value:s}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==s||this.raise(S.StaticPrototype,this.state.startLoc),138===t){"constructor"===s&&this.raise(S.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var s;this.scope.enter(208);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(s=t.decorators)&&s.length&&this.raise(S.DecoratorStaticBlock,t)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(S.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const s=this.parseClassPrivateProperty(t);e.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(e,t,s){if(!s&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(S.ConstructorClassField,e)}const r=this.parseClassAccessorProperty(t);e.body.push(r),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,s,r,n,i){e.body.push(this.parseMethod(t,s,r,n,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,s,r){const n=this.parseMethod(t,s,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);const i="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,i)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Ze()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,s,r=8331){if(j(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!s&&t)throw this.raise(S.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const s=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,s),n=!r||this.eat(12),i=n&&this.eatExportStar(e),o=i&&this.maybeParseExportNamespaceSpecifier(e),a=n&&(!o||this.eat(12)),c=r||i;if(i&&!o){if(r&&this.unexpected(),t)throw this.raise(S.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}const l=this.maybeParseExportNamedSpecifiers(e);let u;if(r&&n&&!i&&!l&&this.unexpected(null,5),o&&a&&this.unexpected(null,98),c||l){if(u=!1,t)throw this.raise(S.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){var h;const s=e;if(this.checkExport(s,!0,!1,!!s.source),"ClassDeclaration"===(null==(h=s.declaration)?void 0:h.type))this.maybeTakeDecorators(t,s.declaration,s);else if(t)throw this.raise(S.UnsupportedDecoratorExport,e);return this.finishNode(s,"ExportNamedDeclaration")}if(this.eat(65)){const s=e,r=this.parseExportDefaultExpression();if(s.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,s);else if(t)throw this.raise(S.UnsupportedDecoratorExport,e);return this.checkExport(s,!0,!0),this.finishNode(s,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const s=t||this.parseIdentifier(!0),r=this.startNodeAtNode(s);return r.exported=s,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);const t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(S.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(S.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){if(this.match(80)){return this.parseClass(this.startNode(),!0,!1)}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(j(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(j(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),s=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||j(this.state.type)&&s)return!0;if(this.match(65)&&s){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(S.DecoratorBeforeExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,s,r){var n;if(t)if(s){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(i=t.extra)&&i.parenthesized||this.raise(S.ExportDefaultFromAsIdentifier,t)}}else if(null!=(n=e.specifiers)&&n.length)for(const t of e.specifiers){const{exported:e}=t,s="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,s),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(S.ExportBindingIsString,t,{localName:e.value,exportName:s}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(const t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(S.DuplicateDefaultExport,e):this.raise(S.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),n=this.match(133),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,n,e,r))}return t}parseExportSpecifier(e,t,s,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=at(e.local):e.exported||(e.exported=ot(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const e=this.parseStringLiteral(this.state.value),t=e.value.match(Kt);return t&&this.raise(S.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value)))}checkImportReflection(e){const{specifiers:t}=e,s=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==s&&this.raise(S.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==s&&this.raise(S.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==s&&this.raise(S.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(S.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(S.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,s,r){t||("module"===s?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===s?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===s?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const s=this.parseIdentifier(!0),{type:r}=this.state;return($(r)?98!==r||102===this.lookaheadCharCode():12!==r)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(e,t,s.name,s.loc.start),null):(this.applyImportPhase(e,t,null),s)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return j(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const s=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=s&&this.maybeParseStarImportSpecifier(e);return s&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,s){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,s))}finishImportSpecifier(e,t,s=8201){return this.checkLVal(e.local,{in:{type:t},binding:s}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const s=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(S.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(133)?s.key=this.parseStringLiteral(r):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const s=this.startNode();if(s.key=this.parseIdentifier(!0),"type"!==s.key.name&&this.raise(S.ModuleAttributeDifferentFromType,s.key),t.has(s.key.name)&&this.raise(S.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),t.add(s.key.name),this.expect(14),!this.match(133))throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(S.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!s&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const s=this.startNodeAtNode(t);return s.local=t,e.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}return!!$(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(S.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const s=this.startNode(),r=this.match(133),n=this.isContextual(130);s.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(s,r,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,s,r,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:s}=e;if(t)throw this.raise(S.ImportBindingIsString,e,{importName:s.value});this.checkReservedWord(s.name,e.loc.start,!0,!0),e.local||(e.local=ot(s))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Vt extends $t{constructor(e,t){super(e=function(e){if(null==e)return Object.assign({},Bt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const r of Object.keys(Bt)){var s;t[r]=null!=(s=e[r])?s:Bt[r]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const s of e){const[e,r]=Array.isArray(s)?s:[s,{}];t.has(e)||t.set(e,r||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return Ee}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const Wt=function(e){const t={};for(const s of Object.keys(e))t[s]=Q(e[s]);return t}(K);function qt(e,t){let s=Vt;return null!=e&&e.plugins&&(!function(e){if(Ot(e,"decorators")){if(Ot(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=Mt(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const s=Mt(e,"decorators","allowCallParenthesized");if(null!=s&&"boolean"!=typeof s)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ot(e,"flow")&&Ot(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ot(e,"placeholders")&&Ot(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ot(e,"pipelineOperator")){const t=Mt(e,"pipelineOperator","proposal");if(!kt.includes(t)){const e=kt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const s=Ot(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Ot(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ot(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=Mt(e,"pipelineOperator","topicToken");if(!Lt.includes(t)){const e=Lt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&s)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&s)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ot(e,"moduleAttributes")){if(Ot(e,"importAssertions")||Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==Mt(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ot(e,"importAssertions")&&Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ot(e,"recordAndTuple")&&null!=Mt(e,"recordAndTuple","syntaxType")&&!Rt.includes(Mt(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Rt.map((e=>`'${e}'`)).join(", "));if(Ot(e,"asyncDoExpressions")&&!Ot(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ot(e,"optionalChainingAssign")&&"2023-07"!==Mt(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(e.plugins),s=function(e){const t=Ft.filter((t=>Ot(e,t))),s=t.join("/");let r=Jt[s];if(!r){r=Vt;for(const e of t)r=Dt[e](r);Jt[s]=r}return r}(e.plugins)),new s(e,t)}const Jt={};t.parse=function(e,t){var s;if("unambiguous"!==(null==(s=t)?void 0:s.sourceType))return qt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const s=qt(t,e),r=s.parse();if(s.sawUnambiguousESM)return r;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",qt(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(s){try{return t.sourceType="script",qt(t,e).parse()}catch(e){}throw s}},t.parseExpression=function(e,t){const s=qt(t,e);return s.options.strictMode&&(s.state.strict=!0),s.getExpression()},t.tokTypes=Wt},1328:function(e,t){!function(e){"use strict";class t{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,s,r){e&&(null!==s?e[t][s]=r:e[t]=r)}remove(e,t,s){e&&(null!==s?e[t].splice(s,1):delete e[t])}}class s extends t{constructor(e,t){super(),this.enter=e,this.leave=t}visit(e,t,s,r){if(e){if(this.enter){const n=this.should_skip,i=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,s,r),this.replacement&&(e=this.replacement,this.replace(t,s,r,e)),this.should_remove&&this.remove(t,s,r);const a=this.should_skip,c=this.should_remove;if(this.should_skip=n,this.should_remove=i,this.replacement=o,a)return e;if(c)return null}for(const t in e){const s=e[t];if("object"==typeof s)if(Array.isArray(s))for(let r=0;r<s.length;r+=1)null!==s[r]&&"string"==typeof s[r].type&&(this.visit(s[r],e,t,r)||r--);else null!==s&&"string"==typeof s.type&&this.visit(s,e,t,null)}if(this.leave){const n=this.replacement,i=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,s,r),this.replacement&&(e=this.replacement,this.replace(t,s,r,e)),this.should_remove&&this.remove(t,s,r);const o=this.should_remove;if(this.replacement=n,this.should_remove=i,o)return null}}return e}}class r extends t{constructor(e,t){super(),this.enter=e,this.leave=t}async visit(e,t,s,r){if(e){if(this.enter){const n=this.should_skip,i=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,e,t,s,r),this.replacement&&(e=this.replacement,this.replace(t,s,r,e)),this.should_remove&&this.remove(t,s,r);const a=this.should_skip,c=this.should_remove;if(this.should_skip=n,this.should_remove=i,this.replacement=o,a)return e;if(c)return null}for(const t in e){const s=e[t];if("object"==typeof s)if(Array.isArray(s))for(let r=0;r<s.length;r+=1)null!==s[r]&&"string"==typeof s[r].type&&(await this.visit(s[r],e,t,r)||r--);else null!==s&&"string"==typeof s.type&&await this.visit(s,e,t,null)}if(this.leave){const n=this.replacement,i=this.should_remove;this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,e,t,s,r),this.replacement&&(e=this.replacement,this.replace(t,s,r,e)),this.should_remove&&this.remove(t,s,r);const o=this.should_remove;if(this.replacement=n,this.should_remove=i,o)return null}}return e}}function n(e,{enter:t,leave:r}){return new s(t,r).visit(e,null)}async function i(e,{enter:t,leave:s}){const n=new r(t,s);return await n.visit(e,null)}e.asyncWalk=i,e.walk=n,Object.defineProperty(e,"__esModule",{value:!0})}(t)},88:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Board=void 0;const r=s(8344),n=s(4396),i=s(2696),o=s(3633);function a(e){switch(e){case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;default:return null}}class c{squares;constructor(){this.squares=new Array;for(let e=0;e<81;e+=1)this.squares.push(null);this.resetBySFEN("lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL")}at(e){return this.squares[e.index]}set(e,t){this.squares[e.index]=t}swap(e,t){const s=this.squares[e.index];this.squares[e.index]=this.squares[t.index],this.squares[t.index]=s}remove(e){const t=this.squares[e.index];return this.squares[e.index]=null,t}listNonEmptySquares(){return o.Square.all.filter((e=>this.squares[e.index]))}listSquaresByColor(e){return o.Square.all.filter((t=>{const s=this.squares[t.index];return s&&s.color===e}))}listSquaresByPiece(e){return o.Square.all.filter((t=>{const s=this.squares[t.index];return s&&e.equals(s)}))}clear(){o.Square.all.forEach((e=>{this.squares[e.index]=null}))}get sfen(){let e="",t=0;for(let s=0;s<9;s+=1){for(let r=0;r<9;r+=1){const n=this.at(o.Square.newByXY(r,s));n?(t&&(e+=t,t=0),e+=n.sfen):t+=1}t&&(e+=t,t=0),8!==s&&(e+="/")}return e}resetBySFEN(e){if(!c.isValidSFEN(e))return!1;this.clear();const t=e.split("/");for(let e=0;e<9;e+=1){let s=0;for(let r=0;r<t[e].length;r+=1){let n=t[e][r];"+"===n&&(r+=1,n+=t[e][r]);const c=a(n);c?s+=c:(this.set(o.Square.newByXY(s,e),i.Piece.newBySFEN(n)),s+=1)}}return!0}findKing(e){const t=new i.Piece(e,i.PieceType.KING);return o.Square.all.find((e=>{const s=this.at(e);if(s&&t.equals(s))return!0}))}hasPower(e,t,s){return!!n.directions.find((r=>{let i=0;for(let o=e.neighbor(r);o.valid&&(i+=1,!(s&&s.filled&&o.equals(s.filled)));o=o.neighbor(r)){if(s&&s.ignore&&o.equals(s.ignore))continue;const e=this.at(o);if(e){if(e.color!==t)return!1;const s=(0,n.reverseDirection)(r),o=(0,n.resolveMoveType)(e,s);return o===n.MoveType.LONG||o===n.MoveType.SHORT&&1===i}}return!1}))}isChecked(e,t){const s=this.findKing(e);return!!s&&this.hasPower(s,(0,r.reverseColor)(e),{filled:t&&t.filled,ignore:t&&t.ignore})}static isValidSFEN(e){const t=e.split("/");if(9!==t.length)return!1;for(let e=0;e<9;e+=1){let s=0;for(let r=0;r<t[e].length;r+=1){let n=t[e][r];"+"===n&&(r+=1,n+=t[e][r]);const o=a(n);if(o)s+=o;else{if(!i.Piece.isValidSFEN(n))return!1;s+=1}}if(9!==s)return!1}return!0}copyFrom(e){o.Square.all.forEach((t=>{this.squares[t.index]=e.at(t)}))}}t.Board=c},8344:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.parseSFENColor=t.isValidSFENColor=t.colorToSFEN=t.reverseColor=t.Color=void 0,function(e){e.BLACK="black",e.WHITE="white"}(s||(t.Color=s={})),t.reverseColor=function(e){return e===s.BLACK?s.WHITE:s.BLACK},t.colorToSFEN=function(e){return e===s.BLACK?"b":"w"},t.isValidSFENColor=function(e){return"b"===e||"w"===e},t.parseSFENColor=function(e){return"b"===e?s.BLACK:s.WHITE}},3784:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportCSA=t.formatCSAMove=t.getCSASpecialMoveName=t.importCSA=t.parseCSAMove=t.getSpecialMoveByName=void 0;const r=s(6504),n=s(1603),i=s(8344),o=s(5068),a=s(2696),c=s(1224),l=s(8e3),u=s(3633);var h,p;!function(e){e[e.VERSION=0]="VERSION",e[e.EXTENDED_COMMENT=1]="EXTENDED_COMMENT",e[e.COMMENT=2]="COMMENT",e[e.BLACK_NAME=3]="BLACK_NAME",e[e.WHITE_NAME=4]="WHITE_NAME",e[e.METADATA=5]="METADATA",e[e.POSITION=6]="POSITION",e[e.RANK=7]="RANK",e[e.PIECES=8]="PIECES",e[e.FIRST_TURN=9]="FIRST_TURN",e[e.MOVE=10]="MOVE",e[e.SPECIAL_MOVE=11]="SPECIAL_MOVE",e[e.ELAPSED=12]="ELAPSED"}(h||(h={})),function(e){e[e.HEADER=0]="HEADER",e[e.MOVE=1]="MOVE",e[e.NEUTRAL=2]="NEUTRAL"}(p||(p={}));const d=[{pattern:/^V/,type:h.VERSION,sectionType:p.HEADER},{pattern:/^'\*(.+)$/,type:h.EXTENDED_COMMENT,sectionType:p.NEUTRAL},{pattern:/^'(.+)$/,type:h.COMMENT,sectionType:p.NEUTRAL},{pattern:/^N\+(.+)$/,type:h.BLACK_NAME,sectionType:p.HEADER},{pattern:/^N-(.+)$/,type:h.WHITE_NAME,sectionType:p.HEADER},{pattern:/^\$([^:]+):(.+)$/,type:h.METADATA,sectionType:p.HEADER},{pattern:/^PI([1-9]{2}[A-Z]{2})*$/,type:h.POSITION,sectionType:p.HEADER},{pattern:/^P[1-9]( \* |[-+][A-Z][A-Z]){9}$/,type:h.RANK,sectionType:p.HEADER},{pattern:/^P[-+]([0-9]{2}[A-Z]{2})*/,type:h.PIECES,sectionType:p.HEADER},{pattern:/^[-+]$/,type:h.FIRST_TURN,sectionType:p.HEADER},{pattern:/^[-+][0-9]{4}[A-Z]{2}/,type:h.MOVE,sectionType:p.MOVE},{pattern:/^%[-+A-Z_]+/,type:h.SPECIAL_MOVE,sectionType:p.MOVE},{pattern:/^T([0-9]+)/,type:h.ELAPSED,sectionType:p.MOVE}];function f(e){const t=[],s=e.match(/^['N$]/)?[e]:e.split(",");for(const e of s)for(let s=0;s<d.length;s++){const r=d[s].pattern.exec(e);if(r){t.push({type:d[s].type,line:e,args:r.slice(1),sectionType:d[s].sectionType});break}}return t}const m={EVENT:l.RecordMetadataKey.TITLE,SITE:l.RecordMetadataKey.PLACE,START_TIME:l.RecordMetadataKey.START_DATETIME,END_TIME:l.RecordMetadataKey.END_DATETIME,TIME_LIMIT:l.RecordMetadataKey.TIME_LIMIT,OPENING:l.RecordMetadataKey.STRATEGY},g={FU:a.PieceType.PAWN,KY:a.PieceType.LANCE,KE:a.PieceType.KNIGHT,GI:a.PieceType.SILVER,KI:a.PieceType.GOLD,KA:a.PieceType.BISHOP,HI:a.PieceType.ROOK,OU:a.PieceType.KING,TO:a.PieceType.PROM_PAWN,NY:a.PieceType.PROM_LANCE,NK:a.PieceType.PROM_KNIGHT,NG:a.PieceType.PROM_SILVER,UM:a.PieceType.HORSE,RY:a.PieceType.DRAGON};function y(e,t){t.resetBySFEN(c.InitialPositionSFEN.STANDARD);for(let s=2;s+4<=e.length;s+=4){const r=Number(e[s]),n=Number(e[s+1]);t.board.remove(new u.Square(r,n))}}function S(e,t){const s=Number(e[1]);for(let r=0;r<9;r+=1){const o=9-r,c=3*r+2,l=e.slice(c,c+3);if(" "===l[0])continue;const h="+"===l[0]?i.Color.BLACK:i.Color.WHITE,p=g[l.slice(1)];if(!p)return new n.InvalidPieceNameError(l);t.board.set(new u.Square(o,s),new a.Piece(h,p))}}function E(e,t){const s="+"===e[1]?i.Color.BLACK:i.Color.WHITE;for(let r=2;r+4<=e.length;r+=4){const o=e.slice(r,r+4);if("00AL"===o){const e=(0,c.countNotExistingPieces)(t);return void(s===i.Color.BLACK?t.blackHand.forEach((s=>{t.blackHand.add(s,e[s])})):t.whiteHand.forEach((s=>{t.whiteHand.add(s,e[s])})))}const l=Number(o[0]),h=Number(o[1]),p=g[o.slice(2)];if(!p)return new n.InvalidPieceNameError(o);0!==l&&0!==h?t.board.set(new u.Square(l,h),new a.Piece(s,p)):s===i.Color.BLACK?t.blackHand.add(p,1):t.whiteHand.add(p,1)}}function v(e,t){if(("+"===e[0]?i.Color.BLACK:i.Color.WHITE)!=t.color)return new n.InvalidTurnError(e);const s=Number(e[1]),r=Number(e[2]),o=Number(e[3]),a=Number(e[4]),c=g[e.slice(5,7)];if(!c)return new n.InvalidPieceNameError(e);const l=0===s&&0===r?c:new u.Square(s,r),h=new u.Square(o,a);let p=t.createMove(l,h);if(!p)return new n.InvalidMoveError(e);if(l instanceof u.Square){const s=t.board.at(l);if(!s)return new n.PieceNotExistsError(e);if(s.type!==c){if(s.promoted().type!==c)return new n.PieceNotExistsError(e);p=p.withPromote()}}return p}function T(e,t){switch(e){case"CHUDAN":return o.SpecialMoveType.INTERRUPT;case"TORYO":return o.SpecialMoveType.RESIGN;case"JISHOGI":return o.SpecialMoveType.IMPASS;case"HIKIWAKE":return o.SpecialMoveType.DRAW;case"SENNICHITE":return o.SpecialMoveType.REPETITION_DRAW;case"TSUMI":return o.SpecialMoveType.MATE;case"FUZUMI":return o.SpecialMoveType.NO_MATE;case"TIME_UP":return o.SpecialMoveType.TIMEOUT;case"ILLEGAL_MOVE":return o.SpecialMoveType.FOUL_LOSE;case"+ILLEGAL_ACTION":return t==i.Color.BLACK?o.SpecialMoveType.FOUL_WIN:o.SpecialMoveType.FOUL_LOSE;case"-ILLEGAL_ACTION":return t==i.Color.WHITE?o.SpecialMoveType.FOUL_WIN:o.SpecialMoveType.FOUL_LOSE;case"KACHI":return o.SpecialMoveType.ENTERING_OF_KING}}t.getSpecialMoveByName=T,t.parseCSAMove=function(e,t){return v(t,e)},t.importCSA=function(e){const t=new l.RecordMetadata,s=new l.Record,o=new c.Position;o.resetBySFEN(c.InitialPositionSFEN.EMPTY);let a="",u=!1;const d=e.replace(/\r?\n\/(\r?\n[\s\S]*)?$/,"").split(/\r?\n/);for(const e of d)for(const c of f(e)){if(c.sectionType===p.HEADER&&u||c.sectionType===p.MOVE&&!u)return new n.InvalidLineError(c.line);switch(c.type){case h.VERSION:break;case h.EXTENDED_COMMENT:u?s.current.comment=(0,r.appendLine)(s.current.comment,c.args[0]):a=(0,r.appendLine)(a,c.args[0]);break;case h.COMMENT:break;case h.BLACK_NAME:t.setStandardMetadata(l.RecordMetadataKey.BLACK_NAME,c.args[0]);break;case h.WHITE_NAME:t.setStandardMetadata(l.RecordMetadataKey.WHITE_NAME,c.args[0]);break;case h.METADATA:{const e=m[c.args[0]];e?t.setStandardMetadata(e,c.args[1]):t.setCustomMetadata(c.args[0],c.args[1]);break}case h.POSITION:y(c.line,o);break;case h.RANK:{const e=S(c.line,o);if(e)return e;break}case h.PIECES:{const e=E(c.line,o);if(e)return e;break}case h.FIRST_TURN:"+"===c.line[0]?o.setColor(i.Color.BLACK):o.setColor(i.Color.WHITE),s.clear(o),s.first.comment=a,u=!0;break;case h.MOVE:{const e=v(c.line,s.position);if(e instanceof Error)return e;s.append(e,{ignoreValidation:!0});break}case h.SPECIAL_MOVE:{const e=T(c.line.slice(1),s.position.color);e&&s.append(e,{ignoreValidation:!0});break}case h.ELAPSED:s.current.setElapsedMs(1e3*Number(c.args[0]))}}return u||(s.clear(o),s.first.comment=a),s.goto(0),s.resetAllBranchSelection(),s.metadata=t,s};const b={king:"OU",rook:"HI",dragon:"RY",bishop:"KA",horse:"UM",gold:"KI",silver:"GI",promSilver:"NG",knight:"KE",promKnight:"NK",lance:"KY",promLance:"NY",pawn:"FU",promPawn:"TO"};function A(e){let t="";return e.forEach(((e,s)=>{for(let r=0;r<s;r++)t+="00"+b[e]})),t}const P={[c.InitialPositionSFEN.STANDARD]:["PI","+"],[c.InitialPositionSFEN.HANDICAP_LANCE]:["PI11KY","-"],[c.InitialPositionSFEN.HANDICAP_RIGHT_LANCE]:["PI91KY","-"],[c.InitialPositionSFEN.HANDICAP_BISHOP]:["PI22KA","-"],[c.InitialPositionSFEN.HANDICAP_ROOK]:["PI82HI","-"],[c.InitialPositionSFEN.HANDICAP_ROOK_LANCE]:["PI82HI11KY","-"],[c.InitialPositionSFEN.HANDICAP_2PIECES]:["PI82HI22KA","-"],[c.InitialPositionSFEN.HANDICAP_4PIECES]:["PI82HI22KA11KY91KY","-"],[c.InitialPositionSFEN.HANDICAP_6PIECES]:["PI82HI22KA21KE81KE11KY91KY","-"],[c.InitialPositionSFEN.HANDICAP_8PIECES]:["PI82HI22KA31GI71GI21KE81KE11KY91KY","-"],[c.InitialPositionSFEN.HANDICAP_10PIECES]:["PI82HI22KA41KI61KI31GI71GI21KE81KE11KY91KY","-"]};function I(e){return e instanceof u.Square?`${e.file}${e.rank}`:"00"}function C(e,t){switch(e.type){case o.SpecialMoveType.INTERRUPT:return"CHUDAN";case o.SpecialMoveType.RESIGN:return"TORYO";case o.SpecialMoveType.IMPASS:return"JISHOGI";case o.SpecialMoveType.DRAW:return"HIKIWAKE";case o.SpecialMoveType.REPETITION_DRAW:return"SENNICHITE";case o.SpecialMoveType.MATE:return"TSUMI";case o.SpecialMoveType.NO_MATE:return"FUZUMI";case o.SpecialMoveType.TIMEOUT:return"TIME_UP";case o.SpecialMoveType.FOUL_LOSE:return"ILLEGAL_MOVE";case o.SpecialMoveType.FOUL_WIN:return t==i.Color.BLACK?"+ILLEGAL_ACTION":"-ILLEGAL_ACTION";case o.SpecialMoveType.ENTERING_OF_KING:return"KACHI"}}function N(e){return(e.color===i.Color.BLACK?"+":"-")+I(e.from)+I(e.to)+b[e.promote?(0,a.promotedPieceType)(e.pieceType):e.pieceType]}t.getCSASpecialMoveName=C,t.formatCSAMove=N,t.exportCSA=function(e,t){let s="";const r=t.returnCode?t.returnCode:"\n";return s+="' CSA形式棋譜ファイル Generated by Electron Shogi"+r,s+="V2.2"+r,s+=function(e,t){let s="";const r=t.returnCode?t.returnCode:"\n",n=(0,l.getBlackPlayerName)(e);n&&(s+="N+"+n+r);const i=(0,l.getWhitePlayerName)(e);i&&(s+="N-"+i+r);const o=e.getStandardMetadata(l.RecordMetadataKey.TOURNAMENT)||e.getStandardMetadata(l.RecordMetadataKey.TITLE)||e.getStandardMetadata(l.RecordMetadataKey.OPUS_NAME)||e.getStandardMetadata(l.RecordMetadataKey.PUBLISHED_BY);o&&(s+="$EVENT:"+o+r);const a=e.getStandardMetadata(l.RecordMetadataKey.PLACE);a&&(s+="$SITE:"+a+r);const c=e.getStandardMetadata(l.RecordMetadataKey.START_DATETIME)||e.getStandardMetadata(l.RecordMetadataKey.DATE);c&&(s+="$START_TIME:"+c.slice(10)+r);const u=e.getStandardMetadata(l.RecordMetadataKey.DATE);u&&(s+="$END_TIME:"+u.slice(10)+r);const h=e.getStandardMetadata(l.RecordMetadataKey.STRATEGY);return h&&(s+="$OPENING:"+h+r),s}(e.metadata,t),s+=function(e,t){const s=t.returnCode?t.returnCode:"\n",r=P[e.sfen];if(r)return r[0]+s+r[1]+s;let n="";for(let t=1;t<=9;t+=1){n+="P"+t;for(let s=9;s>=1;s-=1){const r=e.board.at(new u.Square(s,t));r?r.color===i.Color.BLACK?n+="+"+b[r.type]:n+="-"+b[r.type]:n+=" * "}n+=s}return n+="P+"+A(e.blackHand)+s,n+="P-"+A(e.whiteHand)+s,n+=(e.color===i.Color.BLACK?"+":"-")+s,n}(e.initialPosition,t),e.moves.forEach((e=>{if(0!==e.ply){let t;if(e.move instanceof o.Move)t=N(e.move);else{const s=C(e.move,(0,i.reverseColor)(e.nextColor));s&&(t="%"+s)}t&&(s+=t+r,s+="T"+Math.floor(e.elapsedMs/1e3)+r)}if(e.comment){(e.comment.endsWith("\n")?e.comment.slice(0,-1):e.comment).split("\n").forEach((e=>{s+="'*"+e+r}))}})),s}},4132:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectRecordFormat=t.RecordFormatType=void 0;const r=s(1224);var n;!function(e){e[e.USI=0]="USI",e[e.SFEN=1]="SFEN",e[e.KIF=2]="KIF",e[e.KI2=3]="KI2",e[e.CSA=4]="CSA",e[e.JKF=5]="JKF"}(n||(t.RecordFormatType=n={})),t.detectRecordFormat=function(e){if(e.startsWith("position sfen ")||e.startsWith("position startpos ")||e.startsWith("sfen ")||e.startsWith("startpos ")||e.startsWith("moves "))return n.USI;if(r.Position.isValidSFEN(e))return n.SFEN;if(e.match(/^[\s\r\n]*{/)&&e.match(/}[\s\r\n]*$/))return n.JKF;const t=e.match(/(^|\n)[ \u3000]*[#0-9開終棋手戦表持秒記消場掲備先後作発出完分受]/g),s=e.match(/(^|\n)[ \u3000]*[#▲△▼▽☗☖開終棋手戦表持秒記消場掲備先後作発出完分受]/g),i=e.match(/(^|,|\n)[-+$%'VNPT]/g),o=t?t.length:0,a=s?s.length:0,c=i?i.length:0;return o>=c&&o>=a?n.KIF:a>=c?n.KI2:n.CSA}},4396:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.directionToHDirection=t.HDirection=t.directionToVDirection=t.VDirection=t.vectorToDirectionAndDistance=t.directionToDeltaMap=t.resolveMoveType=t.movableDirections=t.MoveType=t.directions=t.reverseDirection=t.Direction=void 0,function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right",e.LEFT_UP="left_up",e.RIGHT_UP="right_up",e.LEFT_DOWN="left_down",e.RIGHT_DOWN="right_down",e.LEFT_UP_KNIGHT="left_up_knight",e.RIGHT_UP_KNIGHT="right_up_knight",e.LEFT_DOWN_KNIGHT="left_down_knight",e.RIGHT_DOWN_KNIGHT="right_down_knight"}(s||(t.Direction=s={}));const r={up:s.DOWN,down:s.UP,left:s.RIGHT,right:s.LEFT,left_up:s.RIGHT_DOWN,right_up:s.LEFT_DOWN,left_down:s.RIGHT_UP,right_down:s.LEFT_UP,left_up_knight:s.RIGHT_DOWN_KNIGHT,right_up_knight:s.LEFT_DOWN_KNIGHT,left_down_knight:s.RIGHT_UP_KNIGHT,right_down_knight:s.LEFT_UP_KNIGHT};var n;t.reverseDirection=function(e){return r[e]},t.directions=[s.UP,s.DOWN,s.LEFT,s.RIGHT,s.LEFT_UP,s.RIGHT_UP,s.LEFT_DOWN,s.RIGHT_DOWN,s.LEFT_UP_KNIGHT,s.RIGHT_UP_KNIGHT,s.LEFT_DOWN_KNIGHT,s.RIGHT_DOWN_KNIGHT],function(e){e.SHORT="short",e.LONG="long"}(n||(t.MoveType=n={}));const i={black:{pawn:{up:n.SHORT},lance:{up:n.LONG},knight:{left_up_knight:n.SHORT,right_up_knight:n.SHORT},silver:{left_up:n.SHORT,up:n.SHORT,right_up:n.SHORT,left_down:n.SHORT,right_down:n.SHORT},gold:{left_up:n.SHORT,up:n.SHORT,right_up:n.SHORT,left:n.SHORT,right:n.SHORT,down:n.SHORT},bishop:{left_up:n.LONG,right_up:n.LONG,left_down:n.LONG,right_down:n.LONG},rook:{up:n.LONG,left:n.LONG,right:n.LONG,down:n.LONG},king:{left_down:n.SHORT,right_down:n.SHORT,left_up:n.SHORT,right_up:n.SHORT,down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},promPawn:{left_up:n.SHORT,up:n.SHORT,right_up:n.SHORT,left:n.SHORT,right:n.SHORT,down:n.SHORT},promLance:{left_up:n.SHORT,up:n.SHORT,right_up:n.SHORT,left:n.SHORT,right:n.SHORT,down:n.SHORT},promKnight:{left_up:n.SHORT,up:n.SHORT,right_up:n.SHORT,left:n.SHORT,right:n.SHORT,down:n.SHORT},promSilver:{left_up:n.SHORT,up:n.SHORT,right_up:n.SHORT,left:n.SHORT,right:n.SHORT,down:n.SHORT},horse:{left_up:n.LONG,right_up:n.LONG,left_down:n.LONG,right_down:n.LONG,up:n.SHORT,left:n.SHORT,right:n.SHORT,down:n.SHORT},dragon:{up:n.LONG,left:n.LONG,right:n.LONG,down:n.LONG,left_up:n.SHORT,right_up:n.SHORT,left_down:n.SHORT,right_down:n.SHORT}},white:{pawn:{down:n.SHORT},lance:{down:n.LONG},knight:{left_down_knight:n.SHORT,right_down_knight:n.SHORT},silver:{left_down:n.SHORT,down:n.SHORT,right_down:n.SHORT,left_up:n.SHORT,right_up:n.SHORT},gold:{left_down:n.SHORT,down:n.SHORT,right_down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},bishop:{left_down:n.LONG,right_down:n.LONG,left_up:n.LONG,right_up:n.LONG},rook:{down:n.LONG,left:n.LONG,right:n.LONG,up:n.LONG},king:{left_down:n.SHORT,right_down:n.SHORT,left_up:n.SHORT,right_up:n.SHORT,down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},promPawn:{left_down:n.SHORT,down:n.SHORT,right_down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},promLance:{left_down:n.SHORT,down:n.SHORT,right_down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},promKnight:{left_down:n.SHORT,down:n.SHORT,right_down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},promSilver:{left_down:n.SHORT,down:n.SHORT,right_down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},horse:{left_down:n.LONG,right_down:n.LONG,left_up:n.LONG,right_up:n.LONG,down:n.SHORT,left:n.SHORT,right:n.SHORT,up:n.SHORT},dragon:{down:n.LONG,left:n.LONG,right:n.LONG,up:n.LONG,left_down:n.SHORT,right_down:n.SHORT,left_up:n.SHORT,right_up:n.SHORT}}};var o,a;t.movableDirections=function(e){return Object.keys(i[e.color][e.type])},t.resolveMoveType=function(e,t){return i[e.color][e.type][t]},t.directionToDeltaMap={up:{x:0,y:-1},down:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0},left_up:{x:-1,y:-1},right_up:{x:1,y:-1},left_down:{x:-1,y:1},right_down:{x:1,y:1},left_up_knight:{x:-1,y:-2},right_up_knight:{x:1,y:-2},left_down_knight:{x:-1,y:2},right_down_knight:{x:1,y:2}},t.vectorToDirectionAndDistance=function(e,t){if(1===e&&-2===t)return{direction:s.RIGHT_UP_KNIGHT,distance:1,ok:!0};if(-1===e&&-2===t)return{direction:s.LEFT_UP_KNIGHT,distance:1,ok:!0};if(1===e&&2===t)return{direction:s.RIGHT_DOWN_KNIGHT,distance:1,ok:!0};if(-1===e&&2===t)return{direction:s.LEFT_DOWN_KNIGHT,distance:1,ok:!0};if(0!==e&&0!==t&&Math.abs(e)!==Math.abs(t))return{direction:"",distance:0,ok:!1};let r=e,n=t,i=0;return 0!==r&&(i=Math.abs(r),r/=i),0!==n&&(i=Math.abs(n),n/=i),-1===r&&-1===n?{direction:s.LEFT_UP,distance:i,ok:!0}:0===r&&-1===n?{direction:s.UP,distance:i,ok:!0}:1===r&&-1===n?{direction:s.RIGHT_UP,distance:i,ok:!0}:-1===r&&0===n?{direction:s.LEFT,distance:i,ok:!0}:1===r&&0===n?{direction:s.RIGHT,distance:i,ok:!0}:-1===r&&1===n?{direction:s.LEFT_DOWN,distance:i,ok:!0}:0===r&&1===n?{direction:s.DOWN,distance:i,ok:!0}:1===r&&1===n?{direction:s.RIGHT_DOWN,distance:i,ok:!0}:{direction:"",distance:0,ok:!1}},function(e){e.UP="up",e.NONE="none",e.DOWN="down"}(o||(t.VDirection=o={})),t.directionToVDirection=function(e){switch(e){case s.UP:case s.LEFT_UP:case s.RIGHT_UP:case s.LEFT_UP_KNIGHT:case s.RIGHT_UP_KNIGHT:return o.UP;case s.DOWN:case s.LEFT_DOWN:case s.RIGHT_DOWN:case s.LEFT_DOWN_KNIGHT:case s.RIGHT_DOWN_KNIGHT:return o.DOWN;default:return o.NONE}},function(e){e.LEFT="left",e.NONE="none",e.RIGHT="right"}(a||(t.HDirection=a={})),t.directionToHDirection=function(e){switch(e){case s.LEFT:case s.LEFT_UP:case s.LEFT_DOWN:case s.LEFT_UP_KNIGHT:case s.LEFT_DOWN_KNIGHT:return a.LEFT;case s.RIGHT:case s.RIGHT_UP:case s.RIGHT_DOWN:case s.RIGHT_UP_KNIGHT:case s.RIGHT_DOWN_KNIGHT:return a.RIGHT;default:return a.NONE}}},1603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidUSIError=t.InvalidHandPieceError=t.InvalidBoardError=t.InvalidHandicapError=t.InvalidLineError=t.PieceNotExistsError=t.InvalidDestinationError=t.InvalidMoveNumberError=t.InvalidMoveError=t.InvalidTurnError=t.InvalidPieceNameError=void 0;class s extends Error{data;constructor(e){super(`Invalid piece name: ${e}`),this.data=e,this.name="InvalidPieceNameError"}}t.InvalidPieceNameError=s;class r extends Error{data;constructor(e){super(`Invalid turn: ${e}`),this.data=e,this.name="InvalidTurnError"}}t.InvalidTurnError=r;class n extends Error{data;constructor(e){super(`Invalid move: ${e}`),this.data=e,this.name="InvalidMoveError"}}t.InvalidMoveError=n;class i extends Error{data;constructor(e){super(`Invalid move number: ${e}`),this.data=e,this.name="InvalidMoveNumberError"}}t.InvalidMoveNumberError=i;class o extends Error{data;constructor(e){super(`Invalid destination: ${e}`),this.data=e,this.name="InvalidDestinationError"}}t.InvalidDestinationError=o;class a extends Error{data;constructor(e){super(`Piece not exists: ${e}`),this.data=e,this.name="PieceNotExistsError"}}t.PieceNotExistsError=a;class c extends Error{data;constructor(e){super(`Invalid line: ${e}`),this.data=e,this.name="InvalidLineError"}}t.InvalidLineError=c;class l extends Error{data;constructor(e){super(`Invalid handicap: ${e}`),this.data=e,this.name="InvalidHandicapError"}}t.InvalidHandicapError=l;class u extends Error{data;constructor(e){super(`Invalid board: ${e}`),this.data=e,this.name="InvalidBoardError"}}t.InvalidBoardError=u;class h extends Error{data;constructor(e){super(`Invalid hand piece: ${e}`),this.data=e,this.name="InvalidHandPieceError"}}t.InvalidHandPieceError=h;class p extends Error{data;constructor(e){super(`Invalid USI: ${e}`),this.data=e,this.name="InvalidUSIError"}}t.InvalidUSIError=p},5488:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hand=void 0;const r=s(2696),n=s(8344);function i(e,t){return 0===e?"":(1!==e?e:"")+t.sfen}class o{pieces;constructor(){this.pieces=new Map,this.pieces.set(r.PieceType.PAWN,0),this.pieces.set(r.PieceType.LANCE,0),this.pieces.set(r.PieceType.KNIGHT,0),this.pieces.set(r.PieceType.SILVER,0),this.pieces.set(r.PieceType.GOLD,0),this.pieces.set(r.PieceType.BISHOP,0),this.pieces.set(r.PieceType.ROOK,0)}get counts(){return[{type:r.PieceType.ROOK,count:this.count(r.PieceType.ROOK)},{type:r.PieceType.BISHOP,count:this.count(r.PieceType.BISHOP)},{type:r.PieceType.GOLD,count:this.count(r.PieceType.GOLD)},{type:r.PieceType.SILVER,count:this.count(r.PieceType.SILVER)},{type:r.PieceType.KNIGHT,count:this.count(r.PieceType.KNIGHT)},{type:r.PieceType.LANCE,count:this.count(r.PieceType.LANCE)},{type:r.PieceType.PAWN,count:this.count(r.PieceType.PAWN)}]}count(e){return this.pieces.get(e)}set(e,t){this.pieces.set(e,t)}add(e,t){let s=this.pieces.get(e);return s+=t,this.pieces.set(e,s),s}reduce(e,t){let s=this.pieces.get(e);return s-=t,this.pieces.set(e,s),s}forEach(e){e(r.PieceType.PAWN,this.pieces.get(r.PieceType.PAWN)),e(r.PieceType.LANCE,this.pieces.get(r.PieceType.LANCE)),e(r.PieceType.KNIGHT,this.pieces.get(r.PieceType.KNIGHT)),e(r.PieceType.SILVER,this.pieces.get(r.PieceType.SILVER)),e(r.PieceType.GOLD,this.pieces.get(r.PieceType.GOLD)),e(r.PieceType.BISHOP,this.pieces.get(r.PieceType.BISHOP)),e(r.PieceType.ROOK,this.pieces.get(r.PieceType.ROOK))}get sfenBlack(){return this.formatSFEN(n.Color.BLACK)}get sfenWhite(){return this.formatSFEN(n.Color.WHITE)}formatSFEN(e){let t="";return t+=i(this.count(r.PieceType.ROOK),new r.Piece(e,r.PieceType.ROOK)),t+=i(this.count(r.PieceType.BISHOP),new r.Piece(e,r.PieceType.BISHOP)),t+=i(this.count(r.PieceType.GOLD),new r.Piece(e,r.PieceType.GOLD)),t+=i(this.count(r.PieceType.SILVER),new r.Piece(e,r.PieceType.SILVER)),t+=i(this.count(r.PieceType.KNIGHT),new r.Piece(e,r.PieceType.KNIGHT)),t+=i(this.count(r.PieceType.LANCE),new r.Piece(e,r.PieceType.LANCE)),t+=i(this.count(r.PieceType.PAWN),new r.Piece(e,r.PieceType.PAWN)),""===t?"-":t}static formatSFEN(e,t){const s=e.sfenBlack,r=t.sfenWhite;return"-"===s&&"-"===r?"-":"-"===r?s:"-"===s?r:s+r}static isValidSFEN(e){return"-"===e||!!e.match(/^(?:[0-9]*[PLNSGBRplnsgbr])*$/)}static parseSFEN(e){if("-"===e)return{black:new o,white:new o};if(!e.match(/^(?:[0-9]*[PLNSGBRplnsgbr])*$/))return null;const t=e.match(/([0-9]*[PLNSGBRplnsgbr])/g),s=new o,i=new o;for(let e=0;e<t.length;e+=1){const o=t[e];let a=1;o.length>=2&&(a=Number(o.substring(0,o.length-1)));const c=r.Piece.newBySFEN(o[o.length-1]);c.color===n.Color.BLACK?s.add(c.type,a):i.add(c.type,a)}return{black:s,white:i}}copyFrom(e){e.pieces.forEach(((e,t)=>{this.pieces.set(t,e)}))}}t.Hand=o},6504:(e,t)=>{"use strict";function s(e){return e+(e.endsWith("\n")?"":"\n")}Object.defineProperty(t,"__esModule",{value:!0}),t.appendReturnIfNotExists=t.appendLine=void 0,t.appendLine=function(e,t){return(e?s(e):"")+s(t)},t.appendReturnIfNotExists=s},3016:(e,t)=>{"use strict";function s(e){const t=Math.floor(e/3600),s=Math.floor((e-3600*t)/60),r=e%60;return String(t).padStart(2,"0")+":"+String(s).padStart(2,"0")+":"+String(r).padStart(2,"0")}function r(e){const t=Math.floor(e/60),s=e%60;return String(t).padStart(2," ")+":"+String(s).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.secondsToMSS=t.secondsToHHMMSS=t.millisecondsToMSS=t.millisecondsToHHMMSS=void 0,t.millisecondsToHHMMSS=function(e){return s(Math.floor(e/1e3))},t.millisecondsToMSS=function(e){return r(Math.floor(e/1e3))},t.secondsToHHMMSS=s,t.secondsToMSS=r},8596:function(e,t,s){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,s,r){void 0===r&&(r=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,r,n)}:function(e,t,s,r){void 0===r&&(r=s),e[r]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||r(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(3016),t),n(s(1603),t),n(s(2696),t),n(s(8344),t),n(s(3633),t),n(s(5068),t),n(s(88),t),n(s(5488),t),n(s(1224),t),n(s(1336),t),n(s(8e3),t),n(s(7584),t),n(s(3784),t),n(s(9325),t),n(s(4132),t)},9325:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportJKF=t.exportJKFString=t.importJKF=t.importJKFString=t.JKFKind=t.JKFSpecial=t.JKFColor=void 0;const r=s(8344),n=s(3784),i=s(7584),o=s(5068),a=s(2696),c=s(1224),l=s(8e3),u=s(3633),h=s(1336);var p,d,f;function m(e){return{h:Math.floor(e/36e5),m:Math.floor(e/6e4)%60,s:Math.floor(e/1e3)%60}}function g(e){return e===r.Color.BLACK?p.BLACK:p.WHITE}function y(e){return e===p.WHITE?r.Color.WHITE:r.Color.BLACK}function S(e){switch(e){case a.PieceType.PAWN:return f.FU;case a.PieceType.LANCE:return f.KY;case a.PieceType.KNIGHT:return f.KE;case a.PieceType.SILVER:return f.GI;case a.PieceType.GOLD:return f.KI;case a.PieceType.BISHOP:return f.KA;case a.PieceType.ROOK:return f.HI;case a.PieceType.KING:return f.OU;case a.PieceType.PROM_PAWN:return f.TO;case a.PieceType.PROM_LANCE:return f.NY;case a.PieceType.PROM_KNIGHT:return f.NK;case a.PieceType.PROM_SILVER:return f.NG;case a.PieceType.HORSE:return f.UM;case a.PieceType.DRAGON:return f.RY}}function E(e){switch(e){case f.FU:return a.PieceType.PAWN;case f.KY:return a.PieceType.LANCE;case f.KE:return a.PieceType.KNIGHT;case f.GI:return a.PieceType.SILVER;case f.KI:return a.PieceType.GOLD;case f.KA:return a.PieceType.BISHOP;case f.HI:return a.PieceType.ROOK;case f.OU:return a.PieceType.KING;case f.TO:return a.PieceType.PROM_PAWN;case f.NY:return a.PieceType.PROM_LANCE;case f.NK:return a.PieceType.PROM_KNIGHT;case f.NG:return a.PieceType.PROM_SILVER;case f.UM:return a.PieceType.HORSE;case f.RY:return a.PieceType.DRAGON}}!function(e){e[e.BLACK=0]="BLACK",e[e.WHITE=1]="WHITE"}(p||(t.JKFColor=p={})),function(e){e.TORYO="TORYO",e.CHUDAN="CHUDAN",e.SENNICHITE="SENNICHITE",e.TIME_UP="TIME_UP",e.ILLEGAL_MOVE="ILLEGAL_MOVE",e.BLACK_ILLEGAL_ACTION="+ILLEGAL_ACTION",e.WHITE_ILLEGAL_ACTION="-ILLEGAL_ACTION",e.JISHOGI="JISHOGI",e.KACHI="KACHI",e.HIKIWAKE="HIKIWAKE",e.MATTA="MATTA",e.TSUMI="TSUMI",e.FUZUMI="FUZUMI",e.ERROR="ERROR"}(d||(t.JKFSpecial=d={})),function(e){e.FU="FU",e.KY="KY",e.KE="KE",e.GI="GI",e.KI="KI",e.KA="KA",e.HI="HI",e.OU="OU",e.TO="TO",e.NY="NY",e.NK="NK",e.NG="NG",e.UM="UM",e.RY="RY"}(f||(t.JKFKind=f={}));const v={左:"L",直:"C",右:"R",上:"U",寄:"M",引:"D",打:"H"};function T(e){try{const s=new c.Position;if(e.initial)switch(e.initial.preset){case"HIRATE":s.resetBySFEN(c.InitialPositionSFEN.STANDARD);break;case"KY":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_LANCE);break;case"KY_R":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_RIGHT_LANCE);break;case"KA":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_BISHOP);break;case"HI":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_ROOK);break;case"HIKY":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_ROOK_LANCE);break;case"2":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_2PIECES);break;case"4":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_4PIECES);break;case"6":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_6PIECES);break;case"8":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_8PIECES);break;case"10":s.resetBySFEN(c.InitialPositionSFEN.HANDICAP_10PIECES);break;case"OTHER":if(s.resetBySFEN(c.InitialPositionSFEN.EMPTY),e.initial.data){if(s.setColor(y(e.initial.data.color)),Array.isArray(e.initial.data.board))for(let t=1;t<=9;t++)for(let r=1;r<=9;r++){const n=e.initial.data.board[t-1][r-1];if(n?.kind){const e=new u.Square(t,r),i=y(n.color),o=E(n.kind);s.board.set(e,new a.Piece(i,o))}}for(const t of Object.values(f)){const r=e.initial.data.hands[0][t]||0;s.blackHand.set(E(t),r);const n=e.initial.data.hands[1][t]||0;s.whiteHand.set(E(t),n)}}break;default:return new Error("initial position preset not supported: "+e.initial.preset)}const r=new l.Record(s);Object.entries(e.header).forEach((([e,t])=>{const s=(0,i.kakinokiToMetadataKey)(e);s?r.metadata.setStandardMetadata(s,t):r.metadata.setCustomMetadata(e,t)}));const h=[{ply:0,moves:e.moves}];for(;h.length>0;){const e=h.pop();r.goto(e.ply);for(const s of e.moves){const e=r.current.ply;if(s.move){let e,t;if(s.move.from)e=new u.Square(s.move.from.x,s.move.from.y);else{if(s.move.relative&&"H"!==s.move.relative)return new Error("unnormalized-JKF not supported.");e=E(s.move.piece)}if(s.move.to)t=new u.Square(s.move.to.x,s.move.to.y);else{if(!(s.move.same&&r.current.prev?.move instanceof o.Move))return new Error("invalid move: "+JSON.stringify(s.move));t=r.current.prev.move.to}let n=r.position.createMove(e,t);if(!n)return new Error("invalid move: "+JSON.stringify(s.move));s.move.promote&&(n=n.withPromote()),r.append(n,{ignoreValidation:!0})}if(s.special){const e=(0,n.getSpecialMoveByName)(s.special,r.current.nextColor);e&&r.append(e)}if(s.time&&r.current.setElapsedMs(1e3*(60*((t=s.time.now).h||0)*60+60*t.m+t.s)),s.comments&&(r.current.comment=s.comments.join("\n")),s.forks)for(let t=s.forks.length-1;t>=0;t--)h.push({ply:e,moves:s.forks[t]})}}return r.goto(0),r.resetAllBranchSelection(),r}catch(e){return new Error("failed to JKF: "+e)}var t}function b(e,t){const s=t.clone(),i=[];for(;e;e=e.next){const t={time:{now:(l=e.elapsedMs,{m:Math.floor(l/6e4),s:Math.floor(l/1e3)%60}),total:m(e.totalElapsedMs)}};if(e.move instanceof o.Move){const r=e.move;t.move={color:g(r.color),piece:S(r.pieceType),to:{x:r.to.file,y:r.to.rank}},r.from instanceof u.Square&&(t.move.from={x:r.from.file,y:r.from.rank},e.prev?.move instanceof o.Move&&e.prev.move.to===r.to&&(t.move.same=!0),r.promote?t.move.promote=!0:(0,a.isPromotable)(r.pieceType)&&((0,c.isPromotableRank)(r.color,r.from.rank)||(0,c.isPromotableRank)(r.color,r.to.rank))&&(t.move.promote=!1),r.capturedPieceType&&(t.move.capture=S(r.capturedPieceType)));const n=(0,h.getDirectionModifier)(r,s).split("").map((e=>v[e]||"")).join("");n&&(t.move.relative=n)}else{const s=(0,n.getCSASpecialMoveName)(e.move,(0,r.reverseColor)(e.nextColor));if(!s)break;t.special=s}if(e.comment&&(t.comments=e.comment.trimEnd().split("\n")),e.isFirstBranch){const r=[];for(let t=e.branch;t;t=t.branch)r.push(b(t,s));0!==r.length&&(t.forks=r)}i.push(t),e.move instanceof o.Move&&s.doMove(e.move,{ignoreValidation:!0})}var l;return i}function A(e){const t={};for(const s of e.metadata.standardMetadataKeys){const r=e.metadata.getStandardMetadata(s);r&&(t[(0,i.metadataKeyToKakinoki)(s)]=r)}for(const s of e.metadata.customMetadataKeys){const r=e.metadata.getCustomMetadata(s);r&&(t[s]=r)}let s;const r=e.initialPosition.blackHand,n=e.initialPosition.whiteHand;switch(e.initialPosition.sfen){case c.InitialPositionSFEN.STANDARD:s={preset:"HIRATE"};break;case c.InitialPositionSFEN.HANDICAP_LANCE:s={preset:"KY"};break;case c.InitialPositionSFEN.HANDICAP_RIGHT_LANCE:s={preset:"KY_R"};break;case c.InitialPositionSFEN.HANDICAP_BISHOP:s={preset:"KA"};break;case c.InitialPositionSFEN.HANDICAP_ROOK:s={preset:"HI"};break;case c.InitialPositionSFEN.HANDICAP_ROOK_LANCE:s={preset:"HIKY"};break;case c.InitialPositionSFEN.HANDICAP_2PIECES:s={preset:"2"};break;case c.InitialPositionSFEN.HANDICAP_4PIECES:s={preset:"4"};break;case c.InitialPositionSFEN.HANDICAP_6PIECES:s={preset:"6"};break;case c.InitialPositionSFEN.HANDICAP_8PIECES:s={preset:"8"};break;case c.InitialPositionSFEN.HANDICAP_10PIECES:s={preset:"10"};break;default:s={preset:"OTHER",data:{color:g(e.initialPosition.color),board:function(){const t=[[],[],[],[],[],[],[],[],[]];for(let s=1;s<=9;s++)for(let r=1;r<=9;r++){const n=new u.Square(s,r),i=e.initialPosition.board.at(n);t[s-1][r-1]=i?{color:g(i.color),kind:S(i.type)}:{}}return t}(),hands:[{FU:r.count(a.PieceType.PAWN),KY:r.count(a.PieceType.LANCE),KE:r.count(a.PieceType.KNIGHT),GI:r.count(a.PieceType.SILVER),KI:r.count(a.PieceType.GOLD),KA:r.count(a.PieceType.BISHOP),HI:r.count(a.PieceType.ROOK)},{FU:n.count(a.PieceType.PAWN),KY:n.count(a.PieceType.LANCE),KE:n.count(a.PieceType.KNIGHT),GI:n.count(a.PieceType.SILVER),KI:n.count(a.PieceType.GOLD),KA:n.count(a.PieceType.BISHOP),HI:n.count(a.PieceType.ROOK)}]}}}return{header:t,initial:s,moves:[e.first.comment?{comments:e.first.comment.trimEnd().split("\n")}:{},...e.first.next?b(e.first.next,e.initialPosition):[]]}}t.importJKFString=function(e){try{return T(JSON.parse(e))}catch(e){return new Error("failed to parse JSON: "+e)}},t.importJKF=T,t.exportJKFString=function(e){return JSON.stringify(A(e))},t.exportJKF=A},7584:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportKI2=t.exportKIF=t.importKI2=t.importKIF=t.metadataKeyToKakinoki=t.kakinokiToMetadataKey=t.KakinokiFormatType=void 0;const r=s(6504),n=s(3016),i=s(8344),o=s(1603),a=s(5068),c=s(2696),l=s(1224),u=s(8e3),h=s(3633),p=s(1336);var d;!function(e){e.KIF="KIF",e.KI2="KI2"}(d||(t.KakinokiFormatType=d={}));const f={先手:u.RecordMetadataKey.BLACK_NAME,後手:u.RecordMetadataKey.WHITE_NAME,下手:u.RecordMetadataKey.SHITATE_NAME,上手:u.RecordMetadataKey.UWATE_NAME,開始日時:u.RecordMetadataKey.START_DATETIME,終了日時:u.RecordMetadataKey.END_DATETIME,対局日:u.RecordMetadataKey.DATE,棋戦:u.RecordMetadataKey.TOURNAMENT,戦型:u.RecordMetadataKey.STRATEGY,表題:u.RecordMetadataKey.TITLE,持ち時間:u.RecordMetadataKey.TIME_LIMIT,秒読み:u.RecordMetadataKey.BYOYOMI,消費時間:u.RecordMetadataKey.TIME_SPENT,場所:u.RecordMetadataKey.PLACE,掲載:u.RecordMetadataKey.POSTED_ON,備考:u.RecordMetadataKey.NOTE,先手省略名:u.RecordMetadataKey.BLACK_SHORT_NAME,後手省略名:u.RecordMetadataKey.WHITE_SHORT_NAME,作品番号:u.RecordMetadataKey.OPUS_NO,作品名:u.RecordMetadataKey.OPUS_NAME,作者:u.RecordMetadataKey.AUTHOR,発表誌:u.RecordMetadataKey.PUBLISHED_BY,発表年月:u.RecordMetadataKey.PUBLISHED_AT,出典:u.RecordMetadataKey.SOURCE,手数:u.RecordMetadataKey.LENGTH,完全性:u.RecordMetadataKey.INTEGRITY,分類:u.RecordMetadataKey.CATEGORY,受賞:u.RecordMetadataKey.AWARD};t.kakinokiToMetadataKey=function(e){return f[e]};const m={[u.RecordMetadataKey.BLACK_NAME]:"先手",[u.RecordMetadataKey.WHITE_NAME]:"後手",[u.RecordMetadataKey.SHITATE_NAME]:"下手",[u.RecordMetadataKey.UWATE_NAME]:"上手",[u.RecordMetadataKey.START_DATETIME]:"開始日時",[u.RecordMetadataKey.END_DATETIME]:"終了日時",[u.RecordMetadataKey.DATE]:"対局日",[u.RecordMetadataKey.TOURNAMENT]:"棋戦",[u.RecordMetadataKey.STRATEGY]:"戦型",[u.RecordMetadataKey.TITLE]:"表題",[u.RecordMetadataKey.TIME_LIMIT]:"持ち時間",[u.RecordMetadataKey.BYOYOMI]:"秒読み",[u.RecordMetadataKey.TIME_SPENT]:"消費時間",[u.RecordMetadataKey.PLACE]:"場所",[u.RecordMetadataKey.POSTED_ON]:"掲載",[u.RecordMetadataKey.NOTE]:"備考",[u.RecordMetadataKey.BLACK_SHORT_NAME]:"先手省略名",[u.RecordMetadataKey.WHITE_SHORT_NAME]:"後手省略名",[u.RecordMetadataKey.OPUS_NO]:"作品番号",[u.RecordMetadataKey.OPUS_NAME]:"作品名",[u.RecordMetadataKey.AUTHOR]:"作者",[u.RecordMetadataKey.PUBLISHED_BY]:"発表誌",[u.RecordMetadataKey.PUBLISHED_AT]:"発表年月",[u.RecordMetadataKey.SOURCE]:"出典",[u.RecordMetadataKey.LENGTH]:"手数",[u.RecordMetadataKey.INTEGRITY]:"完全性",[u.RecordMetadataKey.CATEGORY]:"分類",[u.RecordMetadataKey.AWARD]:"受賞"};var g;t.metadataKeyToKakinoki=function(e){return m[e]},function(e){e[e.PROGRAM_COMMENT=0]="PROGRAM_COMMENT",e[e.METADATA=1]="METADATA",e[e.HANDICAP=2]="HANDICAP",e[e.BLACK_HAND=3]="BLACK_HAND",e[e.WHITE_HAND=4]="WHITE_HAND",e[e.BOARD=5]="BOARD",e[e.BLACK_TURN=6]="BLACK_TURN",e[e.WHITE_TURN=7]="WHITE_TURN",e[e.MOVE=8]="MOVE",e[e.MOVE2=9]="MOVE2",e[e.BRANCH=10]="BRANCH",e[e.COMMENT=11]="COMMENT",e[e.BOOKMARK=12]="BOOKMARK",e[e.END_OF_GAME=13]="END_OF_GAME",e[e.UNKNOWN=14]="UNKNOWN"}(g||(g={}));const y=[{prefix:/^#/,type:g.PROGRAM_COMMENT,removePrefix:!1,isPosition:!1},{prefix:/^手合割[::]/,type:g.HANDICAP,removePrefix:!0,isPosition:!0},{prefix:/^(先|下)手の持駒[::]/,type:g.BLACK_HAND,removePrefix:!0,isPosition:!0},{prefix:/^(後|上)手の持駒[::]/,type:g.WHITE_HAND,removePrefix:!0,isPosition:!0},{prefix:/^\|/,type:g.BOARD,removePrefix:!1,isPosition:!0},{prefix:/^(先|下)手番/,type:g.BLACK_TURN,removePrefix:!1,isPosition:!0},{prefix:/^(後|上)手番/,type:g.WHITE_TURN,removePrefix:!1,isPosition:!0},{prefix:/^ *[0-9]+ +/,type:g.MOVE,removePrefix:!1,isPosition:!1},{prefix:/^[ \u3000]*[▲△▼▽☗☖]/,type:g.MOVE2,removePrefix:!1,isPosition:!1},{prefix:/^[ \u3000]*変化[::][ \u3000]*/,type:g.BRANCH,removePrefix:!0,isPosition:!1},{prefix:/^\*/,type:g.COMMENT,removePrefix:!0,isPosition:!1},{prefix:/^&/,type:g.BOOKMARK,removePrefix:!0,isPosition:!1},{prefix:/^まで、?([0-9]+手で)?/,type:g.END_OF_GAME,removePrefix:!0,isPosition:!1}];function S(e){for(let t=0;t<y.length;t++){const s=y[t],r=e.match(s.prefix);if(r){const t=s.removePrefix?r[0].length:0;return{type:s.type,data:e.substring(t),isPosition:s.isPosition,metadataKey:""}}}const t=e.match(/^[^ ::]+[::]/);if(t){const s=t[0];return{type:g.METADATA,data:e.substring(s.length),isPosition:!1,metadataKey:s.substring(0,s.length-1)}}return{type:g.UNKNOWN,data:e,isPosition:!1,metadataKey:""}}function E(e,t){switch(t.trim()){case"平手":return void e.resetBySFEN(l.InitialPositionSFEN.STANDARD);case"香落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_LANCE);case"右香落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_RIGHT_LANCE);case"角落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_BISHOP);case"飛車落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_ROOK);case"飛香落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_ROOK_LANCE);case"二枚落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_2PIECES);case"四枚落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_4PIECES);case"六枚落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_6PIECES);case"八枚落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_8PIECES);case"十枚落ち":return void e.resetBySFEN(l.InitialPositionSFEN.HANDICAP_10PIECES);case"その他":return void e.resetBySFEN(l.InitialPositionSFEN.EMPTY)}}const v={中断:a.SpecialMoveType.INTERRUPT,投了:a.SpecialMoveType.RESIGN,持将棋:a.SpecialMoveType.IMPASS,千日手:a.SpecialMoveType.REPETITION_DRAW,詰み:a.SpecialMoveType.MATE,詰:a.SpecialMoveType.MATE,不詰:a.SpecialMoveType.NO_MATE,切れ負け:a.SpecialMoveType.TIMEOUT,反則勝ち:a.SpecialMoveType.FOUL_WIN,反則負け:a.SpecialMoveType.FOUL_LOSE,入玉勝ち:a.SpecialMoveType.ENTERING_OF_KING,不戦勝:a.SpecialMoveType.WIN_BY_DEFAULT,不戦敗:a.SpecialMoveType.LOSE_BY_DEFAULT},T=/^ *([0-9]+) +[▲△▼▽]?([123456789][一二三四五六七八九]|同\u3000*)(王|玉|飛|龍|竜|角|馬|金|銀|成銀|全|桂|成桂|圭|香|成香|杏|歩|と)\u3000*(成?)(打|\([1-9][1-9]\)) *([^ ].*|$)/,b=/\( *([0-9]+):([0-9]+)\/[0-9: ]*\)/,A=/^ *([0-9]+) +([^ \u3000]+) *([^ ].*|$)/,P=/^ *([0-9]+)/;function I(e,t){if(t.length<21)return new o.InvalidBoardError(t);const s=t[20],r=(0,p.stringToNumber)(s);if(!r)return new o.InvalidBoardError(t);for(let s=0;s<9;s+=1){const n=9-s,o=new h.Square(n,r),a=2*s+1,l=t[a+1],u=(0,p.stringToPieceType)(l);if(!u){e.remove(o);continue}const d="v"!==t[a]?i.Color.BLACK:i.Color.WHITE;e.set(o,new c.Piece(d,u))}}function C(e,t){const s=t.split(/[  ]/);for(const t of s){if(!t||"なし"===t)continue;const s=t[0],r=t.substring(1),n=(0,p.stringToPieceType)(s),i=(0,p.stringToNumber)(r)||1;if(!n)return new o.InvalidHandPieceError(t);e.add(n,i)}}function N(e,t){const s=b.exec(t);if(s){const t=s[1],r=s[2],n=60*Number.parseInt(t)+Number.parseInt(r);e.current.setElapsedMs(1e3*n)}}function _(e,t){const s=function(e,t){const s=T.exec(t);if(!s)return!1;const r=Number(s[1]),n=s[2],i=s[3],c=s[4],l=s[5],u=s[6];if(0===r)return new o.InvalidMoveNumberError(t);let d,f;if(e.goto(r-1),n.startsWith("同")){if(!(e.current.move instanceof a.Move))return new o.InvalidDestinationError(t);d=e.current.move.to}else{const e=(0,p.stringToNumber)(n[0]),t=(0,p.stringToNumber)(n[1]);d=new h.Square(e,t)}if("打"===l)f=(0,p.stringToPieceType)(i);else{const e=(0,p.stringToNumber)(l[1]),t=(0,p.stringToNumber)(l[2]);f=new h.Square(e,t)}let m=e.position.createMove(f,d);if(!m)return new o.InvalidMoveError(t);"成"===c&&(m=m.withPromote());return e.append(m,{ignoreValidation:!0}),N(e,u),!0}(e,t);return s instanceof Error?s:s||function(e,t){const s=A.exec(t);if(!s)return!1;const r=Number(s[1]),n=v[s[2]],i=s[3];let o;e.goto(r-1),o=n?(0,a.specialMove)(n):(0,a.anySpecialMove)(s[2]);return e.append(o,{ignoreValidation:!0}),N(e,i),!0}(e,t)?void 0:new o.InvalidMoveError(t)}function w(e,t){const s=e.current.move instanceof a.Move?e.current.move:void 0,[r,n]=(0,p.parseMoves)(e.position,t,s);if(n)return n;for(const t of r)e.append(t,{ignoreValidation:!0})}function x(e,t){const s=P.exec(t);if(!s)return new o.InvalidMoveNumberError(t);const r=Number(s[1]);if(0===r||r>e.current.ply+1)return new o.InvalidMoveNumberError(t);e.goto(r-1)}function O(e,t){const s=t.replaceAll(/[\s\u3000]/g,"");if(s.startsWith("時間切れ"))e.append((0,a.specialMove)(a.SpecialMoveType.TIMEOUT));else if(s.endsWith("反則勝ち"))e.append((0,a.specialMove)(a.SpecialMoveType.FOUL_WIN));else if(s.endsWith("反則負け"))e.append((0,a.specialMove)(a.SpecialMoveType.FOUL_LOSE));else if(s.endsWith("入玉勝ち"))e.append((0,a.specialMove)(a.SpecialMoveType.ENTERING_OF_KING));else if(s.endsWith("勝ち"))e.append((0,a.specialMove)(a.SpecialMoveType.RESIGN));else{const t=v[s];t?e.append((0,a.specialMove)(t)):e.append((0,a.anySpecialMove)(s))}}function M(e,t){const s=new u.RecordMetadata,n=new u.Record,a=e.split(/\r?\n/),c=new l.Position;let h="",p="",m=!1;const y=()=>{m||(n.clear(c),n.first.comment=h,n.first.bookmark=p,m=!0)};for(const e of a){if(""===e)continue;const a=S(e);if(m&&a.isPosition)return new o.InvalidLineError(e);let l;switch(a.type){case g.METADATA:{const e=f[a.metadataKey];e?s.setStandardMetadata(e,a.data):s.setCustomMetadata(a.metadataKey,a.data);break}case g.HANDICAP:E(c,a.data);break;case g.BLACK_HAND:l=C(c.blackHand,a.data);break;case g.WHITE_HAND:l=C(c.whiteHand,a.data);break;case g.BOARD:l=I(c.board,a.data);break;case g.BLACK_TURN:c.setColor(i.Color.BLACK);break;case g.WHITE_TURN:c.setColor(i.Color.WHITE);break;case g.MOVE:if(t!==d.KIF)return new o.InvalidLineError(e);y(),l=_(n,a.data);break;case g.MOVE2:if(t!==d.KI2)return new o.InvalidLineError(e);y(),l=w(n,a.data);break;case g.BRANCH:m&&t===d.KI2&&(l=x(n,a.data));break;case g.COMMENT:m?n.current.comment=(0,r.appendLine)(n.current.comment,a.data):h=(0,r.appendLine)(h,a.data);break;case g.BOOKMARK:m?n.current.bookmark=a.data:p=a.data;break;case g.END_OF_GAME:t===d.KI2&&(y(),O(n,a.data));case g.PROGRAM_COMMENT:case g.UNKNOWN:}if(l)return l}return y(),n.goto(0),n.resetAllBranchSelection(),n.metadata=s,n}t.importKIF=function(e){return M(e,d.KIF)},t.importKI2=function(e){return M(e,d.KI2)};const k={[a.SpecialMoveType.START]:"",[a.SpecialMoveType.RESIGN]:"投了",[a.SpecialMoveType.INTERRUPT]:"中断",[a.SpecialMoveType.IMPASS]:"持将棋",[a.SpecialMoveType.DRAW]:"持将棋",[a.SpecialMoveType.REPETITION_DRAW]:"千日手",[a.SpecialMoveType.MATE]:"詰み",[a.SpecialMoveType.NO_MATE]:"不詰",[a.SpecialMoveType.TIMEOUT]:"切れ負け",[a.SpecialMoveType.FOUL_WIN]:"反則勝ち",[a.SpecialMoveType.FOUL_LOSE]:"反則負け",[a.SpecialMoveType.ENTERING_OF_KING]:"入玉勝ち",[a.SpecialMoveType.WIN_BY_DEFAULT]:"不戦勝",[a.SpecialMoveType.LOSE_BY_DEFAULT]:"不戦敗",[a.SpecialMoveType.TRY]:"トライ"};function L(e,t){let s="";const r=t.returnCode?t.returnCode:"\n";for(const t of e.standardMetadataKeys)s+=m[t]+":"+e.getStandardMetadata(t)+r;for(const t of e.customMetadataKeys)s+=t+":"+e.getCustomMetadata(t)+r;return s}function R(e,t){const s=t.returnCode||"\n";switch(e.sfen){case l.InitialPositionSFEN.STANDARD:return"手合割:平手"+s;case l.InitialPositionSFEN.HANDICAP_LANCE:return"手合割:香落ち"+s;case l.InitialPositionSFEN.HANDICAP_RIGHT_LANCE:return"手合割:右香落ち"+s;case l.InitialPositionSFEN.HANDICAP_BISHOP:return"手合割:角落ち"+s;case l.InitialPositionSFEN.HANDICAP_ROOK:return"手合割:飛車落ち"+s;case l.InitialPositionSFEN.HANDICAP_ROOK_LANCE:return"手合割:飛香落ち"+s;case l.InitialPositionSFEN.HANDICAP_2PIECES:return"手合割:二枚落ち"+s;case l.InitialPositionSFEN.HANDICAP_4PIECES:return"手合割:四枚落ち"+s;case l.InitialPositionSFEN.HANDICAP_6PIECES:return"手合割:六枚落ち"+s;case l.InitialPositionSFEN.HANDICAP_8PIECES:return"手合割:八枚落ち"+s;case l.InitialPositionSFEN.HANDICAP_10PIECES:return"手合割:十枚落ち"+s}let r="";r+="後手の持駒:"+D(e.whiteHand)+s,r+=" 9 8 7 6 5 4 3 2 1"+s,r+="+---------------------------+"+s;for(let t=0;t<9;t++){r+="|";for(let s=0;s<9;s++){const n=h.Square.newByXY(s,t),o=e.board.at(n);o?o.color===i.Color.BLACK?r+=" "+(0,p.pieceTypeToStringForBoard)(o.type):r+="v"+(0,p.pieceTypeToStringForBoard)(o.type):r+=" ・"}r+="|"+(0,p.rankToKanji)(t+1)+s}return r+="+---------------------------+"+s,r+="先手の持駒:"+D(e.blackHand)+s,e.color===i.Color.BLACK?r+="先手番"+s:r+="後手番"+s,r}function D(e){let t="";return e.forEach(((e,s)=>{s>=1&&(t+=(0,p.pieceTypeToStringForBoard)(e),s>=2&&(t+=(0,p.numberToKanji)(s)),t+=" ")})),""===t&&(t="なし"),t}t.exportKIF=function(e,t){let s="";const r=t.returnCode?t.returnCode:"\n";return s+="# KIF形式棋譜ファイル Generated by Electron Shogi"+r,s+=L(e.metadata,t),s+=R(e.initialPosition,t),s+="手数----指手---------消費時間--"+r,e.forEach((e=>{if(0!==e.ply){if(e.isFirstBranch||(s+=r,s+="変化:"+e.ply+"手"+r),s+=String(e.ply).padStart(4," ")+" ",e.move instanceof a.Move){const t=e.prev?.move instanceof a.Move?e.prev.move:void 0;s+=function(e,t){let s="";return t&&e.to.equals(t.to)?s+="同 ":(s+=(0,p.fileToMultiByteChar)(e.to.file),s+=(0,p.rankToKanji)(e.to.rank)),s+=(0,p.pieceTypeToStringForMove)(e.pieceType),e.promote&&(s+="成"),e.from instanceof h.Square?s+="("+e.from.file+e.from.rank+")"+(3===s.length?" ":""):s+="打 ",s}(e.move,t)}else if((0,a.isKnownSpecialMove)(e.move)){const t=k[e.move.type];s+=t+" ".repeat(Math.max(12-2*t.length,0))}else s+=e.move.name+" ".repeat(Math.max(12-2*e.move.name.length,0));const t=(0,n.millisecondsToMSS)(e.elapsedMs),i=(0,n.millisecondsToHHMMSS)(e.totalElapsedMs);s+=` (${t}/${i})`,e.branch&&(s+="+"),s+=r}if(0!==e.comment.length){const t=e.comment.endsWith("\n")?e.comment.slice(0,-1):e.comment;s+="*"+t.replaceAll("\n",r+"*")+r}0!==e.bookmark.length&&(s+="&"+e.bookmark+r)})),s},t.exportKI2=function(e,t){let s="",r=0,n=0;const o=t.returnCode?t.returnCode:"\n";return s+=L(e.metadata,t),s+=R(e.initialPosition,t),e.forEach(((e,t)=>{if(0!==e.ply)if(e.isFirstBranch||(s.endsWith(o)||(s+=o),s+=o,s+="変化:"+e.ply+"手"+o),e.move instanceof a.Move){const i=(0,p.formatMove)(t,e.move,{lastMove:e.prev?.move instanceof a.Move?e.prev.move:void 0,compatible:!0});s.endsWith(o)?r=0:s+=" ".repeat(Math.max(12-2*n,0)),s+=i,n=i.length,r++,r>=6&&(s+=o)}else{if(s.endsWith(o)||(s+=o),s+=`まで${e.ply-1}手で`,(0,a.isKnownSpecialMove)(e.move)){const[t,r]=e.nextColor===i.Color.BLACK?["先手","後手"]:["後手","先手"];switch(e.move.type){case a.SpecialMoveType.RESIGN:s+=`${r}の勝ち`;break;case a.SpecialMoveType.TIMEOUT:s+=`時間切れにより${r}の勝ち`;break;case a.SpecialMoveType.ENTERING_OF_KING:s+=`${t}の入玉勝ち`;break;case a.SpecialMoveType.FOUL_WIN:s+=`${t}の反則勝ち`;break;case a.SpecialMoveType.FOUL_LOSE:s+=`${t}の反則負け`;break;default:s+=k[e.move.type]}}else s+=e.move.name;s+=o}if(0!==e.comment.length){s.endsWith(o)||(s+=o);const t=e.comment.endsWith("\n")?e.comment.slice(0,-1):e.comment;s+="*"+t.replaceAll("\n",o+"*")+o}0!==e.bookmark.length&&(s.endsWith(o)||(s+=o),s+="&"+e.bookmark+o)})),s}},5068:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKnownSpecialMove=t.anySpecialMove=t.specialMove=t.SpecialMoveType=t.parseUSIMove=t.Move=void 0;const r=s(2696),n=s(3633);class i{from;to;promote;color;pieceType;capturedPieceType;constructor(e,t,s,r,n,i){this.from=e,this.to=t,this.promote=s,this.color=r,this.pieceType=n,this.capturedPieceType=i}equals(e){return!!e&&((this.from instanceof n.Square&&e.from instanceof n.Square&&this.from.equals(e.from)||!(this.from instanceof n.Square)&&!(e.from instanceof n.Square)&&this.from===e.from)&&this.to.equals(e.to)&&this.promote===e.promote&&this.color===e.color&&this.pieceType===e.pieceType&&this.capturedPieceType===e.capturedPieceType)}withPromote(){return new i(this.from,this.to,!0,this.color,this.pieceType,this.capturedPieceType)}get usi(){let e="";return this.from instanceof n.Square?e+=this.from.sfen:e+=(0,r.pieceTypeToSFEN)(this.from)+"*",e+=this.to.sfen,this.promote&&(e+="+"),e}}var o;t.Move=i,t.parseUSIMove=function(e){let t;if("*"===e[1]){const s=r.Piece.newBySFEN(e[0]);if(!s)return null;t=s.type}else{const s=n.Square.parseSFENSquare(e);if(!s)return null;t=s}const s=n.Square.parseSFENSquare(e.substring(2));return s?{from:t,to:s,promote:e.length>=5&&"+"===e[4]}:null},function(e){e.START="start",e.INTERRUPT="interrupt",e.RESIGN="resign",e.IMPASS="impass",e.DRAW="draw",e.REPETITION_DRAW="repetitionDraw",e.MATE="mate",e.NO_MATE="noMate",e.TIMEOUT="timeout",e.FOUL_WIN="foulWin",e.FOUL_LOSE="foulLose",e.ENTERING_OF_KING="enteringOfKing",e.WIN_BY_DEFAULT="winByDefault",e.LOSE_BY_DEFAULT="loseByDefault",e.TRY="try"}(o||(t.SpecialMoveType=o={})),t.specialMove=function(e){return{type:e}},t.anySpecialMove=function(e){return{type:"any",name:e}},t.isKnownSpecialMove=function(e){return!(e instanceof i)&&"any"!==e.type}},2696:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Piece=t.pieceTypeToSFEN=t.unpromotedPieceType=t.promotedPieceType=t.isPromotable=t.handPieceTypes=t.pieceTypes=t.standardPieceName=t.PieceType=void 0;const r=s(8344);var n;!function(e){e.PAWN="pawn",e.LANCE="lance",e.KNIGHT="knight",e.SILVER="silver",e.GOLD="gold",e.BISHOP="bishop",e.ROOK="rook",e.KING="king",e.PROM_PAWN="promPawn",e.PROM_LANCE="promLance",e.PROM_KNIGHT="promKnight",e.PROM_SILVER="promSilver",e.HORSE="horse",e.DRAGON="dragon"}(n||(t.PieceType=n={}));const i={pawn:"歩",lance:"香",knight:"桂",silver:"銀",gold:"金",bishop:"角",rook:"飛",king:"玉",promPawn:"と",promLance:"成香",promKnight:"成桂",promSilver:"成銀",horse:"馬",dragon:"竜"};t.standardPieceName=function(e){return i[e]||""},t.pieceTypes=[n.PAWN,n.LANCE,n.KNIGHT,n.SILVER,n.GOLD,n.BISHOP,n.ROOK,n.KING,n.PROM_PAWN,n.PROM_LANCE,n.PROM_KNIGHT,n.PROM_SILVER,n.HORSE,n.DRAGON],t.handPieceTypes=[n.PAWN,n.LANCE,n.KNIGHT,n.SILVER,n.GOLD,n.BISHOP,n.ROOK];const o={pawn:!0,lance:!0,knight:!0,silver:!0,gold:!1,bishop:!0,rook:!0,king:!1,promPawn:!1,promLance:!1,promKnight:!1,promSilver:!1,horse:!1,dragon:!1};function a(e){return!!o[e]}t.isPromotable=a;const c={pawn:n.PROM_PAWN,lance:n.PROM_LANCE,knight:n.PROM_KNIGHT,silver:n.PROM_SILVER,bishop:n.HORSE,rook:n.DRAGON};t.promotedPieceType=function(e){return c[e]||e};const l={promPawn:n.PAWN,promLance:n.LANCE,promKnight:n.KNIGHT,promSilver:n.SILVER,horse:n.BISHOP,dragon:n.ROOK};t.unpromotedPieceType=function(e){return l[e]||e};const u={pawn:"P",lance:"L",knight:"N",silver:"S",gold:"G",bishop:"B",rook:"R",king:"K",promPawn:"+P",promLance:"+L",promKnight:"+N",promSilver:"+S",horse:"+B",dragon:"+R"};t.pieceTypeToSFEN=function(e){return u[e]};const h={pawn:"p",lance:"l",knight:"n",silver:"s",gold:"g",bishop:"b",rook:"r",king:"k",promPawn:"+p",promLance:"+l",promKnight:"+n",promSilver:"+s",horse:"+b",dragon:"+r"},p={P:n.PAWN,L:n.LANCE,N:n.KNIGHT,S:n.SILVER,G:n.GOLD,B:n.BISHOP,R:n.ROOK,K:n.KING,"+P":n.PROM_PAWN,"+L":n.PROM_LANCE,"+N":n.PROM_KNIGHT,"+S":n.PROM_SILVER,"+B":n.HORSE,"+R":n.DRAGON,p:n.PAWN,l:n.LANCE,n:n.KNIGHT,s:n.SILVER,g:n.GOLD,b:n.BISHOP,r:n.ROOK,k:n.KING,"+p":n.PROM_PAWN,"+l":n.PROM_LANCE,"+n":n.PROM_KNIGHT,"+s":n.PROM_SILVER,"+b":n.HORSE,"+r":n.DRAGON},d={P:r.Color.BLACK,L:r.Color.BLACK,N:r.Color.BLACK,S:r.Color.BLACK,G:r.Color.BLACK,B:r.Color.BLACK,R:r.Color.BLACK,K:r.Color.BLACK,"+P":r.Color.BLACK,"+L":r.Color.BLACK,"+N":r.Color.BLACK,"+S":r.Color.BLACK,"+B":r.Color.BLACK,"+R":r.Color.BLACK,p:r.Color.WHITE,l:r.Color.WHITE,n:r.Color.WHITE,s:r.Color.WHITE,g:r.Color.WHITE,b:r.Color.WHITE,r:r.Color.WHITE,k:r.Color.WHITE,"+p":r.Color.WHITE,"+l":r.Color.WHITE,"+n":r.Color.WHITE,"+s":r.Color.WHITE,"+b":r.Color.WHITE,"+r":r.Color.WHITE},f=new Map;f.set(n.PAWN,{type:n.PROM_PAWN,reverseColor:!1}),f.set(n.LANCE,{type:n.PROM_LANCE,reverseColor:!1}),f.set(n.KNIGHT,{type:n.PROM_KNIGHT,reverseColor:!1}),f.set(n.SILVER,{type:n.PROM_SILVER,reverseColor:!1}),f.set(n.GOLD,{type:n.GOLD,reverseColor:!0}),f.set(n.BISHOP,{type:n.HORSE,reverseColor:!1}),f.set(n.ROOK,{type:n.DRAGON,reverseColor:!1}),f.set(n.KING,{type:n.KING,reverseColor:!0}),f.set(n.PROM_PAWN,{type:n.PAWN,reverseColor:!0}),f.set(n.PROM_LANCE,{type:n.LANCE,reverseColor:!0}),f.set(n.PROM_KNIGHT,{type:n.KNIGHT,reverseColor:!0}),f.set(n.PROM_SILVER,{type:n.SILVER,reverseColor:!0}),f.set(n.HORSE,{type:n.BISHOP,reverseColor:!0}),f.set(n.DRAGON,{type:n.ROOK,reverseColor:!0});class m{color;type;constructor(e,t){this.color=e,this.type=t}black(){return this.withColor(r.Color.BLACK)}white(){return this.withColor(r.Color.WHITE)}withColor(e){return new m(e,this.type)}equals(e){return this.type===e.type&&this.color===e.color}promoted(){const e=c[this.type];return new m(this.color,e||this.type)}unpromoted(){const e=l[this.type];return new m(this.color,e||this.type)}isPromotable(){return a(this.type)}rotate(){const e=f.get(this.type),t=new m(this.color,e?e.type:this.type);return e&&e.reverseColor&&(t.color=(0,r.reverseColor)(this.color)),t}get id(){return this.color+"_"+this.type}get sfen(){switch(this.color){default:case r.Color.BLACK:return u[this.type];case r.Color.WHITE:return h[this.type]}}static isValidSFEN(e){return!!p[e]}static newBySFEN(e){const t=p[e];if(!t)return null;const s=d[e];return s?new m(s,t):null}}t.Piece=m},1224:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.judgeJishogiDeclaration=t.countJishogiDeclarationPoint=t.JishogiDeclarationResult=t.JishogiDeclarationRule=t.countNotExistingPieces=t.countExistingPieces=t.Position=t.isPromotableRank=t.initialPositionTypeToSFEN=t.InitialPositionSFEN=t.InitialPositionType=void 0;const r=s(88),n=s(8344),i=s(5068),o=s(3633),a=s(5488),c=s(2696),l=s(4396);var u,h;function p(e){return{[u.STANDARD]:h.STANDARD,[u.EMPTY]:h.EMPTY,[u.HANDICAP_LANCE]:h.HANDICAP_LANCE,[u.HANDICAP_RIGHT_LANCE]:h.HANDICAP_RIGHT_LANCE,[u.HANDICAP_BISHOP]:h.HANDICAP_BISHOP,[u.HANDICAP_ROOK]:h.HANDICAP_ROOK,[u.HANDICAP_ROOK_LANCE]:h.HANDICAP_ROOK_LANCE,[u.HANDICAP_2PIECES]:h.HANDICAP_2PIECES,[u.HANDICAP_4PIECES]:h.HANDICAP_4PIECES,[u.HANDICAP_6PIECES]:h.HANDICAP_6PIECES,[u.HANDICAP_8PIECES]:h.HANDICAP_8PIECES,[u.HANDICAP_10PIECES]:h.HANDICAP_10PIECES,[u.TSUME_SHOGI]:h.TSUME_SHOGI,[u.TSUME_SHOGI_2KINGS]:h.TSUME_SHOGI_2KINGS}[e]}!function(e){e.STANDARD="standard",e.EMPTY="empty",e.HANDICAP_LANCE="handicapLance",e.HANDICAP_RIGHT_LANCE="handicapRightLance",e.HANDICAP_BISHOP="handicapBishop",e.HANDICAP_ROOK="handicapRook",e.HANDICAP_ROOK_LANCE="handicapRookLance",e.HANDICAP_2PIECES="handicap2Pieces",e.HANDICAP_4PIECES="handicap4Pieces",e.HANDICAP_6PIECES="handicap6Pieces",e.HANDICAP_8PIECES="handicap8Pieces",e.HANDICAP_10PIECES="handicap10Pieces",e.TSUME_SHOGI="tsumeShogi",e.TSUME_SHOGI_2KINGS="tsumeShogi2Kings"}(u||(t.InitialPositionType=u={})),function(e){e.STANDARD="lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1",e.EMPTY="9/9/9/9/9/9/9/9/9 b - 1",e.HANDICAP_LANCE="lnsgkgsn1/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_RIGHT_LANCE="1nsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_BISHOP="lnsgkgsnl/1r7/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_ROOK="lnsgkgsnl/7b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_ROOK_LANCE="lnsgkgsn1/7b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_2PIECES="lnsgkgsnl/9/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_4PIECES="1nsgkgsn1/9/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_6PIECES="2sgkgs2/9/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_8PIECES="3gkg3/9/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.HANDICAP_10PIECES="4k4/9/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL w - 1",e.TSUME_SHOGI="4k4/9/9/9/9/9/9/9/9 b 2r2b4g4s4n4l18p 1",e.TSUME_SHOGI_2KINGS="4k4/9/9/9/9/9/9/9/4K4 b 2r2b4g4s4n4l18p 1"}(h||(t.InitialPositionSFEN=h={})),t.initialPositionTypeToSFEN=p;const d={black:{pawn:{1:!0},lance:{1:!0},knight:{1:!0,2:!0}},white:{pawn:{9:!0},lance:{9:!0},knight:{9:!0,8:!0}}};function f(e,t,s){const r=d[e][t];return!!r&&r[s]}function m(e,t){return e===n.Color.BLACK?t<=3:t>=7}t.isPromotableRank=m;class g{_board=new r.Board;_color=n.Color.BLACK;_blackHand=new a.Hand;_whiteHand=new a.Hand;get board(){return this._board}get color(){return this._color}get blackHand(){return this._blackHand}get whiteHand(){return this._whiteHand}hand(e){return e===n.Color.BLACK?this._blackHand:this._whiteHand}get checked(){return this._board.isChecked(this.color)}createMove(e,t){let s;if(e instanceof o.Square){const t=this._board.at(e);if(!t)return null;s=t.type}else s=e;const r=this._board.at(t);return new i.Move(e,t,!1,this.color,s,r?r.type:null)}createMoveByUSI(e){const t=(0,i.parseUSIMove)(e);if(!t)return null;let s=this.createMove(t.from,t.to);return s?(t.promote&&(s=s.withPromote()),s):null}isPawnDropMate(e){if(e.from instanceof o.Square)return!1;if(e.pieceType!==c.PieceType.PAWN)return!1;const t=e.to.neighbor(e.color===n.Color.BLACK?l.Direction.UP:l.Direction.DOWN),s=this.board.at(t);if(!s||s.type!==c.PieceType.KING||s.color===e.color)return!1;return!(0,l.movableDirections)(s).find((r=>{const n=t.neighbor(r);if(!n.valid)return!1;const i=this.board.at(n);return(!i||i.color!=s.color)&&!this.board.hasPower(n,e.color,{filled:e.to})}))&&!this.board.listSquaresByColor(s.color).find((r=>!r.equals(t)&&this.isMovable(r,e.to)&&!this.board.isChecked(s.color,{filled:e.to,ignore:r})))}listAttackersByPiece(e,t){return this.board.listSquaresByPiece(t).filter((t=>this.isMovable(t,e)))}isValidMove(e){if(e.from instanceof o.Square){const t=this._board.at(e.from);if(!t||t.color!==this.color)return!1;if(!this.isMovable(e.from,e.to))return!1;const s=this._board.at(e.to);if(s&&s.color===this.color)return!1;if(e.promote){if(!t.isPromotable())return!1;if(!m(this.color,e.from.rank)&&!m(this.color,e.to.rank))return!1}else if(f(this.color,t.type,e.to.rank))return!1;if(e.pieceType!==c.PieceType.KING?this._board.isChecked(this.color,{filled:e.to,ignore:e.from}):this._board.hasPower(e.to,(0,n.reverseColor)(this.color),{ignore:e.from}))return!1}else{if(e.promote)return!1;if(e.color!==this.color)return!1;if(0===this.hand(this.color).count(e.from))return!1;if(this._board.at(e.to))return!1;if(f(this.color,e.from,e.to.rank))return!1;if(e.from===c.PieceType.PAWN&&function(e,t,s){for(let r=1;r<=9;r+=1){const n=t.at(new o.Square(s,r));if(n&&n.type===c.PieceType.PAWN&&n.color===e)return!0}return!1}(this.color,this._board,e.to.file))return!1;if(this._board.isChecked(this.color,{filled:e.to}))return!1;if(this.isPawnDropMate(e))return!1}return!0}doMove(e,t){if(!(t&&t.ignoreValidation||this.isValidMove(e)))return!1;if(e.from instanceof o.Square){const t=this._board.at(e.from),s=this._board.at(e.to);this._board.remove(e.from),this._board.set(e.to,e.promote?t.promoted():t),s&&s.type!==c.PieceType.KING&&this.hand(this.color).add(s.unpromoted().type,1)}else this.hand(this.color).reduce(e.from,1),this._board.set(e.to,new c.Piece(this.color,e.from));return this._color=(0,n.reverseColor)(this.color),!0}undoMove(e){if(this._color=(0,n.reverseColor)(this.color),e.from instanceof o.Square)if(this._board.set(e.from,new c.Piece(this.color,e.pieceType)),e.capturedPieceType){const t=new c.Piece((0,n.reverseColor)(this.color),e.capturedPieceType);this._board.set(e.to,t),t.type!==c.PieceType.KING&&this.hand(this.color).reduce(t.unpromoted().type,1)}else this._board.remove(e.to);else this.hand(this.color).add(e.from,1),this._board.remove(e.to)}isValidEditing(e,t){if(e instanceof o.Square){const s=this._board.at(e);if(!s)return!1;if(t instanceof o.Square){if(e.equals(t))return!1}else if(s.type===c.PieceType.KING)return!1}else{if(!e.color)return!1;if(0===this.hand(e.color).count(e.type))return!1;if(t instanceof o.Square){if(this._board.at(t))return!1}else if(e.color===t)return!1}return!0}edit(e){if(e.move){if(!this.isValidEditing(e.move.from,e.move.to))return!1;if(e.move.from instanceof o.Square)if(e.move.to instanceof o.Square)this._board.swap(e.move.from,e.move.to);else{const t=this._board.remove(e.move.from);this.hand(e.move.to).add(t.unpromoted().type,1)}else this.hand(e.move.from.color).reduce(e.move.from.type,1),e.move.to instanceof o.Square?this._board.set(e.move.to,e.move.from):this.hand(e.move.to).add(e.move.from.type,1)}if(e.rotate){const t=this._board.at(e.rotate);t&&this._board.set(e.rotate,t.rotate())}return!0}reset(e){this.resetBySFEN(p(e))}get sfen(){return this.getSFEN(1)}getSFEN(e){let t=`${this._board.sfen} ${(0,n.colorToSFEN)(this.color)} `;return t+=a.Hand.formatSFEN(this._blackHand,this._whiteHand),t+=" "+Math.max(e,1),t}resetBySFEN(e){if(!g.isValidSFEN(e))return!1;const t=e.split(" ");"sfen"===t[0]&&t.shift(),this._board.resetBySFEN(t[0]),this._color=(0,n.parseSFENColor)(t[1]);const s=a.Hand.parseSFEN(t[2]);return this._blackHand=s.black,this._whiteHand=s.white,!0}setColor(e){this._color=e}static isValidSFEN(e){const t=e.split(" ");return 5===t.length&&"sfen"===t[0]&&t.shift(),4===t.length&&(!!r.Board.isValidSFEN(t[0])&&(!!(0,n.isValidSFENColor)(t[1])&&(!!a.Hand.isValidSFEN(t[2])&&!!t[3].match(/[0-9]+/))))}static newBySFEN(e){const t=new g;return t.resetBySFEN(e)?t:null}isMovable(e,t){const s=t.x-e.x,r=t.y-e.y,{direction:n,distance:i,ok:o}=(0,l.vectorToDirectionAndDistance)(s,r);if(!o)return!1;const a=this._board.at(e);if(!a)return!1;switch((0,l.resolveMoveType)(a,n)){default:return!1;case l.MoveType.SHORT:return 1===i;case l.MoveType.LONG:{const s=l.directionToDeltaMap[n];for(let r=e.neighbor(s.x,s.y);r.valid;r=r.neighbor(s.x,s.y)){if(r.equals(t))return!0;if(this._board.at(r))return!1}return!1}}}copyFrom(e){this._board.copyFrom(e._board),this._color=e.color,this._blackHand.copyFrom(e._blackHand),this._whiteHand.copyFrom(e._whiteHand)}clone(){const e=new g;return e.copyFrom(this),e}}function y(e){const t={pawn:0,lance:0,knight:0,silver:0,gold:0,bishop:0,rook:0,king:0,promPawn:0,promLance:0,promKnight:0,promSilver:0,horse:0,dragon:0};return o.Square.all.forEach((s=>{const r=e.board.at(s);r&&(t[r.type]+=1)})),e.blackHand.forEach(((e,s)=>{t[e]+=s})),e.whiteHand.forEach(((e,s)=>{t[e]+=s})),t}function S(e){const t=y(e);return{pawn:18-t.pawn-t.promPawn,lance:4-t.lance-t.promLance,knight:4-t.knight-t.promKnight,silver:4-t.silver-t.promSilver,gold:4-t.gold,bishop:2-t.bishop-t.horse,rook:2-t.rook-t.dragon,king:2-t.king,promPawn:0,promLance:0,promKnight:0,promSilver:0,horse:0,dragon:0}}var E,v;function T(e,t){return e.listNonEmptySquares().filter((s=>{if(!m(t,s.rank))return!1;const r=e.at(s);return r?.color===t&&r?.type!==c.PieceType.KING})).map((t=>e.at(t)))}function b(e,t){let s=0;for(const r of T(e.board,t)){const e=r.unpromoted().type;s+=e===c.PieceType.BISHOP||e===c.PieceType.ROOK?5:1}const r=e.hand(t);if(s+=r.count(c.PieceType.PAWN)+r.count(c.PieceType.LANCE)+r.count(c.PieceType.KNIGHT)+r.count(c.PieceType.SILVER)+r.count(c.PieceType.GOLD)+5*r.count(c.PieceType.BISHOP)+5*r.count(c.PieceType.ROOK),t===n.Color.WHITE){const t=S(e);s+=t.pawn+t.lance+t.knight+t.silver+t.gold+5*t.bishop+5*t.rook}return s}t.Position=g,t.countExistingPieces=y,t.countNotExistingPieces=S,function(e){e.GENERAL24="general24",e.GENERAL27="general27"}(E||(t.JishogiDeclarationRule=E={})),function(e){e.WIN="win",e.LOSE="lose",e.DRAW="draw"}(v||(t.JishogiDeclarationResult=v={})),t.countJishogiDeclarationPoint=b,t.judgeJishogiDeclaration=function(e,t,s){if(t.color!==s)return v.LOSE;const r=t.board.findKing(s);if(!r||!m(s,r.rank))return v.LOSE;if(t.board.isChecked(s))return v.LOSE;if(T(t.board,s).length<10)return v.LOSE;const i=b(t,s);return e===E.GENERAL24?i>=31?v.WIN:i>=24?v.DRAW:v.LOSE:s===n.Color.BLACK?i>=28?v.WIN:v.DRAW:i>=27?v.WIN:v.DRAW}},8e3:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextColorFromUSI=t.Record=t.RecordMetadata=t.getWhitePlayerNamePreferShort=t.getBlackPlayerNamePreferShort=t.getWhitePlayerName=t.getBlackPlayerName=t.RecordMetadataKey=void 0;const r=s(3016),n=s(8344),i=s(1603),o=s(5068),a=s(1224),c=s(1336);var l;!function(e){e.TITLE="title",e.BLACK_NAME="blackName",e.WHITE_NAME="whiteName",e.SHITATE_NAME="shitateName",e.UWATE_NAME="uwateName",e.START_DATETIME="startDatetime",e.END_DATETIME="endDatetime",e.DATE="date",e.TOURNAMENT="tournament",e.STRATEGY="strategy",e.TIME_LIMIT="timeLimit",e.BYOYOMI="byoyomi",e.TIME_SPENT="timeSpent",e.PLACE="place",e.POSTED_ON="postedOn",e.NOTE="note",e.BLACK_SHORT_NAME="blackShortName",e.WHITE_SHORT_NAME="whiteShortName",e.OPUS_NO="opusNo",e.OPUS_NAME="opusName",e.AUTHOR="author",e.PUBLISHED_BY="publishedBy",e.PUBLISHED_AT="publishedAt",e.SOURCE="source",e.LENGTH="length",e.INTEGRITY="integrity",e.CATEGORY="category",e.AWARD="award"}(l||(t.RecordMetadataKey=l={})),t.getBlackPlayerName=function(e){return e.getStandardMetadata(l.BLACK_NAME)||e.getStandardMetadata(l.BLACK_SHORT_NAME)||e.getStandardMetadata(l.SHITATE_NAME)},t.getWhitePlayerName=function(e){return e.getStandardMetadata(l.WHITE_NAME)||e.getStandardMetadata(l.WHITE_SHORT_NAME)||e.getStandardMetadata(l.UWATE_NAME)},t.getBlackPlayerNamePreferShort=function(e){return e.getStandardMetadata(l.BLACK_SHORT_NAME)||e.getStandardMetadata(l.BLACK_NAME)||e.getStandardMetadata(l.SHITATE_NAME)},t.getWhitePlayerNamePreferShort=function(e){return e.getStandardMetadata(l.WHITE_SHORT_NAME)||e.getStandardMetadata(l.WHITE_NAME)||e.getStandardMetadata(l.UWATE_NAME)};class u{standard=new Map;custom=new Map;get standardMetadataKeys(){return this.standard.keys()}getStandardMetadata(e){return this.standard.get(e)}setStandardMetadata(e,t){t?this.standard.set(e,t):this.standard.delete(e)}get customMetadataKeys(){return this.custom.keys()}getCustomMetadata(e){return this.custom.get(e)}setCustomMetadata(e,t){t?this.custom.set(e,t):this.custom.delete(e)}}t.RecordMetadata=u;class h{ply;prev;branchIndex;activeBranch;nextColor;move;isCheck;displayText;next=null;branch=null;comment="";customData;elapsedMs=0;totalElapsedMs=0;bookmark="";constructor(e,t,s,r,n,i,o,a){this.ply=e,this.prev=t,this.branchIndex=s,this.activeBranch=r,this.nextColor=n,this.move=i,this.isCheck=o,this.displayText=a}get timeText(){return`${(0,r.millisecondsToMSS)(this.elapsedMs)} / ${(0,r.millisecondsToHHMMSS)(this.totalElapsedMs)}`}get hasBranch(){return!!this.prev&&!!this.prev.next&&!!this.prev.next.branch}get isFirstBranch(){return!this.prev||this.prev.next===this}get isLastMove(){if(!this.next)return!0;for(let e=this.next;e;e=e.branch)if(e.move instanceof o.Move)return!1;return!0}updateTotalElapsedMs(){this.totalElapsedMs=this.elapsedMs,this.prev&&this.prev.prev&&(this.totalElapsedMs+=this.prev.prev.totalElapsedMs)}setElapsedMs(e){this.elapsedMs=e,this.updateTotalElapsedMs();let t=this.next;const s=[];for(;t;)t.updateTotalElapsedMs(),t.branch&&s.push(t.branch),t=t.next?t.next:s.pop()||null}static newRootEntry(e){return new h(0,null,0,!0,e,(0,o.specialMove)(o.SpecialMoveType.START),!1,"開始局面")}}class p{metadata;_initialPosition;_position;_first;_current;repetitionCounts={};repetitionStart={};onChangePosition=()=>{};constructor(e){this.metadata=new u,this._initialPosition=e?e.clone():new a.Position,this._position=this.initialPosition.clone(),this._first=h.newRootEntry(this._initialPosition.color),this._current=this._first,this.incrementRepetition()}get initialPosition(){return this._initialPosition}get position(){return this._position}get first(){return this._first}get current(){return this._current}get moves(){const e=this.movesBefore;for(let t=this._current.next;t;t=t.next){for(;!t.activeBranch;)t=t.branch;e.push(t)}return e}get movesBefore(){return this._movesBefore}get _movesBefore(){const e=new Array;e.unshift(this._current);for(let t=this._current.prev;t;t=t.prev)e.unshift(t);return e}get length(){let e=this._current.ply;for(let t=this._current.next;t;t=t.next){for(;!t.activeBranch;)t=t.branch;e=t.ply}return e}get branchBegin(){return this._current.prev?this._current.prev.next:this._current}clear(e){this.metadata=new u,e&&(this._initialPosition=e.clone()),this._position=this.initialPosition.clone(),this._first=h.newRootEntry(this._initialPosition.color),this._current=this._first,this.repetitionCounts={},this.repetitionStart={},this.incrementRepetition(),this.onChangePosition()}goBack(){return!!this._goBack()&&(this.onChangePosition(),!0)}_goBack(){return!!this._current.prev&&(this._current.move instanceof o.Move&&(this.decrementRepetition(),this._position.undoMove(this._current.move)),this._current=this._current.prev,!0)}goForward(){return!!this._goForward()&&(this.onChangePosition(),!0)}_goForward(){if(this._current.next){for(this._current=this._current.next;!this._current.activeBranch;)this._current=this._current.branch;return this._current.move instanceof o.Move&&(this._position.doMove(this._current.move,{ignoreValidation:!0}),this.incrementRepetition()),!0}return!1}goto(e){const t=this._current.ply;for(;e<this._current.ply&&this._goBack(););for(;e>this._current.ply&&this._goForward(););t!==this._current.ply&&this.onChangePosition()}resetAllBranchSelection(){this._forEach((e=>{e.activeBranch=e.isFirstBranch}))}switchBranchByIndex(e){if(this.current.branchIndex===e)return!0;if(!this._current.prev)return!1;let t=!1;for(let s=this._current.prev.next;s;s=s.branch)s.branchIndex===e?(s.activeBranch=!0,this._current.move instanceof o.Move&&(this.decrementRepetition(),this._position.undoMove(this._current.move)),this._current=s,this._current.move instanceof o.Move&&(this._position.doMove(this._current.move,{ignoreValidation:!0}),this.incrementRepetition()),t=!0):s.activeBranch=!1;return t&&this.onChangePosition(),t}append(e,t){"string"==typeof e&&(e=(0,o.specialMove)(e));const s=this.current.move instanceof o.Move?this.current.move:void 0,r=e instanceof o.Move?(0,c.formatMove)(this.position,e,{lastMove:s}):(0,c.formatSpecialMove)(e);let n,i=!1;if(e instanceof o.Move){if(!this._position.doMove(e,t))return!1;this.incrementRepetition(),i=this.position.checked}if(this._current===this.first||this._current.move instanceof o.Move||this.goBack(),!this._current.next)return this._current.next=new h(this._current.ply+1,this._current,0,!0,this.position.color,e,i,r),this._current=this._current.next,this._current.setElapsedMs(0),this.onChangePosition(),!0;for(n=this._current.next;n;n=n.branch)n.activeBranch=!1;let a=this._current.next;for(n=this._current.next;n;n=n.branch){if(n.move instanceof o.Move&&e instanceof o.Move&&e.equals(n.move)||e===n.move)return this._current=n,this._current.activeBranch=!0,this.onChangePosition(),!0;a=n}return this._current=new h(this._current.ply+1,this._current,a.branchIndex+1,!0,this.position.color,e,i,r),this._current.setElapsedMs(0),a.branch=this._current,this.onChangePosition(),!0}swapWithNextBranch(){return!!this._current.branch&&p.swapWithPreviousBranch(this._current.branch)}swapWithPreviousBranch(){return p.swapWithPreviousBranch(this._current)}static swapWithPreviousBranch(e){const t=e.prev;if(!t||!t.next||t.next==e)return!1;if(t.next.branch===e){const s=t.next;return s.branch=e.branch,e.branch=s,t.next=e,[e.branchIndex,s.branchIndex]=[s.branchIndex,e.branchIndex],!0}for(let s=t.next;s.branch;s=s.branch)if(s.branch.branch===e){const t=s.branch;return t.branch=e.branch,e.branch=t,s.branch=e,[e.branchIndex,t.branchIndex]=[t.branchIndex,e.branchIndex],!0}return!1}removeCurrentMove(){const e=this._current;if(!this.goBack())return!!this._current.next&&(this._current.next=null,!0);if(this._current.next===e)this._current.next=e.branch;else for(let t=this._current.next;t;t=t.branch)if(t.branch===e){t.branch=e.branch;break}let t=0;for(let e=this._current.next;e;e=e.branch)e.branchIndex=t,t+=1;return this._current.next&&(this._current.next.activeBranch=!0),this.onChangePosition(),!0}removeNextMove(){return!!this._current.next&&(this._current.next=null,!0)}jumpToBookmark(e){if(this._current.bookmark===e)return!0;const t=this.find((t=>t.bookmark===e));if(!t)return!1;const s=[];for(let e=t;e;e=e.prev)s[e.ply]=e;for(;this._current!==s[this._current.ply];)this.goBack();for(;s.length>this._current.ply+1;)this.append(s[this._current.ply+1].move);return this.onChangePosition(),!0}incrementRepetition(){const e=this.position.sfen;this.repetitionCounts[e]?this.repetitionCounts[e]+=1:(this.repetitionCounts[e]=1,this.repetitionStart[e]=this.current.ply)}decrementRepetition(){const e=this.position.sfen;this.repetitionCounts[e]-=1,0===this.repetitionCounts[e]&&(delete this.repetitionCounts[e],delete this.repetitionStart[e])}get repetition(){return this.repetitionCounts[this.position.sfen]>=4}get perpetualCheck(){if(!this.repetition)return null;const e=this.position.sfen,t=this.repetitionStart[e];let s=!0,r=!0,i=this.position.color;for(let e=this.current;e.ply>=t;e=e.prev)i=(0,n.reverseColor)(i),e.isCheck||(i===n.Color.BLACK?s=!1:r=!1);return s?n.Color.BLACK:r?n.Color.WHITE:null}get usi(){return this.getUSI()}getUSI(e){const t=this.initialPosition.sfen;let s="position "+((void 0===e?.startpos||e.startpos)&&t===a.InitialPositionSFEN.STANDARD?"startpos":"sfen "+this.initialPosition.sfen)+" moves";for(let t=this.first;;t=t.next){for(;!t.activeBranch;)t=t.branch;if(t.move instanceof o.Move?s+=" "+t.move.usi:e?.resign&&t.move.type===o.SpecialMoveType.RESIGN&&(s+=" resign"),!t.next||!e?.allMoves&&t===this.current)break}return s}get sfen(){return this.position.getSFEN(this._current.ply+1)}get bookmarks(){const e=[],t={};return this.forEach((s=>{s.bookmark&&!t[s.bookmark]&&(e.push(s.bookmark),t[s.bookmark]=!0)})),e}forEach(e){this._forEach(e)}_forEach(e){this.find(((t,s)=>(e(t,s),!1)))}find(e){let t=this._first;const s=this.initialPosition.clone(),r=[];for(;;){if(e(t,s))return t;if(t.next)r.push(t),t.move instanceof o.Move&&s.doMove(t.move),t=t.next;else{for(;!t.branch;){const e=r.pop();if(!e)return null;e.move instanceof o.Move&&s.undoMove(e.move),t=e}t=t.branch}}}on(e,t){if("changePosition"===e)this.onChangePosition=t}static newByUSI(e){const t="position startpos ",s="position sfen ",r="startpos ",n="sfen ";return e.startsWith(t)?p.newByUSIFromMoves(new a.Position,e.slice(18)):e.startsWith(s)?p.newByUSIFromSFEN(e.slice(14)):e.startsWith(r)?p.newByUSIFromMoves(new a.Position,e.slice(9)):e.startsWith(n)?p.newByUSIFromSFEN(e.slice(5)):e.startsWith("moves ")?p.newByUSIFromMoves(new a.Position,e):new i.InvalidUSIError(e)}static newByUSIFromSFEN(e){const t=e.split(" ");if(t.length<4)return new i.InvalidUSIError(e);const s=a.Position.newBySFEN(t.slice(0,4).join(" "));return s?p.newByUSIFromMoves(s,t.slice(4).join(" ")):new i.InvalidUSIError(e)}static newByUSIFromMoves(e,t){const s=new p(e);if(0===t.length)return s;const r=t.split(" ");if("moves"!==r[0])return new i.InvalidUSIError(t);for(let e=1;e<r.length;e++){const t=(0,o.parseUSIMove)(r[e]);if(!t)break;let n=s.position.createMove(t.from,t.to);if(!n)return new i.InvalidMoveError(r[e]);t.promote&&(n=n.withPromote()),s.append(n,{ignoreValidation:!0})}return s}}t.Record=p,t.getNextColorFromUSI=function(e){const t=e.trim().split(" ");return"startpos"===t[1]||"b"===t[3]?t.length%2==1?n.Color.BLACK:n.Color.WHITE:t.length%2==0?n.Color.BLACK:n.Color.WHITE}},3633:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Square=void 0;const r=s(4396);const n=["a","b","c","d","e","f","g","h","i"];class i{file;rank;constructor(e,t){this.file=e,this.rank=t}get x(){return 9-this.file}get y(){return this.rank-1}get index(){return 9*this.y+this.x}get opposite(){return new i(10-this.file,10-this.rank)}neighbor(e,t){switch(e){case r.Direction.UP:return new i(this.file,this.rank-1);case r.Direction.DOWN:return new i(this.file,this.rank+1);case r.Direction.LEFT:return new i(this.file+1,this.rank);case r.Direction.RIGHT:return new i(this.file-1,this.rank);case r.Direction.LEFT_UP:return new i(this.file+1,this.rank-1);case r.Direction.RIGHT_UP:return new i(this.file-1,this.rank-1);case r.Direction.LEFT_DOWN:return new i(this.file+1,this.rank+1);case r.Direction.RIGHT_DOWN:return new i(this.file-1,this.rank+1);case r.Direction.LEFT_UP_KNIGHT:return new i(this.file+1,this.rank-2);case r.Direction.RIGHT_UP_KNIGHT:return new i(this.file-1,this.rank-2);case r.Direction.LEFT_DOWN_KNIGHT:return new i(this.file+1,this.rank+2);case r.Direction.RIGHT_DOWN_KNIGHT:return new i(this.file-1,this.rank+2)}const s=e,n=t;return new i(this.file-s,this.rank+n)}directionTo(e){return(0,r.vectorToDirectionAndDistance)(e.x-this.x,e.y-this.y).direction}get valid(){return this.file>=1&&this.file<=9&&this.rank>=1&&this.rank<=9}equals(e){return!!e&&this.file===e.file&&this.rank===e.rank}static newByXY(e,t){return new i(9-e,t+1)}static newByIndex(e){return new i(9-e%9,Math.trunc(e/9)+1)}static all=[];get sfen(){return this.file+n[this.rank-1]}static parseSFENSquare(e){const t=function(e){return e>="1"&&e<="9"?Number(e):null}(e[0]),s=function(e){switch(e){case"a":return 1;case"b":return 2;case"c":return 3;case"d":return 4;case"e":return 5;case"f":return 6;case"g":return 7;case"h":return 8;case"i":return 9;default:return null}}(e[1]);return t&&s?new i(t,s):null}}t.Square=i;for(let e=0;e<81;e+=1)i.all.push(i.newByIndex(e))},1336:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseMoves=t.parsePV=t.formatPV=t.formatMove=t.getDirectionModifier=t.formatSpecialMove=t.pieceTypeToStringForBoard=t.pieceTypeToStringForMove=t.rankToKanji=t.fileToMultiByteChar=t.numberToKanji=t.stringToPieceType=t.stringToNumber=void 0;const r=s(8344),n=s(4396),i=s(1603),o=s(5068),a=s(2696),c=s(1224),l=s(3633),u={1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,十一:11,十二:12,十三:13,十四:14,十五:15,十六:16,十七:17,十八:18},h={王:a.PieceType.KING,玉:a.PieceType.KING,飛:a.PieceType.ROOK,龍:a.PieceType.DRAGON,竜:a.PieceType.DRAGON,角:a.PieceType.BISHOP,馬:a.PieceType.HORSE,金:a.PieceType.GOLD,銀:a.PieceType.SILVER,成銀:a.PieceType.PROM_SILVER,全:a.PieceType.PROM_SILVER,桂:a.PieceType.KNIGHT,成桂:a.PieceType.PROM_KNIGHT,圭:a.PieceType.PROM_KNIGHT,香:a.PieceType.LANCE,成香:a.PieceType.PROM_LANCE,杏:a.PieceType.PROM_LANCE,歩:a.PieceType.PAWN,と:a.PieceType.PROM_PAWN};function p(e){return u[e]}function d(e){return h[e]}t.stringToNumber=p,t.stringToPieceType=d;const f=["一","二","三","四","五","六","七","八","九","十","十一","十二","十三","十四","十五","十六","十七","十八"],m=["1","2","3","4","5","6","7","8","9"];function g(e){return m[e-1]}function y(e){return f[e-1]}t.numberToKanji=function(e){return f[e-1]},t.fileToMultiByteChar=g,t.rankToKanji=y;const S={king:"玉",rook:"飛",dragon:"龍",bishop:"角",horse:"馬",gold:"金",silver:"銀",promSilver:"成銀",knight:"桂",promKnight:"成桂",lance:"香",promLance:"成香",pawn:"歩",promPawn:"と"};function E(e){return S[e]}t.pieceTypeToStringForMove=E;const v={king:"玉",rook:"飛",dragon:"龍",bishop:"角",horse:"馬",gold:"金",silver:"銀",promSilver:"全",knight:"桂",promKnight:"圭",lance:"香",promLance:"杏",pawn:"歩",promPawn:"と"};t.pieceTypeToStringForBoard=function(e){return v[e]};const T={[o.SpecialMoveType.START]:"開始局面",[o.SpecialMoveType.RESIGN]:"投了",[o.SpecialMoveType.INTERRUPT]:"中断",[o.SpecialMoveType.IMPASS]:"持将棋",[o.SpecialMoveType.DRAW]:"引き分け",[o.SpecialMoveType.REPETITION_DRAW]:"千日手",[o.SpecialMoveType.MATE]:"詰み",[o.SpecialMoveType.NO_MATE]:"不詰",[o.SpecialMoveType.TIMEOUT]:"切れ負け",[o.SpecialMoveType.FOUL_WIN]:"反則勝ち",[o.SpecialMoveType.FOUL_LOSE]:"反則負け",[o.SpecialMoveType.ENTERING_OF_KING]:"入玉",[o.SpecialMoveType.WIN_BY_DEFAULT]:"不戦勝",[o.SpecialMoveType.LOSE_BY_DEFAULT]:"不戦敗",[o.SpecialMoveType.TRY]:"トライ"};function b(e,t){const s=new a.Piece(e.color,e.pieceType),i=t.listAttackersByPiece(e.to,s).filter((t=>!(e.from instanceof l.Square&&t.equals(e.from))));if(e.from instanceof l.Square){let t="",s=e.from.directionTo(e.to);s=e.color===r.Color.BLACK?s:(0,n.reverseDirection)(s);const o=(0,n.directionToVDirection)(s),c=(0,n.directionToHDirection)(s),l=i.map((t=>{const s=t.directionTo(e.to);return e.color===r.Color.BLACK?s:(0,n.reverseDirection)(s)})),u=l.filter((e=>(0,n.directionToHDirection)(e)==c)).map((e=>(0,n.directionToVDirection)(e))),h=l.filter((e=>(0,n.directionToVDirection)(e)==o)).map((e=>(0,n.directionToHDirection)(e)));let p=!1;if(h.length)if(e.pieceType===a.PieceType.HORSE||e.pieceType===a.PieceType.DRAGON)c===n.HDirection.LEFT||c===n.HDirection.NONE&&h[0]===n.HDirection.RIGHT?t+="右":(c===n.HDirection.RIGHT||c===n.HDirection.NONE&&h[0]===n.HDirection.LEFT)&&(t+="左");else switch(c){case n.HDirection.LEFT:t+="右";break;case n.HDirection.NONE:t+="直",p=!0;break;case n.HDirection.RIGHT:t+="左"}if(!p&&(u.length||!h.length&&i.length))switch(o){case n.VDirection.DOWN:t+="引";break;case n.VDirection.NONE:t+="寄";break;case n.VDirection.UP:t+="上"}return t}return i.length?"打":""}function A(e,t,s){let n="";switch(t.color){case r.Color.BLACK:n+=s?.compatible?"▲":"☗";break;case r.Color.WHITE:n+=s?.compatible?"△":"☖"}return s?.lastMove&&s.lastMove.to.equals(t.to)?n+="同 ":(n+=g(t.to.file),n+=y(t.to.rank)),n+=E(t.pieceType),n+=b(t,e),t.from instanceof l.Square&&(t.promote?n+="成":t.from instanceof l.Square&&(0,a.isPromotable)(t.pieceType)&&((0,c.isPromotableRank)(t.color,t.from.rank)||(0,c.isPromotableRank)(t.color,t.to.rank))&&(n+="不成")),n}t.formatSpecialMove=function(e){return"string"==typeof e?T[e]:(0,o.isKnownSpecialMove)(e)?T[e.type]:e.name},t.getDirectionModifier=b,t.formatMove=A,t.formatPV=function(e,t){let s,r="";const n=e.clone();for(const e of t)r+=`${A(n,e,{lastMove:s,compatible:!0})}`,n.doMove(e,{ignoreValidation:!0}),s=e;return r};const P=/^[▲△▼▽☗☖]?([123456789一二三四五六七八九1-9]{2}|同)(王|玉|飛|龍|竜|角|馬|金|銀|成銀|全|桂|成桂|圭|香|成香|杏|歩|と)(左|直|右|)(引|寄|上|)(成|不成|打|)(\([1-9][1-9]\)|)/;function I(e,t,s){const o=t.replaceAll(/[\s\u3000]/g,""),c=[];let u=0;for(let e=1;e<=o.length;e++){const t=o[e];t&&"▲"!==t&&"△"!==t&&"▼"!==t&&"▽"!==t&&"☗"!==t&&"☖"!==t||(c.push(o.substring(u,e)),u=e)}const h=e.clone(),f=[];for(const e of c){const t=P.exec(e);if(!t)return[f,new i.InvalidMoveError(e)];const o=t[1],c=d(t[2]),u=t[3],m=t[4],g=t[5],y=t[6];let S,E;if(o.startsWith("同"))if(f.length>0)S=f[f.length-1].to;else{if(!s)return[f,new i.InvalidMoveError(e)];S=s.to}else{const e=p(o[0]),t=p(o[1]);S=new l.Square(e,t)}if("打"===g)E=c;else if(y){const e=p(y[1]),t=p(y[2]);E=new l.Square(e,t)}else{let t=h.listAttackersByPiece(S,new a.Piece(h.color,c)).filter((e=>{let t=e.directionTo(S);t=h.color===r.Color.BLACK?t:(0,n.reverseDirection)(t);const s=(0,n.directionToVDirection)(t),i=(0,n.directionToHDirection)(t);if(m.indexOf("引")>=0&&s!==n.VDirection.DOWN)return!1;if(m.indexOf("寄")>=0&&s!==n.VDirection.NONE)return!1;if((m.indexOf("上")>=0||m.indexOf("行")>=0)&&s!==n.VDirection.UP)return!1;if(u.indexOf("直")>=0&&(i!==n.HDirection.NONE||s!==n.VDirection.UP))return!1;if(c===a.PieceType.HORSE||c===a.PieceType.DRAGON){if(u.indexOf("左")>=0&&i===n.HDirection.LEFT)return!1;if(u.indexOf("右")>=0&&i===n.HDirection.RIGHT)return!1}else{if(u.indexOf("左")>=0&&i!==n.HDirection.RIGHT)return!1;if(u.indexOf("右")>=0&&i!==n.HDirection.LEFT)return!1}return!0}));if(2!==t.length||c!==a.PieceType.HORSE&&c!==a.PieceType.DRAGON||(t=t.filter((e=>{let t=e.directionTo(S);t=h.color===r.Color.BLACK?t:(0,n.reverseDirection)(t);return(0,n.directionToHDirection)(t)!==n.HDirection.NONE}))),1===t.length)E=t[0];else{if(0!==t.length||0===h.hand(h.color).count(c))return[f,new i.InvalidMoveError(e)];E=c}}let v=h.createMove(E,S);if(!v)return[f,new i.InvalidMoveError(e)];if("成"===g&&(v=v.withPromote()),!h.doMove(v,{ignoreValidation:!0}))return[f,new i.InvalidMoveError(e)];f.push(v)}return[f,void 0]}t.parsePV=function(e,t){return I(e,t)[0]},t.parseMoves=I},5504:(e,t)=>{"use strict";const{parse:s,stringify:r}=JSON,{keys:n}=Object,i=String,o="string",a={},c="object",l=(e,t)=>t,u=e=>e instanceof i?i(e):e,h=(e,t)=>typeof t===o?new i(t):t,p=(e,t,s,r)=>{const o=[];for(let l=n(s),{length:u}=l,h=0;h<u;h++){const n=l[h],u=s[n];if(u instanceof i){const i=e[u];typeof i!==c||t.has(i)?s[n]=r.call(s,n,i):(t.add(i),s[n]=a,o.push({k:n,a:[e,t,i,r]}))}else s[n]!==a&&(s[n]=r.call(s,n,u))}for(let{length:e}=o,t=0;t<e;t++){const{k:e,a:n}=o[t];s[e]=r.call(s,e,p.apply(null,n))}return s},d=(e,t,s)=>{const r=i(t.push(s)-1);return e.set(s,r),r},f=(e,t)=>{const r=s(e,h).map(u),n=r[0],i=t||l,o=typeof n===c&&n?p(r,new Set,n,i):n;return i.call({"":o},"",o)};t.parse=f;const m=(e,t,s)=>{const n=t&&typeof t===c?(e,s)=>""===e||-1<t.indexOf(e)?s:void 0:t||l,i=new Map,a=[],u=[];let h=+d(i,a,n.call({"":e},"",e)),p=!h;for(;h<a.length;)p=!0,u[h]=r(a[h++],f,s);return"["+u.join(",")+"]";function f(e,t){if(p)return p=!p,t;const s=n.call(this,e,t);switch(typeof s){case c:if(null===s)return s;case o:return i.get(s)||d(i,a,s)}return s}};t.stringify=m;t.toJSON=e=>s(m(e));t.fromJSON=e=>f(r(e))},3544:(e,t,s)=>{"use strict";var r=s(6184),n=s(3976),i=s(576),o=s(8036),a=s(27),c=s(8992),l=s(7904);function u(e,t,s,r,n,i){const o="block-map"===s.type?a.resolveBlockMap(e,t,s,r,i):"block-seq"===s.type?c.resolveBlockSeq(e,t,s,r,i):l.resolveFlowCollection(e,t,s,r,i),u=o.constructor;return"!"===n||n===u.tagName?(o.tag=u.tagName,o):(n&&(o.tag=n),o)}t.composeCollection=function(e,t,s,a,c){const l=a?t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e))):null,h="block-map"===s.type?"map":"block-seq"===s.type?"seq":"{"===s.start.source?"map":"seq";if(!a||!l||"!"===l||l===i.YAMLMap.tagName&&"map"===h||l===o.YAMLSeq.tagName&&"seq"===h||!h)return u(e,t,s,c,l);let p=t.schema.tags.find((e=>e.tag===l&&e.collection===h));if(!p){const r=t.schema.knownTags[l];if(!r||r.collection!==h)return r?.collection?c(a,"BAD_COLLECTION_TYPE",`${r.tag} used for ${h} collection, but expects ${r.collection}`,!0):c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,!0),u(e,t,s,c,l);t.schema.tags.push(Object.assign({},r,{default:!1})),p=r}const d=u(e,t,s,c,l,p),f=p.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d,m=r.isNode(f)?f:new n.Scalar(f);return m.range=d.range,m.tag=l,p?.format&&(m.format=p.format),m}},5768:(e,t,s)=>{"use strict";var r=s(4055),n=s(1576),i=s(1496),o=s(2276);t.composeDoc=function(e,t,{offset:s,start:a,value:c,end:l},u){const h=Object.assign({_directives:t},e),p=new r.Document(void 0,h),d={atRoot:!0,directives:p.directives,options:p.options,schema:p.schema},f=o.resolveProps(a,{indicator:"doc-start",next:c??l?.[0],offset:s,onError:u,startOnNewline:!0});f.found&&(p.directives.docStart=!0,!c||"block-map"!==c.type&&"block-seq"!==c.type||f.hasNewline||u(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),p.contents=c?n.composeNode(d,c,f,u):n.composeEmptyNode(d,f.end,a,null,f,u);const m=p.contents.range[2],g=i.resolveEnd(l,m,!1,u);return g.comment&&(p.comment=g.comment),p.range=[s,m,g.offset],p}},1576:(e,t,s)=>{"use strict";var r=s(4136),n=s(3544),i=s(9236),o=s(1496),a=s(8220);const c={composeNode:l,composeEmptyNode:u};function l(e,t,s,a){const{spaceBefore:l,comment:h,anchor:p,tag:d}=s;let f,m=!0;switch(t.type){case"alias":f=function({options:e},{offset:t,source:s,end:n},i){const a=new r.Alias(s.substring(1));""===a.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string");a.source.endsWith(":")&&i(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+s.length,l=o.resolveEnd(n,c,e.strict,i);a.range=[t,c,l.offset],l.comment&&(a.comment=l.comment);return a}(e,t,a),(p||d)&&a(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":f=i.composeScalar(e,t,d,a),p&&(f.anchor=p.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":f=n.composeCollection(c,e,t,d,a),p&&(f.anchor=p.source.substring(1));break;default:a(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),f=u(e,t.offset,void 0,null,s,a),m=!1}return p&&""===f.anchor&&a(p,"BAD_ALIAS","Anchor cannot be an empty string"),l&&(f.spaceBefore=!0),h&&("scalar"===t.type&&""===t.source?f.comment=h:f.commentBefore=h),e.options.keepSourceTokens&&m&&(f.srcToken=t),f}function u(e,t,s,r,{spaceBefore:n,comment:o,anchor:c,tag:l,end:u},h){const p={type:"scalar",offset:a.emptyScalarPosition(t,s,r),indent:-1,source:""},d=i.composeScalar(e,p,l,h);return c&&(d.anchor=c.source.substring(1),""===d.anchor&&h(c,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=u),d}t.composeEmptyNode=u,t.composeNode=l},9236:(e,t,s)=>{"use strict";var r=s(6184),n=s(3976),i=s(2032),o=s(7944);t.composeScalar=function(e,t,s,a){const{value:c,type:l,comment:u,range:h}="block-scalar"===t.type?i.resolveBlockScalar(t,e.options.strict,a):o.resolveFlowScalar(t,e.options.strict,a),p=s?e.directives.tagName(s.source,(e=>a(s,"TAG_RESOLVE_FAILED",e))):null,d=s&&p?function(e,t,s,n,i){if("!"===s)return e[r.SCALAR];const o=[];for(const t of e.tags)if(!t.collection&&t.tag===s){if(!t.default||!t.test)return t;o.push(t)}for(const e of o)if(e.test?.test(t))return e;const a=e.knownTags[s];if(a&&!a.collection)return e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a;return i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,"tag:yaml.org,2002:str"!==s),e[r.SCALAR]}(e.schema,c,p,s,a):"scalar"===t.type?function({directives:e,schema:t},s,n,i){const o=t.tags.find((e=>e.default&&e.test?.test(s)))||t[r.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(s)))??t[r.SCALAR];if(o.tag!==a.tag){i(n,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(o.tag)} or ${e.tagString(a.tag)}`,!0)}}return o}(e,c,t,a):e.schema[r.SCALAR];let f;try{const i=d.resolve(c,(e=>a(s??t,"TAG_RESOLVE_FAILED",e)),e.options);f=r.isScalar(i)?i:new n.Scalar(i)}catch(e){const r=e instanceof Error?e.message:String(e);a(s??t,"TAG_RESOLVE_FAILED",r),f=new n.Scalar(c)}return f.range=h,f.source=c,l&&(f.type=l),p&&(f.tag=p),d.format&&(f.format=d.format),u&&(f.comment=u),f}},3264:(e,t,s)=>{"use strict";var r=s(5276),n=s(4055),i=s(3988),o=s(6184),a=s(5768),c=s(1496);function l(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:s}=e;return[t,t+("string"==typeof s?s.length:1)]}function u(e){let t="",s=!1,r=!1;for(let n=0;n<e.length;++n){const i=e[n];switch(i[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(i.substring(1)||" "),s=!0,r=!1;break;case"%":"#"!==e[n+1]?.[0]&&(n+=1),s=!1;break;default:s||(r=!0),s=!1}}return{comment:t,afterEmptyLine:r}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,s,r)=>{const n=l(e);r?this.warnings.push(new i.YAMLWarning(n,t,s)):this.errors.push(new i.YAMLParseError(n,t,s))},this.directives=new r.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:s,afterEmptyLine:r}=u(this.prelude);if(s){const n=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${s}`:s;else if(r||e.directives.docStart||!n)e.commentBefore=s;else if(o.isCollection(n)&&!n.flow&&n.items.length>0){let e=n.items[0];o.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${s}\n${t}`:s}else{const e=n.commentBefore;n.commentBefore=e?`${s}\n${e}`:s}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:u(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(const t of e)yield*this.next(t);yield*this.end(t,s)}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,((t,s,r)=>{const n=l(e);n[0]+=t,this.onError(n,"BAD_DIRECTIVE",s,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),s=new n.Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,t,t],this.decorate(s,!1),yield s}}}},27:(e,t,s)=>{"use strict";var r=s(9971),n=s(576),i=s(2276),o=s(1278),a=s(2340),c=s(8696);const l="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},s,u,h,p){const d=new(p?.nodeClass??n.YAMLMap)(s.schema);s.atRoot&&(s.atRoot=!1);let f=u.offset,m=null;for(const n of u.items){const{start:p,key:g,sep:y,value:S}=n,E=i.resolveProps(p,{indicator:"explicit-key-ind",next:g??y?.[0],offset:f,onError:h,startOnNewline:!0}),v=!E.found;if(v){if(g&&("block-seq"===g.type?h(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==u.indent&&h(f,"BAD_INDENT",l)),!E.anchor&&!E.tag&&!y){m=E.end,E.comment&&(d.comment?d.comment+="\n"+E.comment:d.comment=E.comment);continue}(E.hasNewlineAfterProp||o.containsNewline(g))&&h(g??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else E.found?.indent!==u.indent&&h(f,"BAD_INDENT",l);const T=E.end,b=g?e(s,g,E,h):t(s,T,p,null,E,h);s.schema.compat&&a.flowIndentCheck(u.indent,g,h),c.mapIncludes(s,d.items,b)&&h(T,"DUPLICATE_KEY","Map keys must be unique");const A=i.resolveProps(y??[],{indicator:"map-value-ind",next:S,offset:b.range[2],onError:h,startOnNewline:!g||"block-scalar"===g.type});if(f=A.end,A.found){v&&("block-map"!==S?.type||A.hasNewline||h(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),s.options.strict&&E.start<A.found.offset-1024&&h(b.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const i=S?e(s,S,A,h):t(s,f,y,null,A,h);s.schema.compat&&a.flowIndentCheck(u.indent,S,h),f=i.range[2];const o=new r.Pair(b,i);s.options.keepSourceTokens&&(o.srcToken=n),d.items.push(o)}else{v&&h(b.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),A.comment&&(b.comment?b.comment+="\n"+A.comment:b.comment=A.comment);const e=new r.Pair(b);s.options.keepSourceTokens&&(e.srcToken=n),d.items.push(e)}}return m&&m<f&&h(m,"IMPOSSIBLE","Map comment with trailing content"),d.range=[u.offset,f,m??f],d}},2032:(e,t,s)=>{"use strict";var r=s(3976);t.resolveBlockScalar=function(e,t,s){const n=e.offset,i=function({offset:e,props:t},s,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:n}=t[0],i=n[0];let o=0,a="",c=-1;for(let t=1;t<n.length;++t){const s=n[t];if(a||"-"!==s&&"+"!==s){const r=Number(s);!o&&r?o=r:-1===c&&(c=e+t)}else a=s}-1!==c&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let l=!1,u="",h=n.length;for(let e=1;e<t.length;++e){const n=t[e];switch(n.type){case"space":l=!0;case"newline":h+=n.source.length;break;case"comment":if(s&&!l){r(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")}h+=n.source.length,u=n.source.substring(1);break;case"error":r(n,"UNEXPECTED_TOKEN",n.message),h+=n.source.length;break;default:{r(n,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${n.type}`);const e=n.source;e&&"string"==typeof e&&(h+=e.length)}}}return{mode:i,indent:o,chomp:a,comment:u,length:h}}(e,t,s);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};const o=">"===i.mode?r.Scalar.BLOCK_FOLDED:r.Scalar.BLOCK_LITERAL,a=e.source?function(e){const t=e.split(/\n( *)/),s=t[0],r=s.match(/^( *)/),n=[r?.[1]?[r[1],s.slice(r[1].length)]:["",s]];for(let e=1;e<t.length;e+=2)n.push([t[e],t[e+1]]);return n}(e.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;c=e}if(0===c){const t="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let s=n+i.length;return e.source&&(s+=e.source.length),{value:t,type:o,comment:i.comment,range:[n,s,s]}}let l=e.indent+i.indent,u=e.offset+i.length,h=0;for(let e=0;e<c;++e){const[t,r]=a[e];if(""!==r&&"\r"!==r){if(t.length<l){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";s(u+t.length,"MISSING_CHAR",e)}0===i.indent&&(l=t.length),h=e;break}0===i.indent&&t.length>l&&(l=t.length),u+=t.length+r.length+1}for(let e=a.length-1;e>=c;--e)a[e][0].length>l&&(c=e+1);let p="",d="",f=!1;for(let e=0;e<h;++e)p+=a[e][0].slice(l)+"\n";for(let e=h;e<c;++e){let[t,n]=a[e];u+=t.length+n.length+1;const c="\r"===n[n.length-1];if(c&&(n=n.slice(0,-1)),n&&t.length<l){const e=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;s(u-n.length-(c?2:1),"BAD_INDENT",e),t=""}o===r.Scalar.BLOCK_LITERAL?(p+=d+t.slice(l)+n,d="\n"):t.length>l||"\t"===n[0]?(" "===d?d="\n":f||"\n"!==d||(d="\n\n"),p+=d+t.slice(l)+n,d="\n",f=!0):""===n?"\n"===d?p+="\n":d="\n":(p+=d+n,d=" ",f=!1)}switch(i.chomp){case"-":break;case"+":for(let e=c;e<a.length;++e)p+="\n"+a[e][0].slice(l);"\n"!==p[p.length-1]&&(p+="\n");break;default:p+="\n"}const m=n+i.length+e.source.length;return{value:p,type:o,comment:i.comment,range:[n,m,m]}}},8992:(e,t,s)=>{"use strict";var r=s(8036),n=s(2276),i=s(2340);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},s,o,a,c){const l=new(c?.nodeClass??r.YAMLSeq)(s.schema);s.atRoot&&(s.atRoot=!1);let u=o.offset,h=null;for(const{start:r,value:c}of o.items){const p=n.resolveProps(r,{indicator:"seq-item-ind",next:c,offset:u,onError:a,startOnNewline:!0});if(!p.found){if(!(p.anchor||p.tag||c)){h=p.end,p.comment&&(l.comment=p.comment);continue}c&&"block-seq"===c.type?a(p.end,"BAD_INDENT","All sequence items must start at the same column"):a(u,"MISSING_CHAR","Sequence item without - indicator")}const d=c?e(s,c,p,a):t(s,p.end,r,null,p,a);s.schema.compat&&i.flowIndentCheck(o.indent,c,a),u=d.range[2],l.items.push(d)}return l.range=[o.offset,u,h??u],l}},1496:(e,t)=>{"use strict";t.resolveEnd=function(e,t,s,r){let n="";if(e){let i=!1,o="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":i=!0;break;case"comment":{s&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";n?n+=o+t:n=t,o="";break}case"newline":n&&(o+=e),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:n,offset:t}}},7904:(e,t,s)=>{"use strict";var r=s(6184),n=s(9971),i=s(576),o=s(8036),a=s(1496),c=s(2276),l=s(1278),u=s(8696);const h="Block collections are not allowed within flow collections",p=e=>e&&("block-map"===e.type||"block-seq"===e.type);t.resolveFlowCollection=function({composeNode:e,composeEmptyNode:t},s,d,f,m){const g="{"===d.start.source,y=g?"flow map":"flow sequence",S=new(m?.nodeClass??(g?i.YAMLMap:o.YAMLSeq))(s.schema);S.flow=!0;const E=s.atRoot;E&&(s.atRoot=!1);let v=d.offset+d.start.source.length;for(let o=0;o<d.items.length;++o){const a=d.items[o],{start:m,key:E,sep:T,value:b}=a,A=c.resolveProps(m,{flow:y,indicator:"explicit-key-ind",next:E??T?.[0],offset:v,onError:f,startOnNewline:!1});if(!A.found){if(!(A.anchor||A.tag||T||b)){0===o&&A.comma?f(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`):o<d.items.length-1&&f(A.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${y}`),A.comment&&(S.comment?S.comment+="\n"+A.comment:S.comment=A.comment),v=A.end;continue}!g&&s.options.strict&&l.containsNewline(E)&&f(E,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===o)A.comma&&f(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`);else if(A.comma||f(A.start,"MISSING_CHAR",`Missing , between ${y} items`),A.comment){let e="";e:for(const t of m)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=S.items[S.items.length-1];r.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,A.comment=A.comment.substring(e.length+1)}}if(g||T||A.found){const r=A.end,o=E?e(s,E,A,f):t(s,r,m,null,A,f);p(E)&&f(o.range,"BLOCK_IN_FLOW",h);const l=c.resolveProps(T??[],{flow:y,indicator:"map-value-ind",next:b,offset:o.range[2],onError:f,startOnNewline:!1});if(l.found){if(!g&&!A.found&&s.options.strict){if(T)for(const e of T){if(e===l.found)break;if("newline"===e.type){f(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}A.start<l.found.offset-1024&&f(l.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else b&&("source"in b&&b.source&&":"===b.source[0]?f(b,"MISSING_CHAR",`Missing space after : in ${y}`):f(l.start,"MISSING_CHAR",`Missing , or : between ${y} items`));const d=b?e(s,b,l,f):l.found?t(s,l.end,T,null,l,f):null;d?p(b)&&f(d.range,"BLOCK_IN_FLOW",h):l.comment&&(o.comment?o.comment+="\n"+l.comment:o.comment=l.comment);const P=new n.Pair(o,d);if(s.options.keepSourceTokens&&(P.srcToken=a),g){const e=S;u.mapIncludes(s,e.items,o)&&f(r,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(P)}else{const e=new i.YAMLMap(s.schema);e.flow=!0,e.items.push(P),S.items.push(e)}v=d?d.range[2]:l.end}else{const r=b?e(s,b,A,f):t(s,A.end,T,null,A,f);S.items.push(r),v=r.range[2],p(b)&&f(r.range,"BLOCK_IN_FLOW",h)}}const T=g?"}":"]",[b,...A]=d.end;let P=v;if(b&&b.source===T)P=b.offset+b.source.length;else{const e=y[0].toUpperCase()+y.substring(1);f(v,E?"MISSING_CHAR":"BAD_INDENT",E?`${e} must end with a ${T}`:`${e} in block collection must be sufficiently indented and end with a ${T}`),b&&1!==b.source.length&&A.unshift(b)}if(A.length>0){const e=a.resolveEnd(A,P,s.options.strict,f);e.comment&&(S.comment?S.comment+="\n"+e.comment:S.comment=e.comment),S.range=[d.offset,P,e.offset]}else S.range=[d.offset,P,P];return S}},7944:(e,t,s)=>{"use strict";var r=s(3976),n=s(1496);function i(e){let t,s;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),s=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let n=r[1],i=" ",o=t.lastIndex;for(s.lastIndex=o;r=s.exec(e);)""===r[1]?"\n"===i?n+=i:i="\n":(n+=i+r[1],i=" "),o=s.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(e),n+i+(r?.[1]??"")}function o(e,t){let s="",r=e[t+1];for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(s+="\n"),r=e[(t+=1)+1];return s||(s=" "),{fold:s,offset:t}}const a={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function c(e,t,s,r){const n=e.substr(t,s),i=n.length===s&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(i)){const n=e.substr(t-2,s+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${n}`),n}return String.fromCodePoint(i)}t.resolveFlowScalar=function(e,t,s){const{offset:l,type:u,source:h,end:p}=e;let d,f;const m=(e,t,r)=>s(l+e,t,r);switch(u){case"scalar":d=r.Scalar.PLAIN,f=function(e,t){let s="";switch(e[0]){case"\t":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":s=`block scalar indicator ${e[0]}`;break;case"@":case"`":s=`reserved character ${e[0]}`}s&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`);return i(e)}(h,m);break;case"single-quoted-scalar":d=r.Scalar.QUOTE_SINGLE,f=function(e,t){"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote");return i(e.slice(1,-1)).replace(/''/g,"'")}(h,m);break;case"double-quoted-scalar":d=r.Scalar.QUOTE_DOUBLE,f=function(e,t){let s="";for(let r=1;r<e.length-1;++r){const n=e[r];if("\r"!==n||"\n"!==e[r+1])if("\n"===n){const{fold:t,offset:n}=o(e,r);s+=t,r=n}else if("\\"===n){let n=e[++r];const i=a[n];if(i)s+=i;else if("\n"===n)for(n=e[r+1];" "===n||"\t"===n;)n=e[1+ ++r];else if("\r"===n&&"\n"===e[r+1])for(n=e[1+ ++r];" "===n||"\t"===n;)n=e[1+ ++r];else if("x"===n||"u"===n||"U"===n){const i={x:2,u:4,U:8}[n];s+=c(e,r+1,i,t),r+=i}else{const n=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${n}`),s+=n}}else if(" "===n||"\t"===n){const t=r;let i=e[r+1];for(;" "===i||"\t"===i;)i=e[1+ ++r];"\n"===i||"\r"===i&&"\n"===e[r+2]||(s+=r>t?e.slice(t,r+1):n)}else s+=n}'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote');return s}(h,m);break;default:return s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${u}`),{value:"",type:null,comment:"",range:[l,l+h.length,l+h.length]}}const g=l+h.length,y=n.resolveEnd(p,g,t,s);return{value:f,type:d,comment:y.comment,range:[l,g,y.offset]}}},2276:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:s,next:r,offset:n,onError:i,startOnNewline:o}){let a=!1,c=o,l=o,u="",h="",p=!1,d=!1,f=!1,m=null,g=null,y=null,S=null,E=null;for(const r of e)switch(f&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),r.type){case"space":!t&&c&&"doc-start"!==s&&"\t"===r.source[0]&&i(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";u?u+=h+e:u=e,h="",c=!1;break}case"newline":c?u?u+=r.source:a=!0:h+=r.source,c=!0,p=!0,(m||g)&&(d=!0),l=!0;break;case"anchor":m&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===E&&(E=r.offset),c=!1,l=!1,f=!0;break;case"tag":g&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===E&&(E=r.offset),c=!1,l=!1,f=!0;break;case s:(m||g)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),S&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),S=r,c=!1,l=!1;break;case"comma":if(t){y&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=r,c=!1,l=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),c=!1,l=!1}const v=e[e.length-1],T=v?v.offset+v.source.length:n;return f&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:S,spaceBefore:a,comment:u,hasNewline:p,hasNewlineAfterProp:d,anchor:m,tag:g,end:T,start:E??T}}},1278:(e,t)=>{"use strict";t.containsNewline=function e(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end)for(const e of t.end)if("newline"===e.type)return!0;return!1;case"flow-collection":for(const s of t.items){for(const e of s.start)if("newline"===e.type)return!0;if(s.sep)for(const e of s.sep)if("newline"===e.type)return!0;if(e(s.key)||e(s.value))return!0}return!1;default:return!0}}},8220:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,s){if(t){null===s&&(s=t.length);for(let r=s-1;r>=0;--r){let s=t[r];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}for(s=t[++r];"space"===s?.type;)e+=s.source.length,s=t[++r];break}}return e}},2340:(e,t,s)=>{"use strict";var r=s(1278);t.flowIndentCheck=function(e,t,s){if("flow-collection"===t?.type){const n=t.end[0];if(n.indent===e&&("]"===n.source||"}"===n.source)&&r.containsNewline(t)){s(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}}},8696:(e,t,s)=>{"use strict";var r=s(6184);t.mapIncludes=function(e,t,s){const{uniqueKeys:n}=e.options;if(!1===n)return!1;const i="function"==typeof n?n:(t,s)=>t===s||r.isScalar(t)&&r.isScalar(s)&&t.value===s.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,s)))}},4055:(e,t,s)=>{"use strict";var r=s(4136),n=s(1760),i=s(6184),o=s(9971),a=s(9268),c=s(9680),l=s(4544),u=s(9376),h=s(6004),p=s(5484),d=s(5276);class f{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===s&&t&&(s=t,t=void 0);const n=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},s);this.options=n;let{version:o}=n;s?._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,s),this.contents=void 0===e?null:this.createNode(e,r,s)}clone(){const e=Object.create(f.prototype,{[i.NODE_TYPE]:{value:i.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){m(this.contents)&&this.contents.add(e)}addIn(e,t){m(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const s=u.anchorNames(this);e.anchor=!t||s.has(t)?u.findNewAnchor(t||"a",s):t}return new r.Alias(e.anchor)}createNode(e,t,s){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,s=t.filter(e).map(String);s.length>0&&(t=t.concat(s)),r=t}else void 0===s&&t&&(s=t,t=void 0);const{aliasDuplicateObjects:n,anchorPrefix:o,flow:a,keepUndefined:c,onTagObj:l,tag:h}=s??{},{onAnchor:d,setAnchors:f,sourceObjects:m}=u.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:n??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:m},y=p.createNode(e,h,g);return a&&i.isCollection(y)&&(y.flow=!0),f(),y}createPair(e,t,s={}){const r=this.createNode(e,null,s),n=this.createNode(t,null,s);return new o.Pair(r,n)}delete(e){return!!m(this.contents)&&this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!m(this.contents)&&this.contents.deleteIn(e)}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&i.isScalar(this.contents)?this.contents.value:this.contents:i.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!i.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?void 0!==this.contents:!!i.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=n.collectionFromPath(this.schema,[e],t):m(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):m(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let s;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new d.Directives({version:"1.1"}),s={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),s={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!s)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new c.Schema(Object.assign(s,t))}}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:r,onAnchor:n,reviver:i}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===s,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},c=a.toJS(this.contents,t??"",o);if("function"==typeof n)for(const{count:e,res:t}of o.anchors.values())n(t,e);return"function"==typeof i?h.applyReviver(i,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return l.stringifyDocument(this,e)}}function m(e){if(i.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=f},9376:(e,t,s)=>{"use strict";var r=s(6184),n=s(3124);function i(e){const t=new Set;return n.visit(e,{Value(e,s){s.anchor&&t.add(s.anchor)}}),t}function o(e,t){for(let s=1;;++s){const r=`${e}${s}`;if(!t.has(r))return r}}t.anchorIsValid=function(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0},t.anchorNames=i,t.createNodeAnchors=function(e,t){const s=[],n=new Map;let a=null;return{onAnchor:r=>{s.push(r),a||(a=i(e));const n=o(t,a);return a.add(n),n},setAnchors:()=>{for(const e of s){const t=n.get(e);if("object"!=typeof t||!t.anchor||!r.isScalar(t.node)&&!r.isCollection(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:n}},t.findNewAnchor=o},6004:(e,t)=>{"use strict";t.applyReviver=function e(t,s,r,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let s=0,r=n.length;s<r;++s){const r=n[s],i=e(t,n,String(s),r);void 0===i?delete n[s]:i!==r&&(n[s]=i)}else if(n instanceof Map)for(const s of Array.from(n.keys())){const r=n.get(s),i=e(t,n,s,r);void 0===i?n.delete(s):i!==r&&n.set(s,i)}else if(n instanceof Set)for(const s of Array.from(n)){const r=e(t,n,s,s);void 0===r?n.delete(s):r!==s&&(n.delete(s),n.add(r))}else for(const[s,r]of Object.entries(n)){const i=e(t,n,s,r);void 0===i?delete n[s]:i!==r&&(n[s]=i)}return t.call(s,r,n)}},5484:(e,t,s)=>{"use strict";var r=s(4136),n=s(6184),i=s(3976);t.createNode=function(e,t,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){const t=s.schema[n.MAP].createNode?.(s.schema,null,s);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:o,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=s;let h;if(o&&e&&"object"==typeof e){if(h=u.get(e),h)return h.anchor||(h.anchor=a(e)),new r.Alias(h.anchor);h={anchor:null,node:null},u.set(e,h)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let p=function(e,t,s){if(t){const e=s.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return s.find((t=>t.identify?.(e)&&!t.format))}(e,t,l.tags);if(!p){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new i.Scalar(e);return h&&(h.node=t),t}p=e instanceof Map?l[n.MAP]:Symbol.iterator in Object(e)?l[n.SEQ]:l[n.MAP]}c&&(c(p),delete s.onTagObj);const d=p?.createNode?p.createNode(s.schema,e,s):"function"==typeof p?.nodeClass?.from?p.nodeClass.from(s.schema,e,s):new i.Scalar(e);return t?d.tag=t:p.default||(d.tag=p.tag),h&&(h.node=d),d}},5276:(e,t,s)=>{"use strict";var r=s(6184),n=s(3124);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class o{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},o.defaultYaml,e),this.tags=Object.assign({},o.defaultTags,t)}clone(){const e=new o(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new o(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:o.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},o.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:o.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},o.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),r=s.shift();switch(r){case"%TAG":{if(2!==s.length&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[e,r]=s;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==s.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=s;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;return t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const s=e.slice(2,-1);return"!"===s||"!!"===s?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),s)}const[,s,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);const n=this.tags[s];if(n)try{return n+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===s?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+e.substring(s.length).replace(/[!,[\]{}]/g,(e=>i[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let i;if(e&&s.length>0&&r.isNode(e.contents)){const t={};n.visit(e.contents,((e,s)=>{r.isNode(s)&&s.tag&&(t[s.tag]=!0)})),i=Object.keys(t)}else i=[];for(const[r,n]of s)"!!"===r&&"tag:yaml.org,2002:"===n||e&&!i.some((e=>e.startsWith(n)))||t.push(`%TAG ${r} ${n}`);return t.join("\n")}}o.defaultYaml={explicit:!1,version:"1.2"},o.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=o},3988:(e,t)=>{"use strict";class s extends Error{constructor(e,t,s,r){super(),this.name=e,this.code=s,this.message=r,this.pos=t}}t.YAMLError=s,t.YAMLParseError=class extends s{constructor(e,t,s){super("YAMLParseError",e,t,s)}},t.YAMLWarning=class extends s{constructor(e,t,s){super("YAMLWarning",e,t,s)}},t.prettifyError=(e,t)=>s=>{if(-1===s.pos[0])return;s.linePos=s.pos.map((e=>t.linePos(e)));const{line:r,col:n}=s.linePos[0];s.message+=` at line ${r}, column ${n}`;let i=n-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,i))){let s=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);s.length>80&&(s=s.substring(0,79)+"…\n"),o=s+o}if(/[^ ]/.test(o)){let e=1;const t=s.linePos[1];t&&t.line===r&&t.col>n&&(e=Math.max(1,Math.min(t.col-n,80-i)));const a=" ".repeat(i)+"^".repeat(e);s.message+=`:\n\n${o}\n${a}\n`}}},6056:(e,t,s)=>{"use strict";var r=s(3264),n=s(4055),i=s(9680),o=s(3988),a=s(4136),c=s(6184),l=s(9971),u=s(3976),h=s(576),p=s(8036),d=s(9987),f=s(1091),m=s(9008),g=s(9744),y=s(6312),S=s(3124);t.Composer=r.Composer,t.Document=n.Document,t.Schema=i.Schema,t.YAMLError=o.YAMLError,t.YAMLParseError=o.YAMLParseError,t.YAMLWarning=o.YAMLWarning,t.Alias=a.Alias,t.isAlias=c.isAlias,t.isCollection=c.isCollection,t.isDocument=c.isDocument,t.isMap=c.isMap,t.isNode=c.isNode,t.isPair=c.isPair,t.isScalar=c.isScalar,t.isSeq=c.isSeq,t.Pair=l.Pair,t.Scalar=u.Scalar,t.YAMLMap=h.YAMLMap,t.YAMLSeq=p.YAMLSeq,t.CST=d,t.Lexer=f.Lexer,t.LineCounter=m.LineCounter,t.Parser=g.Parser,t.parse=y.parse,t.parseAllDocuments=y.parseAllDocuments,t.parseDocument=y.parseDocument,t.stringify=y.stringify,t.visit=S.visit,t.visitAsync=S.visitAsync},3336:(e,t)=>{"use strict";t.debug=function(e,...t){"debug"===e&&console.log(...t)},t.warn=function(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}},4136:(e,t,s)=>{"use strict";var r=s(9376),n=s(3124),i=s(6184),o=s(1988),a=s(9268);class c extends o.NodeBase{constructor(e){super(i.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return n.visit(e,{Node:(e,s)=>{if(s===this)return n.visit.BREAK;s.anchor===this.source&&(t=s)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:r,maxAliasCount:n}=t,i=this.resolve(r);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let o=s.get(i);if(o||(a.toJS(i,null,t),o=s.get(i)),!o||void 0===o.res){throw new ReferenceError("This should not happen: Alias anchor was not resolved?")}if(n>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=l(r,i,s)),o.count*o.aliasCount>n)){throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return o.res}toString(e,t,s){const n=`*${this.source}`;if(e){if(r.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${n} `}return n}}function l(e,t,s){if(i.isAlias(t)){const r=t.resolve(e),n=s&&r&&s.get(r);return n?n.count*n.aliasCount:0}if(i.isCollection(t)){let r=0;for(const n of t.items){const t=l(e,n,s);t>r&&(r=t)}return r}if(i.isPair(t)){const r=l(e,t.key,s),n=l(e,t.value,s);return Math.max(r,n)}return 1}t.Alias=c},1760:(e,t,s)=>{"use strict";var r=s(5484),n=s(6184),i=s(1988);function o(e,t,s){let n=s;for(let e=t.length-1;e>=0;--e){const s=t[e];if("number"==typeof s&&Number.isInteger(s)&&s>=0){const e=[];e[s]=n,n=e}else n=new Map([[s,n]])}return r.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const a=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class c extends i.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>n.isNode(t)||n.isPair(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{const[s,...r]=e,i=this.get(s,!0);if(n.isCollection(i))i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);this.set(s,o(this.schema,r,t))}}}deleteIn(e){const[t,...s]=e;if(0===s.length)return this.delete(t);const r=this.get(t,!0);if(n.isCollection(r))return r.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...r]=e,i=this.get(s,!0);return 0===r.length?!t&&n.isScalar(i)?i.value:i:n.isCollection(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!n.isPair(t))return!1;const s=t.value;return null==s||e&&n.isScalar(s)&&null==s.value&&!s.commentBefore&&!s.comment&&!s.tag}))}hasIn(e){const[t,...s]=e;if(0===s.length)return this.has(t);const r=this.get(t,!0);return!!n.isCollection(r)&&r.hasIn(s)}setIn(e,t){const[s,...r]=e;if(0===r.length)this.set(s,t);else{const e=this.get(s,!0);if(n.isCollection(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);this.set(s,o(this.schema,r,t))}}}}c.maxFlowStringSingleLineLength=60,t.Collection=c,t.collectionFromPath=o,t.isEmptyPath=a},1988:(e,t,s)=>{"use strict";var r=s(6004),n=s(6184),i=s(9268);t.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:o,reviver:a}={}){if(!n.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},l=i.toJS(this,"",c);if("function"==typeof o)for(const{count:e,res:t}of c.anchors.values())o(t,e);return"function"==typeof a?r.applyReviver(a,{"":l},"",l):l}}},9971:(e,t,s)=>{"use strict";var r=s(5484),n=s(1192),i=s(7220),o=s(6184);class a{constructor(e,t=null){Object.defineProperty(this,o.NODE_TYPE,{value:o.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return o.isNode(t)&&(t=t.clone(e)),o.isNode(s)&&(s=s.clone(e)),new a(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,s,this)}toString(e,t,s){return e?.doc?n.stringifyPair(this,e,t,s):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,s){const n=r.createNode(e,void 0,s),i=r.createNode(t,void 0,s);return new a(n,i)}},3976:(e,t,s)=>{"use strict";var r=s(6184),n=s(1988),i=s(9268);class o extends n.NodeBase{constructor(e){super(r.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:i.toJS(this.value,e,t)}toString(){return String(this.value)}}o.BLOCK_FOLDED="BLOCK_FOLDED",o.BLOCK_LITERAL="BLOCK_LITERAL",o.PLAIN="PLAIN",o.QUOTE_DOUBLE="QUOTE_DOUBLE",o.QUOTE_SINGLE="QUOTE_SINGLE",t.Scalar=o,t.isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e},576:(e,t,s)=>{"use strict";var r=s(6088),n=s(7220),i=s(1760),o=s(6184),a=s(9971),c=s(3976);function l(e,t){const s=o.isScalar(t)?t.value:t;for(const r of e)if(o.isPair(r)){if(r.key===t||r.key===s)return r;if(o.isScalar(r.key)&&r.key.value===s)return r}}class u extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(o.MAP,e),this.items=[]}static from(e,t,s){const{keepUndefined:r,replacer:n}=s,i=new this(e),o=(e,o)=>{if("function"==typeof n)o=n.call(t,e,o);else if(Array.isArray(n)&&!n.includes(e))return;(void 0!==o||r)&&i.items.push(a.createPair(e,o,s))};if(t instanceof Map)for(const[e,s]of t)o(e,s);else if(t&&"object"==typeof t)for(const e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let s;s=o.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const r=l(this.items,s.key),n=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${s.key} already set`);o.isScalar(r.value)&&c.isScalarValue(s.value)?r.value.value=s.value:r.value=s.value}else if(n){const e=this.items.findIndex((e=>n(s,e)<0));-1===e?this.items.push(s):this.items.splice(e,0,s)}else this.items.push(s)}delete(e){const t=l(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const s=l(this.items,e),r=s?.value;return(!t&&o.isScalar(r)?r.value:r)??void 0}has(e){return!!l(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,s){const r=s?new s:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)n.addPairToJSMap(t,r,e);return r}toString(e,t,s){if(!e)return JSON.stringify(this);for(const e of this.items)if(!o.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),r.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}t.YAMLMap=u,t.findPair=l},8036:(e,t,s)=>{"use strict";var r=s(5484),n=s(6088),i=s(1760),o=s(6184),a=s(3976),c=s(9268);class l extends i.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(o.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=u(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const s=u(e);if("number"!=typeof s)return;const r=this.items[s];return!t&&o.isScalar(r)?r.value:r}has(e){const t=u(e);return"number"==typeof t&&t<this.items.length}set(e,t){const s=u(e);if("number"!=typeof s)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[s];o.isScalar(r)&&a.isScalarValue(t)?r.value=t:this.items[s]=t}toJSON(e,t){const s=[];t?.onCreate&&t.onCreate(s);let r=0;for(const e of this.items)s.push(c.toJS(e,String(r++),t));return s}toString(e,t,s){return e?n.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){const{replacer:n}=s,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if("function"==typeof n){const s=t instanceof Set?o:String(e++);o=n.call(t,s,o)}i.items.push(r.createNode(o,void 0,s))}}return i}}function u(e){let t=o.isScalar(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=l},7220:(e,t,s)=>{"use strict";var r=s(3336),n=s(1952),i=s(6184),o=s(3976),a=s(9268);const c=e=>"<<"===e||i.isScalar(e)&&"<<"===e.value&&(!e.type||e.type===o.Scalar.PLAIN);function l(e,t,s){const r=e&&i.isAlias(s)?s.resolve(e.doc):s;if(!i.isMap(r))throw new Error("Merge sources must be maps or map aliases");const n=r.toJSON(null,e,Map);for(const[e,s]of n)t instanceof Map?t.has(e)||t.set(e,s):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}t.addPairToJSMap=function(e,t,{key:s,value:o}){if(e?.doc.schema.merge&&c(s))if(o=i.isAlias(o)?o.resolve(e.doc):o,i.isSeq(o))for(const s of o.items)l(e,t,s);else if(Array.isArray(o))for(const s of o)l(e,t,s);else l(e,t,o);else{const c=a.toJS(s,"",e);if(t instanceof Map)t.set(c,a.toJS(o,c,e));else if(t instanceof Set)t.add(c);else{const l=function(e,t,s){if(null===t)return"";if("object"!=typeof t)return String(t);if(i.isNode(e)&&s?.doc){const t=n.createStringifyContext(s.doc,{});t.anchors=new Set;for(const e of s.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const i=e.toString(t);if(!s.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+'..."'),r.warn(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return i}return JSON.stringify(t)}(s,c,e),u=a.toJS(o,l,e);l in t?Object.defineProperty(t,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[l]=u}}return t}},6184:(e,t)=>{"use strict";const s=Symbol.for("yaml.alias"),r=Symbol.for("yaml.document"),n=Symbol.for("yaml.map"),i=Symbol.for("yaml.pair"),o=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),l=e=>!!e&&"object"==typeof e&&e[c]===o;function u(e){if(e&&"object"==typeof e)switch(e[c]){case n:case a:return!0}return!1}t.ALIAS=s,t.DOC=r,t.MAP=n,t.NODE_TYPE=c,t.PAIR=i,t.SCALAR=o,t.SEQ=a,t.hasAnchor=e=>(l(e)||u(e))&&!!e.anchor,t.isAlias=e=>!!e&&"object"==typeof e&&e[c]===s,t.isCollection=u,t.isDocument=e=>!!e&&"object"==typeof e&&e[c]===r,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===n,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case s:case n:case o:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===i,t.isScalar=l,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},9268:(e,t,s)=>{"use strict";var r=s(6184);t.toJS=function e(t,s,n){if(Array.isArray(t))return t.map(((t,s)=>e(t,String(s),n)));if(t&&"function"==typeof t.toJSON){if(!n||!r.hasAnchor(t))return t.toJSON(s,n);const e={aliasCount:0,count:1,res:void 0};n.anchors.set(t,e),n.onCreate=t=>{e.res=t,delete n.onCreate};const i=t.toJSON(s,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof t||n?.keep?t:Number(t)}},756:(e,t,s)=>{"use strict";var r=s(2032),n=s(7944),i=s(3988),o=s(3584);function a(e,t){if(t)for(const s of t)switch(s.type){case"space":case"comment":e.push(s);break;case"newline":return e.push(s),!0}return!1}function c(e,t,s){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=s,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let n=t.length;"block-scalar-header"===e.props[0].type&&(n-=e.props[0].source.length);for(const e of r)e.offset+=n;delete e.props,Object.assign(e,{type:s,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:s,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,n="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:s,indent:r,source:t,end:n})}}}t.createScalarToken=function(e,t){const{implicitKey:s=!1,indent:r,inFlow:n=!1,offset:i=-1,type:c="PLAIN"}=t,l=o.stringifyString({type:c,value:e},{implicitKey:s,indent:r>0?" ".repeat(r):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(l[0]){case"|":case">":{const e=l.indexOf("\n"),t=l.substring(0,e),s=l.substring(e+1)+"\n",n=[{type:"block-scalar-header",offset:i,indent:r,source:t}];return a(n,u)||n.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:i,indent:r,props:n,source:s}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:l,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:l,end:u};default:return{type:"scalar",offset:i,indent:r,source:l,end:u}}},t.resolveAsScalar=function(e,t=!0,s){if(e){const o=(e,t,r)=>{const n="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!s)throw new i.YAMLParseError([n,n+1],t,r);s(n,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return n.resolveFlowScalar(e,t,o);case"block-scalar":return r.resolveBlockScalar(e,t,o)}}return null},t.setScalarValue=function(e,t,s={}){let{afterKey:r=!1,implicitKey:n=!1,inFlow:i=!1,type:l}=s,u="indent"in e?e.indent:null;if(r&&"number"==typeof u&&(u+=2),!l)switch(e.type){case"single-quoted-scalar":l="QUOTE_SINGLE";break;case"double-quoted-scalar":l="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");l=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:l="PLAIN"}const h=o.stringifyString({type:l,value:t},{implicitKey:n||null===u,indent:null!==u&&u>0?" ".repeat(u):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(h[0]){case"|":case">":!function(e,t){const s=t.indexOf("\n"),r=t.substring(0,s),n=t.substring(s+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=r,e.source=n}else{const{offset:t}=e,s="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:t,indent:s,source:r}];a(i,"end"in e?e.end:void 0)||i.push({type:"newline",offset:-1,indent:s,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:s,props:i,source:n})}}(e,h);break;case'"':c(e,h,"double-quoted-scalar");break;case"'":c(e,h,"single-quoted-scalar");break;default:c(e,h,"scalar")}}},6252:(e,t)=>{"use strict";function s(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=s(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const s of e.items)t+=r(s);return t}case"flow-collection":{let t=e.start.source;for(const s of e.items)t+=r(s);for(const s of e.end)t+=s.source;return t}case"document":{let t=r(e);if(e.end)for(const s of e.end)t+=s.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const s of e.end)t+=s.source;return t}}}function r({start:e,key:t,sep:r,value:n}){let i="";for(const t of e)i+=t.source;if(t&&(i+=s(t)),r)for(const e of r)i+=e.source;return n&&(i+=s(n)),i}t.stringify=e=>"type"in e?s(e):r(e)},7512:(e,t)=>{"use strict";const s=Symbol("break visit"),r=Symbol("skip children"),n=Symbol("remove item");function i(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),o(Object.freeze([]),e,t)}function o(e,t,r){let i=r(t,e);if("symbol"==typeof i)return i;for(const a of["key","value"]){const c=t[a];if(c&&"items"in c){for(let t=0;t<c.items.length;++t){const i=o(Object.freeze(e.concat([[a,t]])),c.items[t],r);if("number"==typeof i)t=i-1;else{if(i===s)return s;i===n&&(c.items.splice(t,1),t-=1)}}"function"==typeof i&&"key"===a&&(i=i(t,e))}}return"function"==typeof i?i(t,e):i}i.BREAK=s,i.SKIP=r,i.REMOVE=n,i.itemAtPath=(e,t)=>{let s=e;for(const[e,r]of t){const t=s?.[e];if(!t||!("items"in t))return;s=t.items[r]}return s},i.parentCollection=(e,t)=>{const s=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],n=s?.[r];if(n&&"items"in n)return n;throw new Error("Parent collection not found")},t.visit=i},9987:(e,t,s)=>{"use strict";var r=s(756),n=s(6252),i=s(7512);t.createScalarToken=r.createScalarToken,t.resolveAsScalar=r.resolveAsScalar,t.setScalarValue=r.setScalarValue,t.stringify=n.stringify,t.visit=i.visit,t.BOM="\ufeff",t.DOCUMENT="",t.FLOW_END="",t.SCALAR="",t.isCollection=e=>!!e&&"items"in e,t.isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),t.prettyToken=function(e){switch(e){case"\ufeff":return"<BOM>";case"":return"<DOC>";case"":return"<FLOW_END>";case"":return"<SCALAR>";default:return JSON.stringify(e)}},t.tokenType=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},1091:(e,t,s)=>{"use strict";var r=s(9987);function n(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const i="0123456789ABCDEFabcdef".split(""),o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),a=",[]{}".split(""),c=" ,[]{}\n\r\t".split(""),l=e=>!e||c.includes(e);t.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let s=this.next??"stream";for(;s&&(t||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;for(;" "===t;)t=this.buffer[++s+e];if("\r"===t){const t=this.buffer[s+e+1];if("\n"===t||!t&&!this.atEnd)return e+s+1}return"\n"===t||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&n(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===r.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const s=e.indexOf("#");if(-1!==s){const r=e[s-1];" "!==r&&"\t"!==r||(t=s-1)}for(;;){const s=e[t-1];if(" "!==s&&"\t"!==s)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield r.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&n(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&n(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!n(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&n(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(l),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=s=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const i=this.getLine();if(null===i)return this.setNext("flow");if(-1!==s&&s<this.indentNext&&"#"!==i[0]||0===s&&(i.startsWith("---")||i.startsWith("..."))&&n(i[3])){if(!(s===this.indentNext-1&&1===this.flowLevel&&("]"===i[0]||"}"===i[0])))return this.flowLevel=0,yield r.FLOW_END,yield*this.parseLineStart()}let o=0;for(;","===i[o];)o+=(yield*this.pushCount(1)),o+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(o+=(yield*this.pushIndicators()),i[o]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(l),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||n(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const s=this.buffer.substring(0,t);let r=s.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=s.indexOf("\n",e)}-1!==r&&(t=r-("\r"===s[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>n(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,s=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":s+=1;break;case"\n":t=r,s=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(s>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=s:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const n=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+s>n))break;t=e}return yield r.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,s=this.pos-1,i=this.pos-1;for(;t=this.buffer[++i];)if(":"===t){const t=this.buffer[i+1];if(n(t)||e&&","===t)break;s=i}else if(n(t)){let r=this.buffer[i+1];if("\r"===t&&("\n"===r?(i+=1,t="\n",r=this.buffer[i+1]):s=i),"#"===r||e&&a.includes(r))break;if("\n"===t){const e=this.continueScalar(i+1);if(-1===e)break;i=Math.max(i,e-2)}}else{if(e&&a.includes(t))break;s=i}return t||this.atEnd?(yield r.SCALAR,yield*this.pushToIndex(s+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(l))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(n(t)||e&&a.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(o.includes(t))t=this.buffer[++e];else{if("%"!==t||!i.includes(this.buffer[e+1])||!i.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,s=this.pos-1;do{t=this.buffer[++s]}while(" "===t||e&&"\t"===t);const r=s-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=s),r}*pushUntil(e){let t=this.pos,s=this.buffer[t];for(;!e(s);)s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},9008:(e,t)=>{"use strict";t.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,s=this.lineStarts.length;for(;t<s;){const r=t+s>>1;this.lineStarts[r]<e?t=r+1:s=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};return{line:t,col:e-this.lineStarts[t-1]+1}}}}},9744:(e,t,s)=>{"use strict";var r=s(9987),n=s(1091);function i(e,t){for(let s=0;s<e.length;++s)if(e[s].type===t)return!0;return!1}function o(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function a(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function c(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function l(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function u(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||i(t.start,"explicit-key-ind")||i(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,a(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}t.Parser=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new n.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const s of this.lexer.lex(e,t))yield*this.next(s);t||(yield*this.end())}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",r.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=r.tokenType(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&u(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const s=e.items[e.items.length-1];if(s.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!s.sep)return Object.assign(s,{key:t,sep:[]}),void(this.onKeyLine=!i(s.start,"explicit-key-ind"));s.value=t;break}case"block-seq":{const s=e.items[e.items.length-1];s.value?e.items.push({start:[],value:t}):s.value=t;break}case"flow-collection":{const s=e.items[e.items.length-1];return void(!s||s.value?e.items.push({start:[],key:t,sep:[]}):s.sep?s.value=t:Object.assign(s,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const s=t.items[t.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&-1===o(s.start)&&(0===t.indent||s.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=s.start:e.items.push({start:s.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==o(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=l(c(this.peek(2)));let s;e.end?(s=e.end,s.push(this.sourceToken),delete e.end):s=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const s="end"in t.value?t.value.end:void 0,r=Array.isArray(s)?s[s.length-1]:void 0;"comment"===r?.type?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const s=e.items[e.items.length-2],r=s?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const s=!this.onKeyLine&&this.indent===e.indent&&t.sep;let r=[];if(s&&t.sep&&!t.value){const s=[];for(let r=0;r<t.sep.length;++r){const n=t.sep[r];switch(n.type){case"newline":s.push(r);break;case"space":break;case"comment":n.indent>e.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(r=t.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":return void(s||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||i(t.start,"explicit-key-ind")?s||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(i(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(a(t.key)&&!i(t.sep,"newline")){const e=l(t.start),s=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:s,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(i(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=l(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:r,key:null,sep:[this.sourceToken]}):i(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(s||t.value?(e.items.push({start:r,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0))}default:{const n=this.startBlockValue(e);if(n)return s&&"block-seq"!==n.type&&i(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(n)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const s="end"in t.value?t.value.end:void 0,r=Array.isArray(s)?s[s.length-1]:void 0;"comment"===r?.type?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const s=e.items[e.items.length-2],r=s?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||i(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:s,sep:[]}):t.sep?this.stack.push(s):Object.assign(t,{key:s,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const s=l(c(t));u(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=l(c(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=l(c(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&(!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type)))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}},6312:(e,t,s)=>{"use strict";var r=s(3264),n=s(4055),i=s(3988),o=s(3336),a=s(9008),c=s(9744);function l(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new a.LineCounter||null,prettyErrors:t}}function u(e,t={}){const{lineCounter:s,prettyErrors:n}=l(t),o=new c.Parser(s?.addNewLine),a=new r.Composer(t);let u=null;for(const t of a.compose(o.parse(e),!0,e.length))if(u){if("silent"!==u.options.logLevel){u.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else u=t;return n&&s&&(u.errors.forEach(i.prettifyError(e,s)),u.warnings.forEach(i.prettifyError(e,s))),u}t.parse=function(e,t,s){let r;"function"==typeof t?r=t:void 0===s&&t&&"object"==typeof t&&(s=t);const n=u(e,s);if(!n)return null;if(n.warnings.forEach((e=>o.warn(n.options.logLevel,e))),n.errors.length>0){if("silent"!==n.options.logLevel)throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:r},s))},t.parseAllDocuments=function(e,t={}){const{lineCounter:s,prettyErrors:n}=l(t),o=new c.Parser(s?.addNewLine),a=new r.Composer(t),u=Array.from(a.compose(o.parse(e)));if(n&&s)for(const t of u)t.errors.forEach(i.prettifyError(e,s)),t.warnings.forEach(i.prettifyError(e,s));return u.length>0?u:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=u,t.stringify=function(e,t,s){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===s&&t&&(s=t),"string"==typeof s&&(s=s.length),"number"==typeof s){const e=Math.round(s);s=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=s??t??{};if(!e)return}return new n.Document(e,r,s).toString(s)}},9680:(e,t,s)=>{"use strict";var r=s(6184),n=s(6776),i=s(8320),o=s(4576),a=s(4228);const c=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class l{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:l,schema:u,sortMapEntries:h,toStringDefaults:p}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null,this.merge=!!s,this.name="string"==typeof u&&u||"core",this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(t,this.name),this.toStringOptions=p??null,Object.defineProperty(this,r.MAP,{value:n.map}),Object.defineProperty(this,r.SCALAR,{value:o.string}),Object.defineProperty(this,r.SEQ,{value:i.seq}),this.sortMapEntries="function"==typeof h?h:!0===h?c:null}clone(){const e=Object.create(l.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}t.Schema=l},6776:(e,t,s)=>{"use strict";var r=s(6184),n=s(576);const i={collection:"map",default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(r.isMap(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,s)=>n.YAMLMap.from(e,t,s)};t.map=i},7840:(e,t,s)=>{"use strict";var r=s(3976);const n={identify:e=>null==e,createNode:()=>new r.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new r.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&n.test.test(e)?e:t.options.nullStr};t.nullTag=n},8320:(e,t,s)=>{"use strict";var r=s(6184),n=s(8036);const i={collection:"seq",default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(r.isSeq(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,s)=>n.YAMLSeq.from(e,t,s)};t.seq=i},4576:(e,t,s)=>{"use strict";var r=s(3584);const n={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,s,n)=>(t=Object.assign({actualString:!0},t),r.stringifyString(e,t,s,n))};t.string=n},7408:(e,t,s)=>{"use strict";var r=s(3976);const n={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new r.Scalar("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},s){if(e&&n.test.test(e)){if(t===("t"===e[0]||"T"===e[0]))return e}return t?s.options.trueStr:s.options.falseStr}};t.boolTag=n},5920:(e,t,s)=>{"use strict";var r=s(3976),n=s(1388);const i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new r.Scalar(parseFloat(e)),s=e.indexOf(".");return-1!==s&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-s-1),t},stringify:n.stringifyNumber};t.float=a,t.floatExp=o,t.floatNaN=i},3855:(e,t,s)=>{"use strict";var r=s(1388);const n=e=>"bigint"==typeof e||Number.isInteger(e),i=(e,t,s,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),s);function o(e,t,s){const{value:i}=e;return n(i)&&i>=0?s+i.toString(t):r.stringifyNumber(e)}const a={identify:e=>n(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,s)=>i(e,2,8,s),stringify:e=>o(e,8,"0o")},c={identify:n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,s)=>i(e,0,10,s),stringify:r.stringifyNumber},l={identify:e=>n(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,s)=>i(e,2,16,s),stringify:e=>o(e,16,"0x")};t.int=c,t.intHex=l,t.intOct=a},9632:(e,t,s)=>{"use strict";var r=s(6776),n=s(7840),i=s(8320),o=s(4576),a=s(7408),c=s(5920),l=s(3855);const u=[r.map,i.seq,o.string,n.nullTag,a.boolTag,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float];t.schema=u},2684:(e,t,s)=>{"use strict";var r=s(3976),n=s(6776),i=s(8320);function o(e){return"bigint"==typeof e||Number.isInteger(e)}const a=({value:e})=>JSON.stringify(e),c=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:a},{identify:e=>null==e,createNode:()=>new r.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:a},{identify:o,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:s})=>s?BigInt(e):parseInt(e,10),stringify:({value:e})=>o(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}],l={default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},u=[n.map,i.seq].concat(c,l);t.schema=u},4228:(e,t,s)=>{"use strict";var r=s(6776),n=s(7840),i=s(8320),o=s(4576),a=s(7408),c=s(5920),l=s(3855),u=s(9632),h=s(2684),p=s(8456),d=s(4667),f=s(324),m=s(1400),g=s(2160),y=s(3256);const S=new Map([["core",u.schema],["failsafe",[r.map,i.seq,o.string]],["json",h.schema],["yaml11",m.schema],["yaml-1.1",m.schema]]),E={binary:p.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:y.floatTime,int:l.int,intHex:l.intHex,intOct:l.intOct,intTime:y.intTime,map:r.map,null:n.nullTag,omap:d.omap,pairs:f.pairs,seq:i.seq,set:g.set,timestamp:y.timestamp},v={"tag:yaml.org,2002:binary":p.binary,"tag:yaml.org,2002:omap":d.omap,"tag:yaml.org,2002:pairs":f.pairs,"tag:yaml.org,2002:set":g.set,"tag:yaml.org,2002:timestamp":y.timestamp};t.coreKnownTags=v,t.getTags=function(e,t){let s=S.get(t);if(!s){if(!Array.isArray(e)){const e=Array.from(S.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}s=[]}if(Array.isArray(e))for(const t of e)s=s.concat(t);else"function"==typeof e&&(s=e(s.slice()));return s.map((e=>{if("string"!=typeof e)return e;const t=E[e];if(t)return t;const s=Object.keys(E).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${s}`)}))}},8456:(e,t,s)=>{"use strict";var r=s(3976),n=s(3584);const i={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),s=new Uint8Array(t.length);for(let e=0;e<t.length;++e)s[e]=t.charCodeAt(e);return s}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:s},i,o,a){const c=s;let l;if("function"==typeof Buffer)l=c instanceof Buffer?c.toString("base64"):Buffer.from(c.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<c.length;++t)e+=String.fromCharCode(c[t]);l=btoa(e)}}if(t||(t=r.Scalar.BLOCK_LITERAL),t!==r.Scalar.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),s=Math.ceil(l.length/e),n=new Array(s);for(let t=0,r=0;t<s;++t,r+=e)n[t]=l.substr(r,e);l=n.join(t===r.Scalar.BLOCK_LITERAL?"\n":" ")}return n.stringifyString({comment:e,type:t,value:l},i,o,a)}};t.binary=i},5156:(e,t,s)=>{"use strict";var r=s(3976);function n({value:e,source:t},s){return t&&(e?i:o).test.test(t)?t:e?s.options.trueStr:s.options.falseStr}const i={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new r.Scalar(!0),stringify:n},o={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new r.Scalar(!1),stringify:n};t.falseTag=o,t.trueTag=i},7916:(e,t,s)=>{"use strict";var r=s(3976),n=s(1388);const i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new r.Scalar(parseFloat(e.replace(/_/g,""))),s=e.indexOf(".");if(-1!==s){const r=e.substring(s+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:n.stringifyNumber};t.float=a,t.floatExp=o,t.floatNaN=i},1448:(e,t,s)=>{"use strict";var r=s(1388);const n=e=>"bigint"==typeof e||Number.isInteger(e);function i(e,t,s,{intAsBigInt:r}){const n=e[0];if("-"!==n&&"+"!==n||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(s){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===n?BigInt(-1)*t:t}const i=parseInt(e,s);return"-"===n?-1*i:i}function o(e,t,s){const{value:i}=e;if(n(i)){const e=i.toString(t);return i<0?"-"+s+e.substr(1):s+e}return r.stringifyNumber(e)}const a={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,s)=>i(e,2,2,s),stringify:e=>o(e,2,"0b")},c={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,s)=>i(e,1,8,s),stringify:e=>o(e,8,"0")},l={identify:n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,s)=>i(e,0,10,s),stringify:r.stringifyNumber},u={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,s)=>i(e,2,16,s),stringify:e=>o(e,16,"0x")};t.int=l,t.intBin=a,t.intHex=u,t.intOct=c},4667:(e,t,s)=>{"use strict";var r=s(6184),n=s(9268),i=s(576),o=s(8036),a=s(324);class c extends o.YAMLSeq{constructor(){super(),this.add=i.YAMLMap.prototype.add.bind(this),this.delete=i.YAMLMap.prototype.delete.bind(this),this.get=i.YAMLMap.prototype.get.bind(this),this.has=i.YAMLMap.prototype.has.bind(this),this.set=i.YAMLMap.prototype.set.bind(this),this.tag=c.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;t?.onCreate&&t.onCreate(s);for(const e of this.items){let i,o;if(r.isPair(e)?(i=n.toJS(e.key,"",t),o=n.toJS(e.value,i,t)):i=n.toJS(e,"",t),s.has(i))throw new Error("Ordered maps must not include duplicate keys");s.set(i,o)}return s}static from(e,t,s){const r=a.createPairs(e,t,s),n=new this;return n.items=r.items,n}}c.tag="tag:yaml.org,2002:omap";const l={collection:"seq",identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const s=a.resolvePairs(e,t),n=[];for(const{key:e}of s.items)r.isScalar(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new c,s)},createNode:(e,t,s)=>c.from(e,t,s)};t.YAMLOMap=c,t.omap=l},324:(e,t,s)=>{"use strict";var r=s(6184),n=s(9971),i=s(3976),o=s(8036);function a(e,t){if(r.isSeq(e))for(let s=0;s<e.items.length;++s){let o=e.items[s];if(!r.isPair(o)){if(r.isMap(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const e=o.items[0]||new n.Pair(new i.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){const t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[s]=r.isPair(o)?o:new n.Pair(o)}}else t("Expected a sequence for this tag");return e}function c(e,t,s){const{replacer:r}=s,i=new o.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,c;if("function"==typeof r&&(e=r.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);o=e[0],c=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);o=t[0],c=e[o]}else o=e;i.items.push(n.createPair(o,c,s))}return i}const l={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:c};t.createPairs=c,t.pairs=l,t.resolvePairs=a},1400:(e,t,s)=>{"use strict";var r=s(6776),n=s(7840),i=s(8320),o=s(4576),a=s(8456),c=s(5156),l=s(7916),u=s(1448),h=s(4667),p=s(324),d=s(2160),f=s(3256);const m=[r.map,i.seq,o.string,n.nullTag,c.trueTag,c.falseTag,u.intBin,u.intOct,u.int,u.intHex,l.floatNaN,l.floatExp,l.float,a.binary,h.omap,p.pairs,d.set,f.intTime,f.floatTime,f.timestamp];t.schema=m},2160:(e,t,s)=>{"use strict";var r=s(6184),n=s(9971),i=s(576);class o extends i.YAMLMap{constructor(e){super(e),this.tag=o.tag}add(e){let t;t=r.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new n.Pair(e.key,null):new n.Pair(e,null);i.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const s=i.findPair(this.items,e);return!t&&r.isPair(s)?r.isScalar(s.key)?s.key.value:s.key:s}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const s=i.findPair(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:r}=s,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(n.createPair(e,null,s));return i}}o.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:o,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,s)=>o.from(e,t,s),resolve(e,t){if(r.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new o,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=o,t.set=a},3256:(e,t,s)=>{"use strict";var r=s(1388);function n(e,t){const s=e[0],r="-"===s||"+"===s?e.substring(1):e,n=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*n(60)+n(t)),n(0));return"-"===s?n(-1)*i:i}function i(e){let{value:t}=e,s=e=>e;if("bigint"==typeof t)s=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return r.stringifyNumber(e);let n="";t<0&&(n="-",t*=s(-1));const i=s(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),n+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const o={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:s})=>n(e,s),stringify:i},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:i},c={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(c.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,s,r,i,o,a,l]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let h=Date.UTC(s,r-1,i,o||0,a||0,l||0,u);const p=t[8];if(p&&"Z"!==p){let e=n(p,!1);Math.abs(e)<30&&(e*=60),h-=6e4*e}return new Date(h)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=a,t.intTime=o,t.timestamp=c},1796:(e,t)=>{"use strict";const s="block",r="quoted";function n(e,t){let s=e[t+1];for(;" "===s||"\t"===s;){do{s=e[t+=1]}while(s&&"\n"!==s);s=e[t+1]}return t}t.FOLD_BLOCK=s,t.FOLD_FLOW="flow",t.FOLD_QUOTED=r,t.foldFlowLines=function(e,t,i="flow",{indentAtStart:o,lineWidth:a=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!a||a<0)return e;const h=Math.max(1+c,1+a-t.length);if(e.length<=h)return e;const p=[],d={};let f,m,g=a-t.length;"number"==typeof o&&(o>a-Math.max(2,c)?p.push(0):g=a-o);let y=!1,S=-1,E=-1,v=-1;i===s&&(S=n(e,S),-1!==S&&(g=S+h));for(let t;t=e[S+=1];){if(i===r&&"\\"===t){switch(E=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}v=S}if("\n"===t)i===s&&(S=n(e,S)),g=S+h,f=void 0;else{if(" "===t&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[S+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=S)}if(S>=g)if(f)p.push(f),g=f+h,f=void 0;else if(i===r){for(;" "===m||"\t"===m;)m=t,t=e[S+=1],y=!0;const s=S>v+1?S-2:E-1;if(d[s])return e;p.push(s),d[s]=!0,g=s+h,f=void 0}else y=!0}m=t}if(y&&u&&u(),0===p.length)return e;l&&l();let T=e.slice(0,p[0]);for(let s=0;s<p.length;++s){const n=p[s],o=p[s+1]||e.length;0===n?T=`\n${t}${e.slice(0,o)}`:(i===r&&d[n]&&(T+=`${e[n]}\\`),T+=`\n${t}${e.slice(n+1,o)}`)}return T}},1952:(e,t,s)=>{"use strict";var r=s(9376),n=s(6184),i=s(1296),o=s(3584);t.createStringifyContext=function(e,t){const s=Object.assign({blockQuote:!0,commentString:i.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(s.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof s.indent?" ".repeat(s.indent):" ",inFlow:r,options:s}},t.stringify=function(e,t,s,i){if(n.isPair(e))return e.toString(t,s,i);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let a;const c=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>a=e});a||(a=function(e,t){if(t.tag){const s=e.filter((e=>e.tag===t.tag));if(s.length>0)return s.find((e=>e.format===t.format))??s[0]}let s,r;if(n.isScalar(t)){r=t.value;const n=e.filter((e=>e.identify?.(r)));s=n.find((e=>e.format===t.format))??n.find((e=>!e.format))}else r=t,s=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!s)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return s}(t.doc.schema.tags,c));const l=function(e,t,{anchors:s,doc:i}){if(!i.directives)return"";const o=[],a=(n.isScalar(e)||n.isCollection(e))&&e.anchor;a&&r.anchorIsValid(a)&&(s.add(a),o.push(`&${a}`));const c=e.tag?e.tag:t.default?null:t.tag;return c&&o.push(i.directives.tagString(c)),o.join(" ")}(c,a,t);l.length>0&&(t.indentAtStart=(t.indentAtStart??0)+l.length+1);const u="function"==typeof a.stringify?a.stringify(c,t,s,i):n.isScalar(c)?o.stringifyString(c,t,s,i):c.toString(t,s,i);return l?n.isScalar(c)||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${t.indent}${u}`:u}},6088:(e,t,s)=>{"use strict";var r=s(1760),n=s(6184),i=s(1952),o=s(1296);function a({comment:e,items:t},s,{blockItemPrefix:r,flowChars:a,itemIndent:c,onChompKeep:u,onComment:h}){const{indent:p,options:{commentString:d}}=s,f=Object.assign({},s,{indent:c,type:null});let m=!1;const g=[];for(let e=0;e<t.length;++e){const a=t[e];let u=null;if(n.isNode(a))!m&&a.spaceBefore&&g.push(""),l(s,g,a.commentBefore,m),a.comment&&(u=a.comment);else if(n.isPair(a)){const e=n.isNode(a.key)?a.key:null;e&&(!m&&e.spaceBefore&&g.push(""),l(s,g,e.commentBefore,m))}m=!1;let h=i.stringify(a,f,(()=>u=null),(()=>m=!0));u&&(h+=o.lineComment(h,c,d(u))),m&&u&&(m=!1),g.push(r+h)}let y;if(0===g.length)y=a.start+a.end;else{y=g[0];for(let e=1;e<g.length;++e){const t=g[e];y+=t?`\n${p}${t}`:"\n"}}return e?(y+="\n"+o.indentComment(d(e),p),h&&h()):m&&u&&u(),y}function c({comment:e,items:t},s,{flowChars:a,itemIndent:c,onComment:u}){const{indent:h,indentStep:p,flowCollectionPadding:d,options:{commentString:f}}=s;c+=p;const m=Object.assign({},s,{indent:c,inFlow:!0,type:null});let g=!1,y=0;const S=[];for(let e=0;e<t.length;++e){const r=t[e];let a=null;if(n.isNode(r))r.spaceBefore&&S.push(""),l(s,S,r.commentBefore,!1),r.comment&&(a=r.comment);else if(n.isPair(r)){const e=n.isNode(r.key)?r.key:null;e&&(e.spaceBefore&&S.push(""),l(s,S,e.commentBefore,!1),e.comment&&(g=!0));const t=n.isNode(r.value)?r.value:null;t?(t.comment&&(a=t.comment),t.commentBefore&&(g=!0)):null==r.value&&e?.comment&&(a=e.comment)}a&&(g=!0);let u=i.stringify(r,m,(()=>a=null));e<t.length-1&&(u+=","),a&&(u+=o.lineComment(u,c,f(a))),!g&&(S.length>y||u.includes("\n"))&&(g=!0),S.push(u),y=S.length}let E;const{start:v,end:T}=a;if(0===S.length)E=v+T;else{if(!g){g=S.reduce(((e,t)=>e+t.length+2),2)>r.Collection.maxFlowStringSingleLineLength}if(g){E=v;for(const e of S)E+=e?`\n${p}${h}${e}`:"\n";E+=`\n${h}${T}`}else E=`${v}${d}${S.join(" ")}${d}${T}`}return e&&(E+=o.lineComment(E,h,f(e)),u&&u()),E}function l({indent:e,options:{commentString:t}},s,r,n){if(r&&n&&(r=r.replace(/^\n+/,"")),r){const n=o.indentComment(t(r),e);s.push(n.trimStart())}}t.stringifyCollection=function(e,t,s){return(t.inFlow??e.flow?c:a)(e,t,s)}},1296:(e,t)=>{"use strict";function s(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=s,t.lineComment=(e,t,r)=>e.endsWith("\n")?s(r,t):r.includes("\n")?"\n"+s(r,t):(e.endsWith(" ")?"":" ")+r,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},4544:(e,t,s)=>{"use strict";var r=s(6184),n=s(1952),i=s(1296);t.stringifyDocument=function(e,t){const s=[];let o=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(s.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&s.push("---");const a=n.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==s.length&&s.unshift("");const t=c(e.commentBefore);s.unshift(i.indentComment(t,""))}let l=!1,u=null;if(e.contents){if(r.isNode(e.contents)){if(e.contents.spaceBefore&&o&&s.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);s.push(i.indentComment(t,""))}a.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>l=!0;let h=n.stringify(e.contents,a,(()=>u=null),t);u&&(h+=i.lineComment(h,"",c(u))),"|"!==h[0]&&">"!==h[0]||"---"!==s[s.length-1]?s.push(h):s[s.length-1]=`--- ${h}`}else s.push(n.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(s.push("..."),s.push(i.indentComment(t,""))):s.push(`... ${t}`)}else s.push("...");else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,"")),t&&(l&&!u||""===s[s.length-1]||s.push(""),s.push(i.indentComment(c(t),"")))}return s.join("\n")+"\n"}},1388:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:s,value:r}){if("bigint"==typeof r)return String(r);const n="number"==typeof r?r:Number(r);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!s||"tag:yaml.org,2002:float"===s)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let s=t-(i.length-e-1);for(;s-- >0;)i+="0"}return i}},1192:(e,t,s)=>{"use strict";var r=s(6184),n=s(3976),i=s(1952),o=s(1296);t.stringifyPair=function({key:e,value:t},s,a,c){const{allNullValues:l,doc:u,indent:h,indentStep:p,options:{commentString:d,indentSeq:f,simpleKeys:m}}=s;let g=r.isNode(e)&&e.comment||null;if(m){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(r.isCollection(e)){throw new Error("With simple keys, collection cannot be used as a key value")}}let y=!m&&(!e||g&&null==t&&!s.inFlow||r.isCollection(e)||(r.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:"object"==typeof e));s=Object.assign({},s,{allNullValues:!1,implicitKey:!y&&(m||!l),indent:h+p});let S,E,v,T=!1,b=!1,A=i.stringify(e,s,(()=>T=!0),(()=>b=!0));if(!y&&!s.inFlow&&A.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(s.inFlow){if(l||null==t)return T&&a&&a(),""===A?"?":y?`? ${A}`:A}else if(l&&!m||null==t&&y)return A=`? ${A}`,g&&!T?A+=o.lineComment(A,s.indent,d(g)):b&&c&&c(),A;T&&(g=null),y?(g&&(A+=o.lineComment(A,s.indent,d(g))),A=`? ${A}\n${h}:`):(A=`${A}:`,g&&(A+=o.lineComment(A,s.indent,d(g)))),r.isNode(t)?(S=!!t.spaceBefore,E=t.commentBefore,v=t.comment):(S=!1,E=null,v=null,t&&"object"==typeof t&&(t=u.createNode(t))),s.implicitKey=!1,y||g||!r.isScalar(t)||(s.indentAtStart=A.length+1),b=!1,f||!(p.length>=2)||s.inFlow||y||!r.isSeq(t)||t.flow||t.tag||t.anchor||(s.indent=s.indent.substring(2));let P=!1;const I=i.stringify(t,s,(()=>P=!0),(()=>b=!0));let C=" ";if(g||S||E){if(C=S?"\n":"",E){const e=d(E);C+=`\n${o.indentComment(e,s.indent)}`}""!==I||s.inFlow?C+=`\n${s.indent}`:"\n"===C&&(C="\n\n")}else if(!y&&r.isCollection(t)){const e=I[0],r=I.indexOf("\n"),n=-1!==r,i=s.inFlow??t.flow??0===t.items.length;if(n||!i){let t=!1;if(n&&("&"===e||"!"===e)){let s=I.indexOf(" ");"&"===e&&-1!==s&&s<r&&"!"===I[s+1]&&(s=I.indexOf(" ",s+1)),(-1===s||r<s)&&(t=!0)}t||(C=`\n${s.indent}`)}}else""!==I&&"\n"!==I[0]||(C="");return A+=C+I,s.inFlow?P&&a&&a():v&&!P?A+=o.lineComment(A,s.indent,d(v)):b&&c&&c(),A}},3584:(e,t,s)=>{"use strict";var r=s(3976),n=s(1796);const i=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),o=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const s=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return s;const{implicitKey:r}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(o(e)?" ":"");let l="",u=0;for(let e=0,t=s[e];t;t=s[++e])if(" "===t&&"\\"===s[e+1]&&"n"===s[e+2]&&(l+=s.slice(u,e)+"\\ ",e+=1,u=e,t="\\"),"\\"===t)switch(s[e+1]){case"u":{l+=s.slice(u,e);const t=s.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===t.substr(0,2)?l+="\\x"+t.substr(2):l+=s.substr(e,6)}e+=5,u=e+1}break;case"n":if(r||'"'===s[e+2]||s.length<a)e+=1;else{for(l+=s.slice(u,e)+"\n\n";"\\"===s[e+2]&&"n"===s[e+3]&&'"'!==s[e+4];)l+="\n",e+=2;l+=c," "===s[e+2]&&(l+="\\"),e+=1,u=e+1}break;default:e+=1}return l=u?l+s.slice(u):s,r?l:n.foldFlowLines(l,c,n.FOLD_QUOTED,i(t,!1))}function c(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return a(e,t);const s=t.indent||(o(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${s}`)+"'";return t.implicitKey?r:n.foldFlowLines(r,s,n.FOLD_FLOW,i(t,!1))}function l(e,t){const{singleQuote:s}=t.options;let r;if(!1===s)r=a;else{const t=e.includes('"'),n=e.includes("'");r=t&&!n?c:n&&!t?a:s?c:a}return r(e,t)}let u;try{u=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{u=/\n+(?!\n|$)/g}function h({comment:e,type:t,value:s},a,c,h){const{blockQuote:p,commentString:d,lineWidth:f}=a.options;if(!p||/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return l(s,a);const m=a.indent||(a.forceBlockIndent||o(s)?" ":""),g="literal"===p||"folded"!==p&&t!==r.Scalar.BLOCK_FOLDED&&(t===r.Scalar.BLOCK_LITERAL||!function(e,t,s){if(!t||t<0)return!1;const r=t-s,n=e.length;if(n<=r)return!1;for(let t=0,s=0;t<n;++t)if("\n"===e[t]){if(t-s>r)return!0;if(s=t+1,n-s<=r)return!1}return!0}(s,f,m.length));if(!s)return g?"|\n":">\n";let y,S;for(S=s.length;S>0;--S){const e=s[S-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let E=s.substring(S);const v=E.indexOf("\n");-1===v?y="-":s===E||v!==E.length-1?(y="+",h&&h()):y="",E&&(s=s.slice(0,-E.length),"\n"===E[E.length-1]&&(E=E.slice(0,-1)),E=E.replace(u,`$&${m}`));let T,b=!1,A=-1;for(T=0;T<s.length;++T){const e=s[T];if(" "===e)b=!0;else{if("\n"!==e)break;A=T}}let P=s.substring(0,A<T?A+1:T);P&&(s=s.substring(P.length),P=P.replace(/\n+/g,`$&${m}`));let I=(g?"|":">")+(b?m?"2":"1":"")+y;if(e&&(I+=" "+d(e.replace(/ ?[\r\n]+/g," ")),c&&c()),g)return`${I}\n${m}${P}${s=s.replace(/\n+/g,`$&${m}`)}${E}`;s=s.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${m}`);return`${I}\n${m}${n.foldFlowLines(`${P}${s}${E}`,m,n.FOLD_BLOCK,i(a,!0))}`}t.stringifyString=function(e,t,s,u){const{implicitKey:p,inFlow:d}=t,f="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==r.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(m=r.Scalar.QUOTE_DOUBLE);const g=e=>{switch(e){case r.Scalar.BLOCK_FOLDED:case r.Scalar.BLOCK_LITERAL:return p||d?l(f.value,t):h(f,t,s,u);case r.Scalar.QUOTE_DOUBLE:return a(f.value,t);case r.Scalar.QUOTE_SINGLE:return c(f.value,t);case r.Scalar.PLAIN:return function(e,t,s,a){const{type:c,value:u}=e,{actualString:p,implicitKey:d,indent:f,indentStep:m,inFlow:g}=t;if(d&&u.includes("\n")||g&&/[[\]{},]/.test(u))return l(u,t);if(!u||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return d||g||!u.includes("\n")?l(u,t):h(e,t,s,a);if(!d&&!g&&c!==r.Scalar.PLAIN&&u.includes("\n"))return h(e,t,s,a);if(o(u)){if(""===f)return t.forceBlockIndent=!0,h(e,t,s,a);if(d&&f===m)return l(u,t)}const y=u.replace(/\n+/g,`$&\n${f}`);if(p){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(y),{compat:s,tags:r}=t.doc.schema;if(r.some(e)||s?.some(e))return l(u,t)}return d?y:n.foldFlowLines(y,f,n.FOLD_FLOW,i(t,!1))}(f,t,s,u);default:return null}};let y=g(m);if(null===y){const{defaultKeyType:e,defaultStringType:s}=t.options,r=p&&e||s;if(y=g(r),null===y)throw new Error(`Unsupported default string type ${r}`)}return y}},3124:(e,t,s)=>{"use strict";var r=s(6184);const n=Symbol("break visit"),i=Symbol("skip children"),o=Symbol("remove node");function a(e,t){const s=h(t);if(r.isDocument(e)){c(null,e.contents,s,Object.freeze([e]))===o&&(e.contents=null)}else c(null,e,s,Object.freeze([]))}function c(e,t,s,i){const a=p(e,t,s,i);if(r.isNode(a)||r.isPair(a))return d(e,i,a),c(e,a,s,i);if("symbol"!=typeof a)if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=c(e,t.items[e],s,i);if("number"==typeof r)e=r-1;else{if(r===n)return n;r===o&&(t.items.splice(e,1),e-=1)}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=c("key",t.key,s,i);if(e===n)return n;e===o&&(t.key=null);const r=c("value",t.value,s,i);if(r===n)return n;r===o&&(t.value=null)}return a}async function l(e,t){const s=h(t);if(r.isDocument(e)){await u(null,e.contents,s,Object.freeze([e]))===o&&(e.contents=null)}else await u(null,e,s,Object.freeze([]))}async function u(e,t,s,i){const a=await p(e,t,s,i);if(r.isNode(a)||r.isPair(a))return d(e,i,a),u(e,a,s,i);if("symbol"!=typeof a)if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=await u(e,t.items[e],s,i);if("number"==typeof r)e=r-1;else{if(r===n)return n;r===o&&(t.items.splice(e,1),e-=1)}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=await u("key",t.key,s,i);if(e===n)return n;e===o&&(t.key=null);const r=await u("value",t.value,s,i);if(r===n)return n;r===o&&(t.value=null)}return a}function h(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function p(e,t,s,n){return"function"==typeof s?s(e,t,n):r.isMap(t)?s.Map?.(e,t,n):r.isSeq(t)?s.Seq?.(e,t,n):r.isPair(t)?s.Pair?.(e,t,n):r.isScalar(t)?s.Scalar?.(e,t,n):r.isAlias(t)?s.Alias?.(e,t,n):void 0}function d(e,t,s){const n=t[t.length-1];if(r.isCollection(n))n.items[e]=s;else if(r.isPair(n))"key"===e?n.key=s:n.value=s;else{if(!r.isDocument(n)){const e=r.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}n.contents=s}}a.BREAK=n,a.SKIP=i,a.REMOVE=o,l.BREAK=n,l.SKIP=i,l.REMOVE=o,t.visit=a,t.visitAsync=l},1316:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__addDisposableResource:()=>L,__assign:()=>i,__asyncDelegator:()=>I,__asyncGenerator:()=>P,__asyncValues:()=>C,__await:()=>A,__awaiter:()=>f,__classPrivateFieldGet:()=>O,__classPrivateFieldIn:()=>k,__classPrivateFieldSet:()=>M,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>D,__esDecorate:()=>l,__exportStar:()=>y,__extends:()=>n,__generator:()=>m,__importDefault:()=>x,__importStar:()=>w,__makeTemplateObject:()=>N,__metadata:()=>d,__param:()=>c,__propKey:()=>h,__read:()=>E,__rest:()=>o,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>v,__spreadArray:()=>b,__spreadArrays:()=>T,__values:()=>S,default:()=>F});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}var i=function(){return i=Object.assign||function(e){for(var t,s=1,r=arguments.length;s<r;s++)for(var n in t=arguments[s])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};function o(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(s[r[n]]=e[r[n]])}return s}function a(e,t,s,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(i<3?n(o):i>3?n(t,s,o):n(t,s))||o);return i>3&&o&&Object.defineProperty(t,s,o),o}function c(e,t){return function(s,r){t(s,r,e)}}function l(e,t,s,r,n,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=r.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?r.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p=!1,d=s.length-1;d>=0;d--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var g=(0,s[d])("accessor"===c?{get:h.get,set:h.set}:h[l],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=o(g.get))&&(h.get=a),(a=o(g.set))&&(h.set=a),(a=o(g.init))&&n.unshift(a)}else(a=o(g))&&("field"===c?n.unshift(a):h[l]=a)}u&&Object.defineProperty(u,r.name,h),p=!0}function u(e,t,s){for(var r=arguments.length>2,n=0;n<t.length;n++)s=r?t[n].call(e,s):t[n].call(e);return r?s:void 0}function h(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,s){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:s?"".concat(s," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,s,r){return new(s||(s=Promise))((function(n,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function m(e,t){var s,r,n,i,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(s)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(o=0)),o;)try{if(s=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{s=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var g=Object.create?function(e,t,s,r){void 0===r&&(r=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,r,n)}:function(e,t,s,r){void 0===r&&(r=s),e[r]=t[s]};function y(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||g(t,e,s)}function S(e){var t="function"==typeof Symbol&&Symbol.iterator,s=t&&e[t],r=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function E(e,t){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var r,n,i=s.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(E(arguments[t]));return e}function T(){for(var e=0,t=0,s=arguments.length;t<s;t++)e+=arguments[t].length;var r=Array(e),n=0;for(t=0;t<s;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,n++)r[n]=i[o];return r}function b(e,t,s){if(s||2===arguments.length)for(var r,n=0,i=t.length;n<i;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function P(e,t,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=s.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){n[e]&&(r[e]=function(t){return new Promise((function(s,r){i.push([e,t,s,r])>1||a(e,t)}))})}function a(e,t){try{(s=n[e](t)).value instanceof A?Promise.resolve(s.value.v).then(c,l):u(i[0][2],s)}catch(e){u(i[0][3],e)}var s}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function I(e){var t,s;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,n){t[r]=e[r]?function(t){return(s=!s)?{value:A(e[r](t)),done:!1}:n?n(t):t}:n}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,s=e[Symbol.asyncIterator];return s?s.call(e):(e=S(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(t){return new Promise((function(r,n){(function(e,t,s,r){Promise.resolve(r).then((function(t){e({value:t,done:s})}),t)})(r,n,(t=e[s](t)).done,t.value)}))}}}function N(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&g(t,e,s);return _(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function O(e,t,s,r){if("a"===s&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?r:"a"===s?r.call(e):r?r.value:t.get(e)}function M(e,t,s,r,n){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,s):n?n.value=s:t.set(e,s),s}function k(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,s){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:s})}else s&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,s){var r=new Error(s);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function D(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function s(){for(;e.stack.length;){var r=e.stack.pop();try{var n=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(n).then(s,(function(e){return t(e),s()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const F={__extends:n,__assign:i,__rest:o,__decorate:a,__param:c,__metadata:d,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:S,__read:E,__spread:v,__spreadArrays:T,__spreadArray:b,__await:A,__asyncGenerator:P,__asyncDelegator:I,__asyncValues:C,__makeTemplateObject:N,__importStar:w,__importDefault:x,__classPrivateFieldGet:O,__classPrivateFieldSet:M,__classPrivateFieldIn:k,__addDisposableResource:L,__disposeResources:D}},6408:e=>{"use strict";e.exports={WU:"2.0.0"}}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,s),i.exports}s.c=t,s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=s(s.s=8616);module.exports=r})();