From ea50faa7c6514f9e1db736e6664838482ce6a305 Mon Sep 17 00:00:00 2001 From: snowyivu Date: Wed, 10 Apr 2024 13:47:05 -0600 Subject: [PATCH] Updates --- ShinyColors.user.js | 6 +++--- data/story-title.csv | 3 ++- manifest.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ShinyColors.user.js b/ShinyColors.user.js index b60611375..3638e463c 100644 --- a/ShinyColors.user.js +++ b/ShinyColors.user.js @@ -16,18 +16,18 @@ // @supportURL https://github.com/snowyivu/ShinyColors/issues // ==/UserScript== -!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var r="object"==typeof e&&e&&e.Object===Object&&e,n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")(),i=o.Symbol,a=Object.prototype,s=a.hasOwnProperty,c=a.toString,l=i?i.toStringTag:void 0;var u=function(e){var t=s.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=c.call(e);return n&&(t?e[l]=r:delete e[l]),o},d=Object.prototype.toString;var h=function(e){return d.call(e)},p=i?i.toStringTag:void 0;var f=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?u(e):h(e)},m=Array.isArray;var g=function(e){return null!=e&&"object"==typeof e};var y=function(e){return"string"==typeof e||!m(e)&&g(e)&&"[object String]"==f(e)};const v=e=>"​"+e,w=e=>{if(!e)return"";return e.replace(/[\u0020]+$/g,"").replace(/^[\u0020]+/g,"")},E=(e,t=!1)=>{let r=w(e).replace(/(\\r)?\\n/g,"\n").replace(/\\r/g,"\n");return t?r:r.replace(/\n{2,}/g,"\n")},S=e=>w(e).replace(/\r/g,"\n").replace(/\n{2,}/g,"\n"),_=e=>e.replace(/\?/g,"\\?").replace(/\./g,"\\.").replace(/\*/g,"\\*").replace(/\+/g,"\\+").replace(/\(/g,"\\(").replace(/\)/g,"\\)"),b=(...e)=>{0},x=(...e)=>{console.info(...e)},T=(e,t)=>{const r=document.createElement("a");r.download=t,r.style.display="none";const n=new Blob([e],{type:"text/csv"});r.href=URL.createObjectURL(n),document.body.appendChild(r),r.click(),document.body.removeChild(r)},k=e=>y(e)?e.replace(/\r?\n/g,"\\n").replace(/\r/g,"\\n"):e,C=(e,t)=>{if(!e||!e.length)return e;let r=e,n=!1,o=((e=2)=>{let t="";for(let r=0;r{if(e.speaker){const r=w(e.speaker);A.includes(r)&&t.has(r)&&(e.speaker=v(t.get(r)))}},M=(e,t)=>{try{if(t)return sessionStorage.setItem(e,JSON.stringify(t)),!0;{let t=sessionStorage.getItem(e);return JSON.parse(t)}}catch(e){}};var I=function(e){return!0===e||!1===e||g(e)&&"[object Boolean]"==f(e)};var P=function(e,t){return function(r){return e(t(r))}},O=P(Object.getPrototypeOf,Object),D=Function.prototype,F=Object.prototype,B=D.toString,L=F.hasOwnProperty,j=B.call(Object);var N=function(e){if(!g(e)||"[object Object]"!=f(e))return!1;var t=O(e);if(null===t)return!0;var r=L.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&B.call(r)==j};const H={origin:"https://snowyivu.github.io/ShinyColors",hash:"",localHash:"",version:"0.21.0",story:"normal",timeout:30,font1:"yuanti",font2:"heiti",auto:"off",bgm:"off",myPage:"normal",commuTitle:"normal",business:"normal"},U=Object.assign({},H),z=["yuanti","heiti","yuanti2"],G={HEITI_JA:"UDKakugo_SmallPr6-B",HEITI_TRANS:"sczh-heiti,UDKakugo_SmallPr6-B",YUAN_JA:"HummingStd-E",YUAN_TRANS:"sczh-yuanti,HummingStd-E"},$=["origin","font1","font2","timeout","story","auto","bgm","myPage","commuTitle","business","originalFont"],W=$,K=()=>{G.HEITI_TRANS=`${z.includes(H.font2)?"sczh-":""}${H.font2},${G.HEITI_JA}`,G.YUAN_TRANS=`${z.includes(H.font1)?"sczh-":""}${H.font1},${G.YUAN_JA}`},X=()=>{let e={};W.forEach(t=>{H[t]!==U[t]&&(e[t]=H[t])}),K(),localStorage.setItem("sczh:setting",JSON.stringify(e))},V=()=>{let e=location.hash;e=e.slice(1).replace(/\?tdsourcetag=s_pc(tim|qq)_aiomsg/,""),e.split(";").forEach(e=>{let t=e.split("="),r=decodeURIComponent(t[0].trim()),n=t[1]?decodeURIComponent(t[1].trim()):"";r&&W.includes(r)&&(H[r]=n||U[r],X())})};(()=>{const e=localStorage.getItem("sczh:setting");let t=JSON.parse(e);N(t)||(t={}),(e=>{"https://snowyivu.github.io/ShinyColors"===e.origin&&(e.origin=U.origin)})(t);const{origin:r}=t;(e=>!!/^https?:\/\//.test(e)&&!/\s/.test(e.trim()))(r)&&(H.origin=r.trim()),W.forEach(e=>{let r=t[e];y(r)&&(r=r.trim()),(I(r)||r)&&(H[e]=r)}),K()})(),(()=>{try{const e=sessionStorage.getItem("sczh:data"),t=JSON.parse(e);H.localHash=t.hash}catch(e){}})(),V(),window.addEventListener("hashchange",V);const{origin:J}=H,q=async()=>{const e=Math.floor(Date.now()/1e3/60/60/6),t=await fetch(`${J}/manifest.json?t=${e}`);if(t.ok){const e=await t.json();return e.time=Date.now(),localStorage.setItem("sczh:manifest",JSON.stringify(e)),e}throw new Error(`${t.status} ${t.url}`)};let Q={data:null};const Y=new Promise((e,t)=>{(async()=>{let e;try{let t=localStorage.getItem("sczh:manifest");t&&(e=JSON.parse(t)),Date.now()-e.time>60*H.cacheTime*1e3&&(e=!1)}catch(e){}return e?setTimeout(q,5e3):e=await q(),e})().then(t=>{Q.data=t,H.newVersion=t.version,H.hashes=t.hashes,e(t)}).catch(t)}),Z=async e=>{const{hash:t}=await Y;return await(async e=>new Promise((t,r)=>{let n=setTimeout(()=>{r(`加载${e}超时`)},1e3*H.timeout);fetch(`${J}${e}`).then(e=>{if(clearTimeout(n),!e.ok)return r(`${e.status} ${e.url}`),"";const t=e.headers.get("content-type");return t&&t.includes("json")?e.json():e.text()}).then(t).catch(r)}))(`${e}?v=${t}`)};var ee=t((function(e,t){ +!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var r="object"==typeof e&&e&&e.Object===Object&&e,n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")(),i=o.Symbol,a=Object.prototype,s=a.hasOwnProperty,c=a.toString,l=i?i.toStringTag:void 0;var u=function(e){var t=s.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=c.call(e);return n&&(t?e[l]=r:delete e[l]),o},d=Object.prototype.toString;var h=function(e){return d.call(e)},p=i?i.toStringTag:void 0;var f=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?u(e):h(e)},m=Array.isArray;var g=function(e){return null!=e&&"object"==typeof e};var y=function(e){return"string"==typeof e||!m(e)&&g(e)&&"[object String]"==f(e)};const v=e=>"​"+e,w=e=>{if(!e)return"";return e.replace(/[\u0020]+$/g,"").replace(/^[\u0020]+/g,"")},E=(e,t=!1)=>{let r=w(e).replace(/(\\r)?\\n/g,"\n").replace(/\\r/g,"\n");return t?r:r.replace(/\n{2,}/g,"\n")},S=e=>w(e).replace(/\r/g,"\n").replace(/\n{2,}/g,"\n"),_=e=>e.replace(/\?/g,"\\?").replace(/\./g,"\\.").replace(/\*/g,"\\*").replace(/\+/g,"\\+").replace(/\(/g,"\\(").replace(/\)/g,"\\)"),b=(...e)=>{0},x=(...e)=>{console.info(...e)},T=(e,t)=>{const r=document.createElement("a");r.download=t,r.style.display="none";const n=new Blob([e],{type:"text/csv"});r.href=URL.createObjectURL(n),document.body.appendChild(r),r.click(),document.body.removeChild(r)},k=e=>y(e)?e.replace(/\r?\n/g,"\\n").replace(/\r/g,"\\n"):e,C=(e,t)=>{if(!e||!e.length)return e;let r=e,n=!1,o=((e=2)=>{let t="";for(let r=0;r{if(e.speaker){const r=w(e.speaker);A.includes(r)&&t.has(r)&&(e.speaker=v(t.get(r)))}},M=(e,t)=>{try{if(t)return sessionStorage.setItem(e,JSON.stringify(t)),!0;{let t=sessionStorage.getItem(e);return JSON.parse(t)}}catch(e){}};var I=function(e){return!0===e||!1===e||g(e)&&"[object Boolean]"==f(e)};var P=function(e,t){return function(r){return e(t(r))}},O=P(Object.getPrototypeOf,Object),D=Function.prototype,F=Object.prototype,B=D.toString,L=F.hasOwnProperty,N=B.call(Object);var j=function(e){if(!g(e)||"[object Object]"!=f(e))return!1;var t=O(e);if(null===t)return!0;var r=L.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&B.call(r)==N};const H={origin:"https://snowyivu.github.io/ShinyColors",hash:"",localHash:"",version:"0.21.0",story:"normal",timeout:30,font1:"yuanti",font2:"heiti",auto:"off",bgm:"off",myPage:"normal",commuTitle:"normal",business:"normal"},U=Object.assign({},H),z=["yuanti","heiti","yuanti2"],G={HEITI_JA:"UDKakugo_SmallPr6-B",HEITI_TRANS:"sczh-heiti,UDKakugo_SmallPr6-B",YUAN_JA:"HummingStd-E",YUAN_TRANS:"sczh-yuanti,HummingStd-E"},$=["origin","font1","font2","timeout","story","auto","bgm","myPage","commuTitle","business","originalFont"],W=$,K=()=>{G.HEITI_TRANS=`${z.includes(H.font2)?"sczh-":""}${H.font2},${G.HEITI_JA}`,G.YUAN_TRANS=`${z.includes(H.font1)?"sczh-":""}${H.font1},${G.YUAN_JA}`},X=()=>{let e={};W.forEach(t=>{H[t]!==U[t]&&(e[t]=H[t])}),K(),localStorage.setItem("sczh:setting",JSON.stringify(e))},V=()=>{let e=location.hash;e=e.slice(1).replace(/\?tdsourcetag=s_pc(tim|qq)_aiomsg/,""),e.split(";").forEach(e=>{let t=e.split("="),r=decodeURIComponent(t[0].trim()),n=t[1]?decodeURIComponent(t[1].trim()):"";r&&W.includes(r)&&(H[r]=n||U[r],X())})};(()=>{const e=localStorage.getItem("sczh:setting");let t=JSON.parse(e);j(t)||(t={}),(e=>{"https://snowyivu.github.io/ShinyColors"===e.origin&&(e.origin=U.origin)})(t);const{origin:r}=t;(e=>!!/^https?:\/\//.test(e)&&!/\s/.test(e.trim()))(r)&&(H.origin=r.trim()),W.forEach(e=>{let r=t[e];y(r)&&(r=r.trim()),(I(r)||r)&&(H[e]=r)}),K()})(),(()=>{try{const e=sessionStorage.getItem("sczh:data"),t=JSON.parse(e);H.localHash=t.hash}catch(e){}})(),V(),window.addEventListener("hashchange",V);const{origin:J}=H,q=async()=>{const e=Math.floor(Date.now()/1e3/60/60/6),t=await fetch(`${J}/manifest.json?t=${e}`);if(t.ok){const e=await t.json();return e.time=Date.now(),localStorage.setItem("sczh:manifest",JSON.stringify(e)),e}throw new Error(`${t.status} ${t.url}`)};let Q={data:null};const Y=new Promise((e,t)=>{(async()=>{let e;try{let t=localStorage.getItem("sczh:manifest");t&&(e=JSON.parse(t)),Date.now()-e.time>60*H.cacheTime*1e3&&(e=!1)}catch(e){}return e?setTimeout(q,5e3):e=await q(),e})().then(t=>{Q.data=t,H.newVersion=t.version,H.hashes=t.hashes,e(t)}).catch(t)}),Z=async e=>{const{hash:t}=await Y;return await(async e=>new Promise((t,r)=>{let n=setTimeout(()=>{r(`加载${e}超时`)},1e3*H.timeout);fetch(`${J}${e}`).then(e=>{if(clearTimeout(n),!e.ok)return r(`${e.status} ${e.url}`),"";const t=e.headers.get("content-type");return t&&t.includes("json")?e.json():e.text()}).then(t).catch(r)}))(`${e}?v=${t}`)};var ee=t((function(e,t){ /* @license Papa Parse v4.6.3 https://github.com/mholt/PapaParse License: MIT */ -Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e.exports=function(){var e,t,r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,o=n&&/(\?|&)papaworker(=|&|$)/.test(r.location.search),i=!1,a={},s=0,c={parse:function(t,n){var o=(n=n||{}).dynamicTyping||!1;if(b(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!b(n.transform)&&n.transform,n.worker&&c.WORKERS_SUPPORTED){var l=function(){if(!c.WORKERS_SUPPORTED)return!1;if(!i&&null===c.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var t=c.SCRIPT_PATH||e;t+=(-1!==t.indexOf("?")?"&":"?")+"papaworker";var n=new r.Worker(t);return n.onmessage=v,n.id=s++,a[n.id]=n}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=b(n.step),n.chunk=b(n.chunk),n.complete=b(n.complete),n.error=b(n.error),delete n.worker,void l.postMessage({input:t,config:n,workerId:l.id})}var u=null;return"string"==typeof t?u=n.download?new d(n):new p(n):!0===t.readable&&b(t.read)&&b(t.on)?u=new f(n):(r.File&&t instanceof File||t instanceof Object)&&(u=new h(n)),u.stream(t)},unparse:function(e,t){var r=!1,n=!0,o=",",i="\r\n",a='"',s=!1;"object"==typeof t&&("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(s=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(n=t.header));var l=new RegExp(g(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,s);if("object"==typeof e[0])return d(u(e[0]),e,s)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:u(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],s);throw"exception: Unable to serialize unrecognized input";function u(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function d(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0=this._config.preview;if(o)r.postMessage({results:a,workerId:c.WORKER_ID,finished:l});else if(b(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return;a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!l||!b(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||a&&a.meta.paused||this._nextChunk(),a}},this._sendError=function(e){b(this._config.error)?this._config.error(e):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)),t.open("GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o),t.setRequestHeader("If-None-Match","webkit-no-cache")}try{t.send()}catch(e){this._chunkError(e.message)}n&&0===t.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substr(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function h(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),u.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function p(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,r=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(r)}}}function f(e){u.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=_((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=_((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=_((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(e){var t,r,n,o=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,i=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,a=this,s=0,l=0,u=!1,d=!1,h=[],p={data:[],errors:[],meta:{}};if(b(e.step)){var f=e.step;e.step=function(t){if(p=t,w())v();else{if(v(),0===p.data.length)return;s+=t.data.length,e.preview&&s>e.preview?r.abort():f(p,a)}}}function m(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(){if(p&&n&&(_("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines)for(var t=0;t=h.length?"__parsed_extra":h[r]),e.transform&&(i=e.transform(i,o)),i=E(o,i),"__parsed_extra"===o?(n[o]=n[o]||[],n[o].push(i)):n[o]=i}p.data[t]=n,e.header&&(r>h.length?_("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+r,l+t):r=n.length/2?"\r\n":"\r"}(o,s)),n=!1,e.delimiter)b(e.delimiter)&&(e.delimiter=e.delimiter(o),p.meta.delimiter=e.delimiter);else{var l=function(t,r,n,o){for(var i,a,s,l=[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP],u=0;u=a)return B(!0)}else for(k=u,u++;;){if(-1===(k=e.indexOf(t,k+1)))return h||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:u}),D();if(k===p-1)return D(e.substring(u,k).replace(R,t));if(t!==l||e[k+1]!==l){if(t===l||0===k||e[k-1]!==l){var M=O(-1===A?C:Math.min(C,A));if(e[k+1+M]===r){S.push(e.substring(u,k).replace(R,t)),u=k+1+M+f,C=e.indexOf(r,u),A=e.indexOf(n,u);break}var I=O(A);if(e.substr(k+1+I,m)===n){if(S.push(e.substring(u,k).replace(R,t)),F(k+1+I+m),C=e.indexOf(r,u),v&&(L(),d))return B();if(a&&w.length>=a)return B(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:u}),k++}}else k++}return D();function P(e){w.push(e),_=u}function O(t){var r=0;if(-1!==t){var n=e.substring(k+1,t);n&&""===n.trim()&&(r=n.length)}return r}function D(t){return h||(void 0===t&&(t=e.substr(u)),S.push(t),u=p,P(S),v&&L()),B()}function F(t){u=t,P(S),S=[],A=e.indexOf(n,u)}function B(e){return{data:w,errors:E,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:_+(c||0)}}}function L(){i(B()),w=[],E=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function v(e){var t=e.data,r=a[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,w(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:E,resume:E};if(b(r.userStep)){for(var i=0;i{try{return ee.parse(e.replace(/^\ufeff/,""),{header:!0}).data}catch(e){return console.log(e),{}}};let re=null;const ne=async e=>{if(re)return re[e];const{hash:t}=await Y;try{const r=localStorage.getItem("sczh:data");return!!r&&(re=JSON.parse(r),re.hash!==t?(re=null,localStorage.removeItem("sczh:data"),localStorage.removeItem("sczh:data"),!1):re[e])}catch(e){console.log(e)}return!1},oe=(e,t)=>{re||(re={hash:H.hash}),re[e]=t;const r=JSON.stringify(re);try{localStorage.setItem("sczh:data",r)}catch(e){console.log(e)}},ie=new Map;let ae=!1;const se=async(e=!1)=>{if(!ae){let t=await ne("phrase");t||(t=await Z("/data/phrase.csv"),oe("phrase",t));te(t).forEach(t=>{if(t&&t.name){const r=E(t.name),n=E(t.en,!0);r&&(n||e)&&ie.set(r,v(n))}}),ae=!0}return ie};let ce=null;const le=Object.freeze;Object.freeze=new Proxy(le,{apply:(e,t,[r])=>r});const ue=/^function\s\w\((\w)\){var\s(\w)=(\w)\[\1\];if\(void\s0!==\2\)return\s\2\.exports;var\s(\w)=\3\[\1\]={id:\1,loaded:!1,exports:{}};return\s\w\[\1\]\.call\(\4\.exports,\4,\4\.exports,\w\),\4\.loaded=!0,\4\.exports}$/,de=Function.prototype.call;let he={Reflect:window.Reflect};Function.prototype.call=new Proxy(de,{apply(e,t,r){var n;if(null!=r&&null!==(n=r[3])&&void 0!==n&&n.toString&&ue.test(r[3].toString())){ce=r[3];window.unsafeWindow||window;0,Function.prototype.call=de}return he.Reflect.apply(e,t,r)}});const pe=async(e,t)=>{let r;try{const{moduleId:n}=await Y;r=((e,t)=>{let r,n=((e,t)=>{let r=e+t,n=[];for(let o=e-t;o<=r;o++)o>=0&&o!==e&&n.push(o);return n.unshift(e),n})(e,10);for(let e=0;eawait pe("AOBA",e=>e.loaders&&e.Text&&e.BLEND_MODES);let me=null;async function ge(){const e=await(async()=>(await pe("PHRASE",e=>{var t,r;return null==e||null===(t=e.default)||void 0===t||null===(r=t._polyglot)||void 0===r?void 0:r.phrases})).default._polyglot.phrases)();if(e){0,me=await se();for(let[t,r]of me)e[t]=r}}const ye=new Map,ve=new Map,we=new Map;let Ee=!1;const Se=async()=>{if(!Ee){let e=await ne("item");e||(e=await Z("/data/item.csv"),oe("item",e));te(e).forEach(e=>{if(e&&e.text){const t=E(e.text),r=E(e.trans,!0),n=w(e.type)||"normal";t&&r&&t!==r&&("limit"===n?ve.set(t,r):"note"===n?we.set(t,r):ye.set(t,r))}}),Ee=!0}return{itemMap:ye,itemLimitMap:ve,itemNoteMap:we}},_e=new Map;let be=!1;const xe=async()=>{if(!be){let e=await ne("name");e||(e=await Z("/data/name.csv"),oe("name",e));te(e).forEach(e=>{const t=w(e.name),r=w(e.trans);t&&r&&t!==r&&_e.set(t,r)}),be=!0}return _e};let Te=new Map,ke=!1;var Ce=t((function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n>>6-2*o);return r}};e.exports=r}()})),Ae={utf8:{stringToBytes:function(e){return Ae.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Ae.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var f=i._ff,m=i._gg,g=i._hh,y=i._ii;for(p=0;p>>0,u=u+w>>>0,d=d+E>>>0,h=h+S>>>0}return t.endian([l,u,d,h])};i._ff=function(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+(o>>>0)+a;return(s<>>32-i)+t},i._gg=function(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+(o>>>0)+a;return(s<>>32-i)+t},i._hh=function(e,t,r,n,o,i,a){var s=e+(t^r^n)+(o>>>0)+a;return(s<>>32-i)+t},i._ii=function(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+(o>>>0)+a;return(s<>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,r){if(null==e)throw new Error("Illegal argument "+e);var n=t.wordsToBytes(i(e,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):t.bytesToHex(n)}}()}));const Oe=new Map,De=new Map,Fe=new Map;let Be=!1,Le=null;const je=e=>(e.communications&&e.communications.length?e.communications.forEach(e=>{De.set(e.communicationId,e.title)}):e.idol&&e.idol.produceIdolEvents?(e.idol.produceIdolEvents.forEach(e=>{De.set(e.id,e.title)}),e.idol.produceAfterEvents.forEach(e=>{De.set(e.id,e.title)})):e.supportIdol&&e.supportIdol.produceSupportIdolEvents?e.supportIdol.produceSupportIdolEvents.forEach(e=>{De.set(e.id,e.title)}):e.gameEvents?e.gameEvents.forEach(e=>{e.communications.forEach(e=>{De.set(e.id,`${e.name} ${e.title}`)})}):e.specialEvents&&e.specialEvents.forEach(e=>{e.communications.forEach(e=>{De.set(e.id,`${e.name} ${e.title}`)})}),De),Ne=e=>{const t=te(e),r=new Map;return t.forEach(e=>{const t=w(e.id),n=E(e.text),o=E(e.trans,!0),i=w(e.name);if(n&&o){const e=Pe(n);if(t&&!/^0+$/.test(t)&&"select"!==t){const n=t+e;r.set(n,v(o))}else"select"===t?r.set(e+"-select",v(o)):r.set(e,v(o))}t&&i&&"info"===t&&r.set("name",i)}),r},He=async()=>{if(!Be){let e=await ne("comm-story");e||(e=await Z("/data/comm-story.csv"),oe("comm-story",e));te(e).forEach(e=>{if(e&&e.ja){const t=E(e.ja),r=E(e.en,!0);t&&r&&t!==r&&Fe.set(t,r)}}),Be=!0}return Fe};let Ue=new Map,ze=!1;const Ge=async()=>{if(!ze){let e=await ne("type-text");e||(e=await Z("/data/type-text.csv"),oe("type-text",e));te(e).forEach(e=>{if(e&&e.ja){const t=E(e.ja),r=E(e.en,!0);t&&r&&t!==r&&Ue.set(t,r)}});const t=await He();Ue=new Map([...t,...Ue]),ze=!0}return Ue};let $e=new Map,We=new Map;const Ke=[],Xe=e=>{e&&e.fontFamily&&(e.fontFamily===G.HEITI_JA?Reflect.set(e,"fontFamily",G.HEITI_TRANS):e.fontFamily===G.YUAN_JA&&Reflect.set(e,"fontFamily",G.YUAN_TRANS))},Ve=(e,t,r)=>{let n=e,o=S(e);return t.has(o)?(n="​"+t.get(o),"on"!=H.originalFont&&Xe(r)):e.startsWith("​")||"on"!=H.originalFont&&(e=>{e&&e.fontFamily&&(e.fontFamily===G.HEITI_TRANS?Reflect.set(e,"fontFamily",G.HEITI_JA):e.fontFamily===G.YUAN_TRANS&&Reflect.set(e,"fontFamily",G.YUAN_JA))})(r),n},Je=(e,t,r=!1)=>{if(!y(e))return e;let n=e;return e.startsWith("​")?"on"!=H.originalFont&&Xe(t):e.trim()&&(r?(n=Ve(e,We,t),(e=>{Ke.push(e),setTimeout(()=>Ke.shift(),1e4)})(e)):(e=>{let t=!1;return Ke.forEach(r=>{r.startsWith(e)&&(t=!0)}),t})(e)||e.startsWith("‌")||(n=Ve(e,$e,t))),n};async function qe(){let e=await fe();if(!e)return;try{$e=await(async()=>{if(!ke){let e=await ne("common");e||(e=await Z("/data/common.csv"),oe("common",e));te(e).forEach(e=>{if(e&&e.ja){const t=E(e.ja),r=E(e.en,!0);t&&r&&t!==r&&Te.set(t,r)}});const{itemMap:t}=await Se(),r=await xe();Te=new Map([...t,...r,...Te]),ke=!0}return Te})(),We=await Ge()}catch(e){}const t=e.Text.prototype.typeText;e.Text.prototype.typeText=function(...e){const r=e[0];return e[0]=Je(r,this.style,!0),t.apply(this,e)};const r=e.Text.prototype.updateText;e.Text.prototype.updateText=function(e){if(this.localStyleID!==this._style.styleID&&(this.dirty=!0,this._style.styleID),this.dirty||!e){0;const t=Je(this._text,this._style);return Reflect.set(this,"_text",t),r.call(this,e)}}}const Qe=new Map;let Ye=!1;new Map;let Ze=null;const et=async()=>(Ze||(Ze=(async()=>{if(!Ye){let e=await ne("image");e||(e=await Z("/data/image.csv"),oe("image",e));te(e).forEach(e=>{if(e&&e.name){const t=w(e.name),r=w(e.url),n=w(e.version)||"1";t&&r&&Qe.set(t,{url:r,version:n})}}),Ye=!0}return Qe})()),await Ze);let tt=!1;async function rt(){let e=await fe();if(!e||tt)return;const t=e.loaders.Resource.prototype._loadElement,r=async function(e){try{const t=await et();this.url;if("image"===e&&t.has(this.name)){const e=t.get(this.name);this.url.endsWith("v="+e.version)&&(this.url=`${H.origin}/data/image/${e.url}?V=${H.hash}`,this.crossOrigin=!0)}else;}catch(e){}return t.call(this,e)},n=new Proxy(e.loaders.Resource,{construct(e,t,n){var o=Reflect.construct(e,t,n);return new Proxy(o,{get:(e,t,n)=>"_loadElement"==t?r:Reflect.get(e,t,n)})},get:(e,t,r)=>Reflect.get(e,t,r)});Object.defineProperty(e.loaders,"Resource",{value:n}),tt=!0}var nt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ot=function(){return o.Date.now()};var it=function(e){return"symbol"==typeof e||g(e)&&"[object Symbol]"==f(e)},at=/^\s+|\s+$/g,st=/^[-+]0x[0-9a-f]+$/i,ct=/^0b[01]+$/i,lt=/^0o[0-7]+$/i,ut=parseInt;var dt=function(e){if("number"==typeof e)return e;if(it(e))return NaN;if(nt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(at,"");var r=ct.test(e);return r||lt.test(e)?ut(e.slice(2),r?2:8):st.test(e)?NaN:+e},ht=Math.max,pt=Math.min;var ft=function(e,t,r){var n,o,i,a,s,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,l=t,a=e.apply(i,r)}function f(e){return l=e,s=setTimeout(g,t),u?p(e):a}function m(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-l>=i}function g(){var e=ot();if(m(e))return y(e);s=setTimeout(g,function(e){var r=t-(e-c);return d?pt(r,i-(e-l)):r}(e))}function y(e){return s=void 0,h&&n?p(e):(n=o=void 0,a)}function v(){var e=ot(),r=m(e);if(n=arguments,o=this,c=e,r){if(void 0===s)return f(c);if(d)return clearTimeout(s),s=setTimeout(g,t),p(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=dt(t)||0,nt(r)&&(u=!!r.leading,i=(d="maxWait"in r)?ht(dt(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),l=0,n=c=o=s=void 0},v.flush=function(){return void 0===s?a:y(ot())},v},mt=t((function(e,t){ +Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e.exports=function(){var e,t,r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,o=n&&/(\?|&)papaworker(=|&|$)/.test(r.location.search),i=!1,a={},s=0,c={parse:function(t,n){var o=(n=n||{}).dynamicTyping||!1;if(b(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!b(n.transform)&&n.transform,n.worker&&c.WORKERS_SUPPORTED){var l=function(){if(!c.WORKERS_SUPPORTED)return!1;if(!i&&null===c.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var t=c.SCRIPT_PATH||e;t+=(-1!==t.indexOf("?")?"&":"?")+"papaworker";var n=new r.Worker(t);return n.onmessage=v,n.id=s++,a[n.id]=n}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=b(n.step),n.chunk=b(n.chunk),n.complete=b(n.complete),n.error=b(n.error),delete n.worker,void l.postMessage({input:t,config:n,workerId:l.id})}var u=null;return"string"==typeof t?u=n.download?new d(n):new p(n):!0===t.readable&&b(t.read)&&b(t.on)?u=new f(n):(r.File&&t instanceof File||t instanceof Object)&&(u=new h(n)),u.stream(t)},unparse:function(e,t){var r=!1,n=!0,o=",",i="\r\n",a='"',s=!1;"object"==typeof t&&("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(s=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(n=t.header));var l=new RegExp(g(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,s);if("object"==typeof e[0])return d(u(e[0]),e,s)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:u(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],s);throw"exception: Unable to serialize unrecognized input";function u(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function d(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0=this._config.preview;if(o)r.postMessage({results:a,workerId:c.WORKER_ID,finished:l});else if(b(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return;a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!l||!b(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||a&&a.meta.paused||this._nextChunk(),a}},this._sendError=function(e){b(this._config.error)?this._config.error(e):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)),t.open("GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o),t.setRequestHeader("If-None-Match","webkit-no-cache")}try{t.send()}catch(e){this._chunkError(e.message)}n&&0===t.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substr(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function h(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),u.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function p(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,r=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(r)}}}function f(e){u.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=_((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=_((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=_((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(e){var t,r,n,o=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,i=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,a=this,s=0,l=0,u=!1,d=!1,h=[],p={data:[],errors:[],meta:{}};if(b(e.step)){var f=e.step;e.step=function(t){if(p=t,w())v();else{if(v(),0===p.data.length)return;s+=t.data.length,e.preview&&s>e.preview?r.abort():f(p,a)}}}function m(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(){if(p&&n&&(_("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines)for(var t=0;t=h.length?"__parsed_extra":h[r]),e.transform&&(i=e.transform(i,o)),i=E(o,i),"__parsed_extra"===o?(n[o]=n[o]||[],n[o].push(i)):n[o]=i}p.data[t]=n,e.header&&(r>h.length?_("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+r,l+t):r=n.length/2?"\r\n":"\r"}(o,s)),n=!1,e.delimiter)b(e.delimiter)&&(e.delimiter=e.delimiter(o),p.meta.delimiter=e.delimiter);else{var l=function(t,r,n,o){for(var i,a,s,l=[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP],u=0;u=a)return B(!0)}else for(k=u,u++;;){if(-1===(k=e.indexOf(t,k+1)))return h||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:u}),D();if(k===p-1)return D(e.substring(u,k).replace(R,t));if(t!==l||e[k+1]!==l){if(t===l||0===k||e[k-1]!==l){var M=O(-1===A?C:Math.min(C,A));if(e[k+1+M]===r){S.push(e.substring(u,k).replace(R,t)),u=k+1+M+f,C=e.indexOf(r,u),A=e.indexOf(n,u);break}var I=O(A);if(e.substr(k+1+I,m)===n){if(S.push(e.substring(u,k).replace(R,t)),F(k+1+I+m),C=e.indexOf(r,u),v&&(L(),d))return B();if(a&&w.length>=a)return B(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:u}),k++}}else k++}return D();function P(e){w.push(e),_=u}function O(t){var r=0;if(-1!==t){var n=e.substring(k+1,t);n&&""===n.trim()&&(r=n.length)}return r}function D(t){return h||(void 0===t&&(t=e.substr(u)),S.push(t),u=p,P(S),v&&L()),B()}function F(t){u=t,P(S),S=[],A=e.indexOf(n,u)}function B(e){return{data:w,errors:E,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:_+(c||0)}}}function L(){i(B()),w=[],E=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function v(e){var t=e.data,r=a[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,w(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:E,resume:E};if(b(r.userStep)){for(var i=0;i{try{return ee.parse(e.replace(/^\ufeff/,""),{header:!0}).data}catch(e){return console.log(e),{}}};let re=null;const ne=async e=>{if(re)return re[e];const{hash:t}=await Y;try{const r=localStorage.getItem("sczh:data");return!!r&&(re=JSON.parse(r),re.hash!==t?(re=null,localStorage.removeItem("sczh:data"),localStorage.removeItem("sczh:data"),!1):re[e])}catch(e){console.log(e)}return!1},oe=(e,t)=>{re||(re={hash:H.hash}),re[e]=t;const r=JSON.stringify(re);try{localStorage.setItem("sczh:data",r)}catch(e){console.log(e)}},ie=new Map;let ae=!1;const se=async(e=!1)=>{if(!ae){let t=await ne("phrase");t||(t=await Z("/data/phrase.csv"),oe("phrase",t));te(t).forEach(t=>{if(t&&t.name){const r=E(t.name),n=E(t.en,!0);r&&(n||e)&&ie.set(r,v(n))}}),ae=!0}return ie};let ce=null;const le=Object.freeze;Object.freeze=new Proxy(le,{apply:(e,t,[r])=>r});const ue=/^function\s\w\((\w)\){var\s(\w)=(\w)\[\1\];if\(void\s0!==\2\)return\s\2\.exports;var\s(\w)=\3\[\1\]={id:\1,loaded:!1,exports:{}};return\s\w\[\1\]\.call\(\4\.exports,\4,\4\.exports,\w\),\4\.loaded=!0,\4\.exports}$/,de=Function.prototype.call;let he={Reflect:window.Reflect};Function.prototype.call=new Proxy(de,{apply(e,t,r){var n;if(null!=r&&null!==(n=r[3])&&void 0!==n&&n.toString&&ue.test(r[3].toString())){ce=r[3];window.unsafeWindow||window;0,Function.prototype.call=de}return he.Reflect.apply(e,t,r)}});const pe=async(e,t)=>{let r;try{const{moduleId:n}=await Y;r=((e,t)=>{let r,n=((e,t)=>{let r=e+t,n=[];for(let o=e-t;o<=r;o++)o>=0&&o!==e&&n.push(o);return n.unshift(e),n})(e,10);for(let e=0;eawait pe("AOBA",e=>e.loaders&&e.Text&&e.BLEND_MODES);let me=null;async function ge(){const e=await(async()=>(await pe("PHRASE",e=>{var t,r;return null==e||null===(t=e.default)||void 0===t||null===(r=t._polyglot)||void 0===r?void 0:r.phrases})).default._polyglot.phrases)();if(e){0,me=await se();for(let[t,r]of me)e[t]=r}}const ye=new Map,ve=new Map,we=new Map;let Ee=!1;const Se=async()=>{if(!Ee){let e=await ne("item");e||(e=await Z("/data/item.csv"),oe("item",e));te(e).forEach(e=>{if(e&&e.text){const t=E(e.text),r=E(e.trans,!0),n=w(e.type)||"normal";t&&r&&t!==r&&("limit"===n?ve.set(t,r):"note"===n?we.set(t,r):ye.set(t,r))}}),Ee=!0}return{itemMap:ye,itemLimitMap:ve,itemNoteMap:we}},_e=new Map;let be=!1;const xe=async()=>{if(!be){let e=await ne("name");e||(e=await Z("/data/name.csv"),oe("name",e));te(e).forEach(e=>{const t=w(e.name),r=w(e.trans);t&&r&&t!==r&&_e.set(t,r)}),be=!0}return _e};let Te=new Map,ke=!1;var Ce=t((function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n>>6-2*o);return r}};e.exports=r}()})),Ae={utf8:{stringToBytes:function(e){return Ae.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Ae.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var f=i._ff,m=i._gg,g=i._hh,y=i._ii;for(p=0;p>>0,u=u+w>>>0,d=d+E>>>0,h=h+S>>>0}return t.endian([l,u,d,h])};i._ff=function(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+(o>>>0)+a;return(s<>>32-i)+t},i._gg=function(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+(o>>>0)+a;return(s<>>32-i)+t},i._hh=function(e,t,r,n,o,i,a){var s=e+(t^r^n)+(o>>>0)+a;return(s<>>32-i)+t},i._ii=function(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+(o>>>0)+a;return(s<>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,r){if(null==e)throw new Error("Illegal argument "+e);var n=t.wordsToBytes(i(e,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):t.bytesToHex(n)}}()}));const Oe=new Map,De=new Map,Fe=new Map;let Be=!1,Le=null;const Ne=e=>(e.communications&&e.communications.length?e.communications.forEach(e=>{De.set(e.communicationId,e.title)}):e.idol&&e.idol.produceIdolEvents?(e.idol.produceIdolEvents.forEach(e=>{De.set(e.id,e.title)}),e.idol.produceAfterEvents.forEach(e=>{De.set(e.id,e.title)})):e.supportIdol&&e.supportIdol.produceSupportIdolEvents?e.supportIdol.produceSupportIdolEvents.forEach(e=>{De.set(e.id,e.title)}):e.gameEvents?e.gameEvents.forEach(e=>{e.communications.forEach(e=>{De.set(e.id,`${e.name} ${e.title}`)})}):e.specialEvents&&e.specialEvents.forEach(e=>{e.communications.forEach(e=>{De.set(e.id,`${e.name} ${e.title}`)})}),De),je=e=>{const t=te(e),r=new Map;return t.forEach(e=>{const t=w(e.id),n=E(e.text),o=E(e.trans,!0),i=w(e.name);if(n&&o){const e=Pe(n);if(t&&!/^0+$/.test(t)&&"select"!==t){const n=t+e;r.set(n,v(o))}else"select"===t?r.set(e+"-select",v(o)):r.set(e,v(o))}t&&i&&"info"===t&&r.set("name",i)}),r},He=async()=>{if(!Be){let e=await ne("comm-story");e||(e=await Z("/data/comm-story.csv"),oe("comm-story",e));te(e).forEach(e=>{if(e&&e.ja){const t=E(e.ja),r=E(e.en,!0);t&&r&&t!==r&&Fe.set(t,r)}}),Be=!0}return Fe};let Ue=new Map,ze=!1;const Ge=async()=>{if(!ze){let e=await ne("type-text");e||(e=await Z("/data/type-text.csv"),oe("type-text",e));te(e).forEach(e=>{if(e&&e.ja){const t=E(e.ja),r=E(e.en,!0);t&&r&&t!==r&&Ue.set(t,r)}});const t=await He();Ue=new Map([...t,...Ue]),ze=!0}return Ue};let $e=new Map,We=new Map;const Ke=[],Xe=e=>{e&&e.fontFamily&&(e.fontFamily===G.HEITI_JA?Reflect.set(e,"fontFamily",G.HEITI_TRANS):e.fontFamily===G.YUAN_JA&&Reflect.set(e,"fontFamily",G.YUAN_TRANS))},Ve=(e,t,r)=>{let n=e,o=S(e);return t.has(o)?(n="​"+t.get(o),"on"!=H.originalFont&&Xe(r)):e.startsWith("​")||"on"!=H.originalFont&&(e=>{e&&e.fontFamily&&(e.fontFamily===G.HEITI_TRANS?Reflect.set(e,"fontFamily",G.HEITI_JA):e.fontFamily===G.YUAN_TRANS&&Reflect.set(e,"fontFamily",G.YUAN_JA))})(r),n},Je=(e,t,r=!1)=>{if(!y(e))return e;let n=e;return e.startsWith("​")?"on"!=H.originalFont&&Xe(t):e.trim()&&(r?(n=Ve(e,We,t),(e=>{Ke.push(e),setTimeout(()=>Ke.shift(),1e4)})(e)):(e=>{let t=!1;return Ke.forEach(r=>{r.startsWith(e)&&(t=!0)}),t})(e)||e.startsWith("‌")||(n=Ve(e,$e,t))),n};async function qe(){let e=await fe();if(!e)return;try{$e=await(async()=>{if(!ke){let e=await ne("common");e||(e=await Z("/data/common.csv"),oe("common",e));te(e).forEach(e=>{if(e&&e.ja){const t=E(e.ja),r=E(e.en,!0);t&&r&&t!==r&&Te.set(t,r)}});const{itemMap:t}=await Se(),r=await xe();Te=new Map([...t,...r,...Te]),ke=!0}return Te})(),We=await Ge()}catch(e){}const t=e.Text.prototype.typeText;e.Text.prototype.typeText=function(...e){const r=e[0];return e[0]=Je(r,this.style,!0),t.apply(this,e)};const r=e.Text.prototype.updateText;e.Text.prototype.updateText=function(e){if(this.localStyleID!==this._style.styleID&&(this.dirty=!0,this._style.styleID),this.dirty||!e){0;const t=Je(this._text,this._style);return Reflect.set(this,"_text",t),r.call(this,e)}}}const Qe=new Map;let Ye=!1;new Map;let Ze=null;const et=async()=>(Ze||(Ze=(async()=>{if(!Ye){let e=await ne("image");e||(e=await Z("/data/image.csv"),oe("image",e));te(e).forEach(e=>{if(e&&e.name){const t=w(e.name),r=w(e.url),n=w(e.version)||"1";t&&r&&Qe.set(t,{url:r,version:n})}}),Ye=!0}return Qe})()),await Ze);let tt=!1;async function rt(){let e=await fe();if(!e||tt)return;const t=e.loaders.Resource.prototype._loadElement,r=async function(e){try{const t=await et();this.url;if("image"===e&&t.has(this.name)){const e=t.get(this.name);this.url.endsWith("v="+e.version)&&(this.url=`${H.origin}/data/image/${e.url}?V=${H.hash}`,this.crossOrigin=!0)}else;}catch(e){}return t.call(this,e)},n=new Proxy(e.loaders.Resource,{construct(e,t,n){var o=Reflect.construct(e,t,n);return new Proxy(o,{get:(e,t,n)=>"_loadElement"==t?r:Reflect.get(e,t,n)})},get:(e,t,r)=>Reflect.get(e,t,r)});Object.defineProperty(e.loaders,"Resource",{value:n}),tt=!0}var nt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ot=function(){return o.Date.now()};var it=function(e){return"symbol"==typeof e||g(e)&&"[object Symbol]"==f(e)},at=/^\s+|\s+$/g,st=/^[-+]0x[0-9a-f]+$/i,ct=/^0b[01]+$/i,lt=/^0o[0-7]+$/i,ut=parseInt;var dt=function(e){if("number"==typeof e)return e;if(it(e))return NaN;if(nt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(at,"");var r=ct.test(e);return r||lt.test(e)?ut(e.slice(2),r?2:8):st.test(e)?NaN:+e},ht=Math.max,pt=Math.min;var ft=function(e,t,r){var n,o,i,a,s,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,l=t,a=e.apply(i,r)}function f(e){return l=e,s=setTimeout(g,t),u?p(e):a}function m(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-l>=i}function g(){var e=ot();if(m(e))return y(e);s=setTimeout(g,function(e){var r=t-(e-c);return d?pt(r,i-(e-l)):r}(e))}function y(e){return s=void 0,h&&n?p(e):(n=o=void 0,a)}function v(){var e=ot(),r=m(e);if(n=arguments,o=this,c=e,r){if(void 0===s)return f(c);if(d)return clearTimeout(s),s=setTimeout(g,t),p(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=dt(t)||0,nt(r)&&(u=!!r.leading,i=(d="maxWait"in r)?ht(dt(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),l=0,n=c=o=s=void 0},v.flush=function(){return void 0===s?a:y(ot())},v},mt=t((function(e,t){ /* @license Papa Parse v4.6.3 https://github.com/mholt/PapaParse License: MIT */ -Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e.exports=function(){var e,t,r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,o=n&&/(\?|&)papaworker(=|&|$)/.test(r.location.search),i=!1,a={},s=0,c={parse:function(t,n){var o=(n=n||{}).dynamicTyping||!1;if(x(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!x(n.transform)&&n.transform,n.worker&&c.WORKERS_SUPPORTED){var l=function(){if(!c.WORKERS_SUPPORTED)return!1;if(!i&&null===c.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var t=c.SCRIPT_PATH||e;t+=(-1!==t.indexOf("?")?"&":"?")+"papaworker";var n=new r.Worker(t);return n.onmessage=w,n.id=s++,a[n.id]=n,n}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=x(n.step),n.chunk=x(n.chunk),n.complete=x(n.complete),n.error=x(n.error),delete n.worker,void l.postMessage({input:t,config:n,workerId:l.id})}var u=null;return t===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(u=new m(n)).getStream():("string"==typeof t?u=n.download?new d(n):new p(n):!0===t.readable&&x(t.read)&&x(t.on)?u=new f(n):(r.File&&t instanceof File||t instanceof Object)&&(u=new h(n)),u.stream(t))},unparse:function(e,t){var r=!1,n=!0,o=",",i="\r\n",a='"',s=!1;"object"==typeof t&&("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(s=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(n=t.header));var l=new RegExp(y(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,s);if("object"==typeof e[0])return d(u(e[0]),e,s)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:u(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],s);throw"exception: Unable to serialize unrecognized input";function u(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function d(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(s&&n){for(var l=0;l0&&(a+=o),a+=h(e[l],l);t.length>0&&(a+=i)}for(var u=0;u0&&!f&&(a+=o);var w=s&&c?e[v]:v;a+=h(t[u][w],v)}u0&&!f)&&(a+=i)}}return a}function h(e,t){return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(e=e.toString().replace(l,a+a),"boolean"==typeof r&&r||Array.isArray(r)&&r[t]||function(e,t){for(var r=0;r-1)return!0;return!1}(e,c.BAD_DELIMITERS)||e.indexOf(o)>-1||" "===e.charAt(0)||" "===e.charAt(e.length-1)?a+e+a:e)}}};if(c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!n&&!!r.Worker,c.SCRIPT_PATH=null,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=v,c.ParserHandle=g,c.NetworkStreamer=d,c.FileStreamer=h,c.StringStreamer=p,c.ReadableStreamStreamer=f,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=m),r.jQuery){var l=r.jQuery;l.fn.parse=function(e){var t=e.config||{},n=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!r.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o=this._config.preview;if(o)r.postMessage({results:a,workerId:c.WORKER_ID,finished:l});else if(x(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return;a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!l||!x(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||a&&a.meta.paused||this._nextChunk(),a}},this._sendError=function(e){x(this._config.error)?this._config.error(e):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open("GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o),t.setRequestHeader("If-None-Match","webkit-no-cache")}try{t.send()}catch(e){this._chunkError(e.message)}n&&0===t.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substr(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function h(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),u.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function p(e){var t;e=e||{},u.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,r=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(r)}}}function f(e){e=e||{},u.call(this,e);var t=[],r=!0,n=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=b((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=b((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=b((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=b((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(e){var t=require("stream").Duplex,r=_(e),n=!0,o=!1,i=[],a=null;this._onCsvData=function(e){for(var t=e.data,r=0;re.preview?r.abort():f(p,a)}}}function m(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function g(){if(p&&n&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines)for(var t=0;t=h.length?"__parsed_extra":h[r]),e.transform&&(i=e.transform(i,o)),i=E(o,i),"__parsed_extra"===o?(n[o]=n[o]||[],n[o].push(i)):n[o]=i}p.data[t]=n,e.header&&(r>h.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+r,l+t):r1&&o[0].length=n.length/2?"\r\n":"\r"}(o,s)),n=!1,e.delimiter)x(e.delimiter)&&(e.delimiter=e.delimiter(o),p.meta.delimiter=e.delimiter);else{var l=function(t,r,n,o){for(var i,a,s,l=[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP],u=0;u1&&(h+=Math.abs(w-s),s=w):s=0}g.data.length>0&&(p/=g.data.length-f),(void 0===a||h>a)&&p>1.99&&(a=h,i=d)}return e.delimiter=i,{successful:!!i,bestDelimiter:i}}(o,e.newline,e.skipEmptyLines,e.comments);l.successful?e.delimiter=l.bestDelimiter:(n=!0,e.delimiter=c.DefaultDelimiter),p.meta.delimiter=e.delimiter}var d=_(e);return e.preview&&e.header&&d.preview++,t=o,r=new v(d),p=r.parse(t,i,a),g(),u?{meta:{paused:!0}}:p||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,r.abort(),t=t.substr(r.getCharIndex())},this.resume=function(){u=!1,a.streamer.parseChunk(t,!0)},this.aborted=function(){return d},this.abort=function(){d=!0,r.abort(),p.meta.aborted=!0,x(e.complete)&&e.complete(p),t=""}}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){var t,r=(e=e||{}).delimiter,n=e.newline,o=e.comments,i=e.step,a=e.preview,s=e.fastMode,l=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof r||c.BAD_DELIMITERS.indexOf(r)>-1)&&(r=","),o===r)throw"Comment character same as delimiter";!0===o?o="#":("string"!=typeof o||c.BAD_DELIMITERS.indexOf(o)>-1)&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var u=0,d=!1;this.parse=function(e,c,h){if("string"!=typeof e)throw"Input must be a string";var p=e.length,f=r.length,m=n.length,g=o.length,v=x(i);u=0;var w=[],E=[],S=[],_=0;if(!e)return B();if(s||!1!==s&&-1===e.indexOf(t)){for(var b=e.split(n),T=0;T=a)return w=w.slice(0,a),B(!0)}}return B()}for(var k,C=e.indexOf(r,u),A=e.indexOf(n,u),R=new RegExp(y(l)+y(t),"g");;)if(e[u]!==t)if(o&&0===S.length&&e.substr(u,g)===o){if(-1===A)return B();u=A+m,A=e.indexOf(n,u),C=e.indexOf(r,u)}else if(-1!==C&&(C=a)return B(!0)}else for(k=u,u++;;){if(-1===(k=e.indexOf(t,k+1)))return h||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:u}),D();if(k===p-1)return D(e.substring(u,k).replace(R,t));if(t!==l||e[k+1]!==l){if(t===l||0===k||e[k-1]!==l){var M=O(-1===A?C:Math.min(C,A));if(e[k+1+M]===r){S.push(e.substring(u,k).replace(R,t)),u=k+1+M+f,C=e.indexOf(r,u),A=e.indexOf(n,u);break}var I=O(A);if(e.substr(k+1+I,m)===n){if(S.push(e.substring(u,k).replace(R,t)),F(k+1+I+m),C=e.indexOf(r,u),v&&(L(),d))return B();if(a&&w.length>=a)return B(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:u}),k++}}else k++}return D();function P(e){w.push(e),_=u}function O(t){var r=0;if(-1!==t){var n=e.substring(k+1,t);n&&""===n.trim()&&(r=n.length)}return r}function D(t){return h||(void 0===t&&(t=e.substr(u)),S.push(t),u=p,P(S),v&&L()),B()}function F(t){u=t,P(S),S=[],A=e.indexOf(n,u)}function B(e){return{data:w,errors:E,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:_+(c||0)}}}function L(){i(B()),w=[],E=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function w(e){var t=e.data,r=a[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(x(r.userStep)){for(var i=0;i\n #sczh-story-tool {\n position: absolute;\n display: none;\n background: #ffffff;\n border-radius: 24px;\n box-sizing: border-box;\n font-family: sczh-yuanti;\n align-items: center;\n justify-content: center;\n color: #ff6499;\n text-shadow: 0 0 6px #fff;\n cursor: pointer;\n user-select: none;\n width: 100px;\n height: 100px;\n font-size: 32px;\n border: 7px solid transparent;\n border-image: url(${H.origin}/data/image/border.png);\n border-image-slice: 7;\n transform-origin: top right;\n }\n .story-tool-btns {\n width: 100%;\n height: 100%;\n display: none;\n }\n .story-tool-btns .btn-download-sczh,\n .story-tool-btns label {\n flex: 1;\n height: 100%;\n background: #fff;\n display: flex;\n box-sizing: content-box;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n color: #c0aade;\n text-shadow: 0 0 6px #fff;\n }\n .story-tool-btns .btn-download-sczh:hover {\n color: #9f66ec;\n }\n .story-tool-btns label {\n color: rgb(242, 156, 199);\n border-right: 1px solid #c9c9c9;\n }\n #sczh-story-tool .btn-close-sczh {\n height: 25px;\n width: 50px;\n background: rgba(0, 0, 0, 0.58);\n color: #fff;\n letter-spacing: 2px;\n position: absolute;\n right: -25px;\n top: -20px;\n border-radius: 4px;\n display: none;\n align-items: center;\n justify-content: center;\n z-index: 1;\n font-family: sczh-heiti;\n font-size: 15px;\n }\n #sczh-story-tool:hover {\n width: 200px;\n }\n #sczh-story-tool:hover .story-tool-btns {\n display: flex;\n }\n #sczh-story-tool:hover .btn-close-sczh {\n display: flex;\n }\n #sczh-story-tool:hover > .text-sczh {\n display: none;\n }\n #sczh-story-tool .btn-close-sczh:hover {\n background: rgba(0, 0, 0, 0.9);\n }\n .story-tool-btns label:hover {\n color: #f270b1;\n }\n .story-tool-btns .btn-download-sczh:hover,\n .story-tool-btns label:hover {\n background-color: #f7f7f7;\n }\n \n
Story\n X\n \n
\n \n
DL
\n
\n
\n `;let yt=!1;const vt=e=>{if(yt)return;yt=!0,document.body.insertAdjacentHTML("beforeend",gt);const t=document.getElementById("sczh-story-tool"),r=ft(()=>{const r=[.017,.22],n=window.innerHeight,o=window.innerWidth;let i=n,a=o,s=0,c=0;n/o>9/16?(i=9*o/16,s=(n-i)/2):(a=16*n/9,c=(o-a)/2),t.style.right=Math.floor(c+r[0]*a)+"px",t.style.top=Math.floor(s+r[1]*i)+"px",t.style.transform=`scale(${(i/900).toFixed(3)})`,e.name?t.style.display="flex":t.style.display="none"},300);r(),window.addEventListener("resize",r);document.getElementById("btn-download-sczh").addEventListener("click",(function(){if(e.name){const t=mt.unparse(e.list);T(t,e.filename)}}));document.getElementById("btn-close-sczh").addEventListener("click",(function(){t.style.display="none",H.story="normal",X()}));document.getElementById("ipt-preview-sczh").addEventListener("change",(function(){const t=this.files;t.length&&t.forEach(t=>{const r=new FileReader;r.onload=t=>{const r=t.target.result,n=Ne(r);if(n.has("name")){const t=n.get("name");e.preview.set(t,n),(e=>{const t=[...e].slice(-5).map(e=>(e[1]=[...e[1]],e));sessionStorage.setItem("sczh:preview",JSON.stringify(t))})(e.preview),alert("Succesfully imported "+t)}},r.readAsText(t)})}))},wt=(e,t="EMPTY")=>e.sort((e,r)=>{let n=e,o=r;return"EMPTY"!==t&&(n=e[t],o=r[t]),o||(o=""),n||(n=""),o.length>n.length?1:n.length>o.length?-1:0}),Et=new Map;let St=!1;const _t=async()=>{if(!St){let e=await ne("noun-fix");e||(e=await Z("/data/etc/noun-fix.csv"),oe("noun-fix",e));const t=te(e);wt(t,"text").forEach(e=>{const t=w(e.text),r=w(e.fixed);t&&Et.set(t,r)}),St=!0}return Et},bt=new Map;let xt=!1;var Tt,kt=((Tt=function(e){if(!(this instanceof Tt))return new Tt(e);this.options=this.extend(e,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[],excludeDoNotTrack:!0,excludePixelRatio:!0}),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map}).prototype={extend:function(e,t){if(null==e)return t;for(var r in e)null!=e[r]&&t[r]!==e[r]&&(t[r]=e[r]);return t},get:function(e){var t=this,r={data:[],addPreprocessedComponent:function(e){var n=e.value;"function"==typeof t.options.preprocessor&&(n=t.options.preprocessor(e.key,n)),r.data.push({key:e.key,value:n})}};r=this.userAgentKey(r),r=this.languageKey(r),r=this.colorDepthKey(r),r=this.deviceMemoryKey(r),r=this.pixelRatioKey(r),r=this.hardwareConcurrencyKey(r),r=this.screenResolutionKey(r),r=this.availableScreenResolutionKey(r),r=this.timezoneOffsetKey(r),r=this.sessionStorageKey(r),r=this.localStorageKey(r),r=this.indexedDbKey(r),r=this.addBehaviorKey(r),r=this.openDatabaseKey(r),r=this.cpuClassKey(r),r=this.platformKey(r),r=this.doNotTrackKey(r),r=this.pluginsKey(r),r=this.canvasKey(r),r=this.webglKey(r),r=this.webglVendorAndRendererKey(r),r=this.adBlockKey(r),r=this.hasLiedLanguagesKey(r),r=this.hasLiedResolutionKey(r),r=this.hasLiedOsKey(r),r=this.hasLiedBrowserKey(r),r=this.touchSupportKey(r),r=this.customEntropyFunction(r),this.fontsKey(r,(function(r){var n=[];t.each(r.data,(function(e){var t=e.value;t&&"function"==typeof t.join&&(t=t.join(";")),n.push(t)}));var o=t.x64hash128(n.join("~~~"),31);return e(o,r.data)}))},customEntropyFunction:function(e){return"function"==typeof this.options.customFunction&&e.addPreprocessedComponent({key:"custom",value:this.options.customFunction()}),e},userAgentKey:function(e){return this.options.excludeUserAgent||e.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()}),e},getUserAgent:function(){return navigator.userAgent},languageKey:function(e){return this.options.excludeLanguage||e.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),e},colorDepthKey:function(e){return this.options.excludeColorDepth||e.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1}),e},deviceMemoryKey:function(e){return this.options.excludeDeviceMemory||e.addPreprocessedComponent({key:"device_memory",value:this.getDeviceMemory()}),e},getDeviceMemory:function(){return navigator.deviceMemory||-1},pixelRatioKey:function(e){return this.options.excludePixelRatio||e.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()}),e},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(e){return this.options.excludeScreenResolution?e:this.getScreenResolution(e)},getScreenResolution:function(e){var t;return t=this.options.detectScreenOrientation&&window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height],e.addPreprocessedComponent({key:"resolution",value:t}),e},availableScreenResolutionKey:function(e){return this.options.excludeAvailableScreenResolution?e:this.getAvailableScreenResolution(e)},getAvailableScreenResolution:function(e){var t;return window.screen.availWidth&&window.screen.availHeight&&(t=this.options.detectScreenOrientation?window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==t&&e.addPreprocessedComponent({key:"available_resolution",value:t}),e},timezoneOffsetKey:function(e){return this.options.excludeTimezoneOffset||e.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),e},sessionStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&e.addPreprocessedComponent({key:"session_storage",value:1}),e},localStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&e.addPreprocessedComponent({key:"local_storage",value:1}),e},indexedDbKey:function(e){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&e.addPreprocessedComponent({key:"indexed_db",value:1}),e},addBehaviorKey:function(e){return!this.options.excludeAddBehavior&&document.body&&document.body.addBehavior&&e.addPreprocessedComponent({key:"add_behavior",value:1}),e},openDatabaseKey:function(e){return!this.options.excludeOpenDatabase&&window.openDatabase&&e.addPreprocessedComponent({key:"open_database",value:1}),e},cpuClassKey:function(e){return this.options.excludeCpuClass||e.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()}),e},platformKey:function(e){return this.options.excludePlatform||e.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()}),e},doNotTrackKey:function(e){return this.options.excludeDoNotTrack||e.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()}),e},canvasKey:function(e){return!this.options.excludeCanvas&&this.isCanvasSupported()&&e.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()}),e},webglKey:function(e){return!this.options.excludeWebGL&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()}),e},webglVendorAndRendererKey:function(e){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()}),e},adBlockKey:function(e){return this.options.excludeAdBlock||e.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()}),e},hasLiedLanguagesKey:function(e){return this.options.excludeHasLiedLanguages||e.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()}),e},hasLiedResolutionKey:function(e){return this.options.excludeHasLiedResolution||e.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()}),e},hasLiedOsKey:function(e){return this.options.excludeHasLiedOs||e.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()}),e},hasLiedBrowserKey:function(e){return this.options.excludeHasLiedBrowser||e.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()}),e},fontsKey:function(e,t){return this.options.excludeJsFonts?this.flashFontsKey(e,t):this.jsFontsKey(e,t)},flashFontsKey:function(e,t){return this.options.excludeFlashFonts?t(e):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?t(e):void this.loadSwfAndDetectFonts((function(r){e.addPreprocessedComponent({key:"swf_fonts",value:r.join(";")}),t(e)})):t(e)},jsFontsKey:function(e,t){var r=this;return setTimeout((function(){var n=["monospace","sans-serif","serif"],o=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];r.options.extendedJsFonts&&(o=o.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),o=(o=o.concat(r.options.userDefinedFonts)).filter((function(e,t){return o.indexOf(e)===t}));var i=document.getElementsByTagName("body")[0],a=document.createElement("div"),s=document.createElement("div"),c={},l={},u=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},d=function(){for(var e=[],t=0,r=n.length;tt.name?1:e.name=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==r){if((r=r.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(r.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(r.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===r.indexOf("win")&&-1===r.indexOf("linux")&&-1===r.indexOf("mac"))!=("Other"===e))return!0}return n.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e},getHasLiedBrowser:function(){var e,t=navigator.userAgent.toLowerCase(),r=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==r)return!0;var n,o=eval.toString().length;if(37===o&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===o&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===o&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),n=!0}catch(e){n=!1}}return!(!n||"Firefox"===e||"Other"===e)},isCanvasSupported:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var e=this.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},hasSwfObjectLoaded:function(){return void 0!==window.swfobject},hasMinFlashInstalled:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var e=document.createElement("div");e.setAttribute("id",this.options.swfContainerId),document.body.appendChild(e)},loadSwfAndDetectFonts:function(e){var t="___fp_swf_loaded";window[t]=function(t){e(t)};var r=this.options.swfContainerId;this.addFlashDivNode();var n={onReady:t};window.swfobject.embedSWF(this.options.swfPath,r,"1","1","9.0.0",!1,n,{allowScriptAccess:"always",menu:"false"},{})},getWebglCanvas:function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},each:function(e,t,r){if(null!==e)if(this.nativeForEach&&e.forEach===this.nativeForEach)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Multiply:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Rotl:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])},x64LeftShift:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){t=t||0;for(var r=(e=e||"").length%16,n=e.length-r,o=[0,t],i=[0,t],a=[0,0],s=[0,0],c=[2277735313,289559509],l=[1291169091,658871167],u=0;u>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}},Tt.VERSION="1.8.0",Tt);const Ct=!!window.GM_xmlhttpRequest,At=(e,t={})=>{const{method:r="GET",headers:n,responseType:o="json",data:i,cors:a=!1,credentials:s}=t;return a?fetch(e,{body:i,headers:n,method:r,mode:"cors",credentials:s}).then(e=>e.json()):new Promise((t,a)=>{if(!Ct)return a("GM_XHR MISSING");window.GM_xmlhttpRequest({method:r,url:e,headers:n,responseType:o,data:i,onload({status:e,responseText:r,statusText:n}){e>=200&&e<300?t(r):a(n)},onerror(e){a(e)}})})};let Rt="",Mt="",It="",Pt=null;const Ot=e=>new Promise(t=>{setTimeout(t,e)}),Dt=()=>(Pt||(Pt=new Promise((e,t)=>{(async()=>{const e=await At("https://biz.caiyunapp.com/test_cookies",{cors:!0,credentials:"include",headers:{"X-Authorization":"token "+Q.data.cyweb_token}});if("ok"!==e.status||!e.cookies.cy_user)return!1;{const t=JSON.parse(decodeURIComponent(e.cookies.cy_user));Mt=t._id||"5a096eec830f7876a48aac47"}})().then(async()=>{if(!Mt&&!Rt){(new kt).get(e=>Rt=e);let e=5;for(;!Rt||--e>0;)await Ot(300);if(!Rt)throw new Error("timeout: get browser id ")}return At("https://api.interpreter.caiyunai.com/v1/page/auth",{cors:!0,method:"POST",headers:{"X-Authorization":"token "+Q.data.cyweb_token,"Content-Type":"application/json"},data:JSON.stringify({browser_id:Rt,device_id:"",os_type:"web",title:document.title,url:document.URL,user_id:Mt})})}).then(e=>{if(-1===e.auth_type||!e.page_id)throw new Error("Caiyun api out of limit.");It=e.page_id}).then(e).catch(t)})),Pt);var Ft=Object.prototype.hasOwnProperty,Bt=Array.isArray,Lt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jt=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(Bt(r)){for(var n=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(i):a<128?o+=Lt[a]:a<2048?o+=Lt[192|a>>6]+Lt[128|63&a]:a<55296||a>=57344?o+=Lt[224|a>>12]+Lt[128|a>>6&63]+Lt[128|63&a]:(i+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(i)),o+=Lt[240|a>>18]+Lt[128|a>>12&63]+Lt[128|a>>6&63]+Lt[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Bt(e)){for(var r=[],n=0;n0?d+u:""});const er=async e=>{let t=Q.data.language||"zh-CN",r=Zt({client:"gtx",sl:"ja",tl:t,hl:t,ie:"UTF-8",oe:"UTF-8"});["at","bd","ex","ld","md","qca","rw","rm","ss","t"].forEach(e=>{r+="&dt="+e});const n=Zt({q:e});return(e=>{const t=JSON.parse(e);if(t[0]&&t[0].length){return t[0].map(e=>e[0]).join("").split("\n")}return[]})(await At("https://translate.google.com/translate_a/single?"+r,{data:n,method:"POST",headers:{accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8",referer:"https://translate.google.com",origin:"https://translate.google.com"}}))},tr=(e,t,r)=>{t.forEach(t=>{let n=t,o="";for(;n>=0;){n--;let t=e.shift();y(t)&&(t||(t="……"),o+=t+"\n")}o&&r.push(o.slice(0,o.length-1))})},rr=e=>{let t=[],r=e.map(e=>S(e));return r.forEach(e=>{let r=[...e].filter(e=>"\n"===e).length;t.push(r)}),[r.join("\n"),t]},nr=(e,t=4e3)=>{let r="",n=[],o=0;return e.split("\n").forEach(e=>{r+=e,o+=new Blob([e]).size,o>t?(n.push(r),o=0,r=""):r+="\n"}),r&&n.push(r.replace(/\n$/,"")),n},or=async e=>{try{let t=M("caiyuLimit");if(t&&Date.now()-t<36e5)return[];let[r,n]=rr(e),o=nr(r),i=(await Promise.all(o.map(e=>(async(e,t="ja")=>{await Dt(),await Pt;const r=await At("https://api.interpreter.caiyunai.com/v1/page/translator",{cors:!0,method:"POST",headers:{"X-Authorization":"token "+Q.data.cyweb_token,"Content-Type":"application/json"},data:JSON.stringify({cached:!0,os_type:"web",page_id:It,replaced:!0,request_id:Rt||Mt,source:e,trans_type:t+"2zh",url:document.URL})});return r&&r.target?r.target.map(e=>e.target):[]})(e.split("\n"))))).reduce((e,t)=>e.concat(t)),a=[];return tr(i,n,a),a}catch(e){return"Caiyun api out of limit."===e.message&&M("caiyuLimit",Date.now()),b(),[]}},ir=["text","select","comment","title","actionComment","actionComment2","reactionComment","resultLoseComment","resultStartComment","resultWinComment","characterComment","producerComment","comment1","comment2"],ar=async e=>{const t=await(async()=>{if(!xt){let e=await ne("caiyun-prefix");e||(e=await Z("/data/etc/caiyun-prefix.csv"),oe("caiyun-prefix",e));const t=te(e);wt(t,"text").forEach(e=>{const t=w(e.text),r=w(e.fixed);t&&bt.set(t,r)}),xt=!0}return bt})();return C(e,t)},sr=new Map,cr=async(e,t,r,n=!1)=>{if(!e.length)return;const o=await He(),i=await Ge(),{textInfo:a,textList:s}=((e,t,r)=>{const n=[],o=[];return e.forEach((e,i)=>{ir.forEach(a=>{let s=S(e[a]);e[a]&&(t.has(s)?e[a]=v(t.get(s)):r.has(s)?e[a]=v(r.get(s)):(n.push({key:a,index:i}),o.push(s)))})}),{textInfo:n,textList:o}})(e,o,i);if(!a.length)return;const c=t||e;let l=!1,u=[];if(sr.has(c))l=!0,u=sr.get(c);else{let e=Q.data.trans_api,t=[];if("on"===H.auto&&!n){if("caiyun"===e){let e=await ar(s);t=await or(e)}else"google"===e&&(t=await(async e=>{try{let[t,r]=rr(e),n=nr(t),o=(await Promise.all(n.map(e=>er(e)))).reduce((e,t)=>e.concat(t)),i=[];return tr(o,r,i),i}catch(e){return b(),[]}})(s));u=await(async e=>{const t=await _t();return C(e,t)})(t)}sr.set(c,u)}if(!l&&(!t||r)){let e=[];s.forEach((t,r)=>{e.push(k(t),u[r])});let n=b;t&&!r||(n=x),n(e.join("\n"))}u.forEach((t,n)=>{let o=t;const{key:i,index:s}=a[n];"select"===i&&(o=((e,t)=>{if(e.length>t&&!e.includes("\n")){const t=Math.floor(e.length/2)+1;return e.slice(0,t)+"\n"+e.slice(t,e.length)}return e})(o,8)),o=o.replace(/"([^"]*)"/g,"“$1”").replace(/'([^']*)'/g,"“$1”").replace(/‘([^']+)'/g,"“$1”"),0!==n||r||(o+=" ☁️"),e[s][i]=v(o)});const d=await xe();e.forEach(e=>{R(e,d)}),(e=>{e.forEach(e=>{e.text&&!e.text.startsWith("​")&&(e.text="‌"+e.text)})})(e)},lr=new Map,ur=(e,t,r)=>{if(lr.has(e))return lr.get(e);let n=e;for(let[e,o]of t)n=n.replace(e,(...e)=>{let t=o;for(let n=1;n{e.has(o)&&(t=t.replace("$"+n,e.get(o)),i=!0)}),i||(t=t.replace("$"+n,e[n]))}return t}),e.lastIndex=0;return lr.set(e,n),n},dr=(e,t)=>{let r=e.replace(/\$num/g,"([+-+-]?\\d{1,10}\\.?\\d{0,4}?)").replace(/\$percent/g,"([+-+-]?\\d{1,10}\\.?\\d{0,4}?[%%])").replace(/\$unknown/g,"(.+?)").replace(/\$uk/g,"(.+?)");return t.forEach(e=>{r=r.replace(e.re,e.exp),e.re.lastIndex=0}),new RegExp(r,"gi")},hr={expMap:new Map,nounMap:new Map,nounArr:[],loaded:!1},pr=async()=>{const{expMap:e,nounMap:t,nounArr:r,loaded:n}=hr;if(!n){let n=await ne("support-skill");n||(n=await Z("/data/support-skill.csv"),oe("support-skill",n));const o=te(n),i=new Map;wt(o,"text").forEach(e=>{if(e&&e.text){const n=E(e.text),o=E(e.trans,!0),a=w(e.type);n&&o&&("noun"===a?(r.push(_(n)),t.set(n,o)):i.set(n,o))}});const a=[{re:/\$noun/g,exp:`(${r.join("|")})`}];for(let[t,r]of i){const n=dr(t,a);e.set(n,r)}hr.loaded=!0}return{expMap:e,wordMaps:[t]}},fr={expMap:new Map,textMap:new Map,nounMap:new Map,nameMap:new Map,otherMap:new Map,nounArr:[],nameArr:[],otherArr:[],loaded:!1};let mr=null;const gr=async()=>(mr||(mr=(async()=>{const{expMap:e,nounMap:t,textMap:r,nameMap:n,otherMap:o,nounArr:i,nameArr:a,otherArr:s,loaded:c}=fr;if(!c){let c=await ne("skill");c||(c=await Z("/data/skill.csv"),oe("skill",c));const l=te(c),u=new Map;wt(l,"text").forEach(e=>{if(e&&e.text){const c=E(e.text),l=E(e.trans,!0),d=w(e.type);c&&l&&("noun"===d?(i.push(_(c)),t.set(c,l)):"text"===d?r.set(c,l):"name"===d?(a.push(_(c)),n.set(c,l)):"other"===d?(s.push(_(c)),o.set(c,l)):u.set(c.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),l))}});const d=[{re:/\$noun/g,exp:`(${i.join("|")})`},{re:/\$name/g,exp:`(${a.join("|")})`},{re:/\$other/g,exp:`(${s.join("|")})`}];for(let[t,r]of u){const n=dr(t,d);e.set(n,r)}fr.loaded=!0}return{expMap:e,wordMaps:[t,o,n],textMap:r}})()),await mr),yr=(e,t)=>{if(!t){let t=[];return e.forEach((r,n)=>{let o=r.match(/([++]+)$/);o&&o[1]?(t.push(o[1]),e[n]=r.replace(/[++]+$/,"")):t.push("")}),t}e.forEach((r,n)=>{e[n]=r+t[n]})},vr=(e,t,r)=>{if(e&&e[t]){let n=e[t].split("/");n.forEach((e,t)=>{let o=yr(n);((e,t,r)=>{if(!e)return;const{expMap:n,wordMaps:o,textMap:i}=r,a=S(e[t]);let s=a;a&&(i&&i.has(a)?e[t]=v(i.get(a)):(s=ur(a,n,o),a!==s&&(e[t]=v(s))))})(n,t,r),yr(n,o)});let o=n.join("/");o!==e[t]&&(e[t]=v(o))}},wr=async e=>{let t,r,n=e;if(e.gameData)return;e.userSupportIdol&&(n=e.userSupportIdol);const o=n.acquiredSupportSkills;n.supportSkills&&(t=n.supportSkills),e.supportIdol&&e.supportIdol.supportSkills&&(r=e.supportIdol.supportSkills);const i=await pr();t&&t.forEach(e=>{vr(e,"description",i),vr(e,"name",i)}),o&&o.forEach(e=>{vr(e,"description",i),vr(e,"name",i)}),r&&r.forEach(e=>{vr(e,"description",i),vr(e,"name",i)})},Er=(e,t)=>{e.skillEffects&&e.skillEffects.forEach(e=>{vr(e,"effectName",t),vr(e,"effectDescription",t)}),e.rivalMemoryAppealEffects&&e.rivalMemoryAppealEffects.forEach(e=>{vr(e,"effectName",t),vr(e,"effectDescription",t)})},Sr=(e,t,r=!1)=>{e&&(vr(e,"comment",t),vr(e,"name",t),r&&Er(e,t),e.linkSkill&&(vr(e.linkSkill,"comment",t),vr(e.linkSkill,"name",t),r&&Er(e.linkSkill,t)))},_r=(e,t)=>{vr(e,"name",t),vr(e,"description",t)},br=(e,t)=>{e&&e.forEach(e=>{vr(e,"releaseConditions",t),vr(e.passiveSkills,"comment",t),vr(e.passiveSkills,"name",t),Sr(e.skill,t),Sr(e.concertActiveSkill,t),e.activeSkills&&e.activeSkills.forEach(e=>{Sr(e,t)})})},xr=(e,t)=>{e.forEach(e=>{Sr(e,t)})},Tr=(e,t,r=!1)=>{let n=e.userProduceIdol;n&&(n.activeSkills&&n.activeSkills.forEach(e=>{Sr(e,t)}),n.passiveSkills&&n.passiveSkills.forEach(e=>{Sr(e,t)}),n.limitBreaks&&n.limitBreaks.forEach(e=>{Sr(e,t)}),r&&br(n.skillPanels,t))},kr=(e,t)=>{e.forEach(e=>{Sr(e.skill,t,!0)})},Cr=(e,t)=>{e&&e.forEach(e=>{e.userFesDeck&&e.userFesDeck.userFesDeckMembers.forEach(e=>{e.userFesIdol.activeSkills.forEach(e=>{Er(e,t)})}),e.userRaidDeck&&e.userRaidDeck.userRaidDeckMembers.forEach(e=>{e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t,!0)})}),e.rival&&e.rival.rivalSkills.forEach(e=>{Er(e,t)})})},Ar=async e=>{const t=await gr();br(e.idol.skillPanels,t),xr(e.idol.memoryAppeals,t),e.userIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})},Rr=async e=>{const t=await gr();br(e.supportIdol.skillPanels,t),e.userSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)});try{e.supportIdol.supportIdolActiveSkill.activeSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)})}catch(e){}},Mr=async e=>{const t=await gr(),r=e.userFesIdol;r.activeSkills.forEach(e=>{Sr(e,t)}),Sr(r.memoryAppeal,t),r.passiveSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)}),r.userFesIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)}),r.userFesSupportIdols.forEach(e=>{e.userFesSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})})},Ir=Mr,Pr=async e=>{const t=await gr();e.userProduceExSkills.forEach(e=>{_r(e.produceExSkill,t),e.produceExSkillUpgrade&&_r(e.produceExSkillUpgrade.produceExSkill,t)}),e.userIdols&&e.userIdols.forEach(e=>{e.userIdolProduceExSkills&&e.userIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})}),e.userSupportIdols&&e.userSupportIdols.forEach(e=>{e.userSupportIdolProduceExSkills&&e.userSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})})},Or=async e=>{const t=await gr();e.userProduceSupportIdols.forEach(e=>{br(e.skillPanels,t)}),Tr(e,t,!0),e.userProduceLimitedSkills&&e.userProduceLimitedSkills.forEach(e=>{Sr(e.passiveSkills,t),Sr(e.skill,t)});try{br(e.userProduceIdol.userIdol.idol.skillPanels,t)}catch(e){}},Dr=async e=>{const t=await gr(),r=e=>{e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t,!0)}),Sr(e.userFesIdol.memoryAppeal,t,!0),e.userFesIdol.passiveSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t),Er(e,t)})};e.userFesDeck&&e.userFesDeck.userFesDeckMembers.forEach(r),e.userRaidDeck&&e.userRaidDeck.userRaidDeckMembers.forEach(r),kr(e.judges,t),Cr(e.userFesRivals,t),Cr(e.userFesRaidRivals,t)},Fr=async e=>{const t=await gr();e.userProduceSupportIdols.forEach(e=>{Sr(e.activeSkill,t,!0)});let r=e.userProduceIdol;r.activeSkills.forEach(e=>{Sr(e,t,!0)}),Sr(r.memoryAppeal,t,!0),r.passiveSkills.forEach(e=>{Sr(e,t,!0)});let n=e.produceAudition||e.produceConcert;kr(n.judges,t),((e,t)=>{e.forEach(e=>{Er(e.rivalMemoryAppeal,t),e.rivalSkills.forEach(e=>{Er(e,t)})})})(n.rivals,t)},Br=async e=>{if(e.gameData)try{let t=JSON.parse(e.gameData);t.produceAudition||t.produceConcert?await Fr(t):(t.userFesDeck||t.userRaidDeck)&&await Dr(t),e.gameData=JSON.stringify(t)}catch(e){b()}};let Lr=new Map,jr=new Map,Nr=new Map,Hr=new Map,Ur=new Map,zr=!1;let Gr=null,$r=null;const Wr=async()=>($r||($r=(async(e=!1)=>{if(!zr){let e=await ne("mission");e||(e=await Z("/data/mission-re.csv"),oe("mission",e));const t=te(e),r=[],n=[],o=[],i=new Map;wt(t,"text").forEach(e=>{if(e&&e.text){const t=E(e.text),a=E(e.trans,!0),s=w(e.type);t&&a&&("noun"===s?(r.push(_(t)),Nr.set(t,a)):"note"===s?(o.push(_(t)),Ur.set(t,a),i.set(`【${t}】`,`【${a}】`)):"name"===s?(n.push(_(t)),Hr.set(t,a)):"text"===s?Lr.set(t,a):i.set(t,a))}});const a=[{re:/\$name/g,exp:`(${n.join("|")})`},{re:/\$noun/g,exp:`(${r.join("|")})`},{re:/\$note/g,exp:`(${o.join("|")})`}];for(let[e,t]of i){const r=dr(e,a);jr.set(r,t)}zr=!0}const t=[Nr,Ur,Hr];let{itemMap:r}=await Se();return Lr=new Map([...r,...Lr]),{expMap:jr,wordMaps:t,textMap:Lr}})()),Gr=await $r,Gr),Kr=(e,t)=>{if(!e)return;const{expMap:r,wordMaps:n,textMap:o}=Gr,i=S(e[t]);let a=i;i&&(o.has(i)?e[t]=v(o.get(i)):(a=ur(i,r,n),i!==a&&(e[t]=v(a))))},Xr=e=>{e.forEach(e=>{Kr(e.mission,"title"),Kr(e.mission,"comment"),e.mission.missionReward&&e.mission.missionReward.content&&(Kr(e.mission.missionReward.content,"name"),Kr(e.mission.missionReward.content,"comment"))})},Vr=e=>{e.forEach(e=>{let t=e.fesRaidAccumulatedReward;Kr(t,"title"),Kr(t,"comment");let r=t.fesRaidAccumulatedRewardContent;r&&r.content&&(Kr(r.content,"name"),Kr(r.content,"comment"))})},Jr=e=>{e&&e.forEach(e=>{let t=e;Kr(t,"title"),Kr(t,"afterAchievedComment"),Kr(t,"beforeAchievedComment");let r=t.lectureMissionReward;r&&r.content&&(Kr(r.content,"name"),Kr(r.content,"comment"))})},qr=async e=>{await Wr(),Jr(e.lectureMissions)},Qr=["produceItem","recoveryItem","exchangeItem","lotteryTicket","evolutionItem","gashaTicket","scoutTicket","enhancementItem"];let Yr;const Zr=async()=>(Yr||(Yr=Se()),await Yr);let en=[];(window.unsafeWindow||window).printUnknowItems=()=>b(en.join("\n"));const tn=(e,t,{itemMap:r,itemLimitMap:n,itemNoteMap:o})=>{if(!e||"string"!=typeof e[t])return;let i=S(e[t]),a="",s="",c="";if(/[\s\S]+[\r\n]{0,2}\[[^\]]+\]$/.test(i)){let e=i.match(/([\s\S]+)([\r\n]{0,2}\[[^\]]+\])$/);i=e[1].trim();let t=e[2];a=n.has(t)?n.get(t):t}if(/[\s\S]+[\r\n]{0,2}【Exp:\d+】$/.test(i)){let e=i.match(/([\s\S]+)([\r\n]{0,2}【Exp:\d+】)$/);i=e[1].trim(),c=e[2]}if(/[\s\S]+[\r\n]{0,2}[((][^))]+[))]$/.test(i)){let e=i.match(/([\s\S]+)([\r\n]{0,2})[((]([^))]+)[))]$/);i=e[1].trim();let t=e[3];s=o.has(t)?`${e[2]}(${o.get(t)})`:e[2]+"(txt)"}if(r.has(i)){let n=r.get(i);n=`${n}${s}${c}${a}`,e[t]=v(n)}else 0},rn=(e,t)=>{e&&e.shopMerchandises&&e.shopMerchandises.forEach(e=>{tn(e,"title",t),tn(e,"shopTitle",t),tn(e,"comment",t)})},nn=async e=>{let t=e;e.userProduceItems&&(t=e.userProduceItems);const r=await Zr();Array.isArray(t)&&t.forEach(e=>{const t=e[Qr[0]]||e[Qr[1]]||e[Qr[2]]||e[Qr[3]]||e[Qr[4]]||e[Qr[5]]||e[Qr[6]]||e[Qr[7]];tn(t,"name",r),tn(t,"comment",r)})},on=new Map;let an=!1;let sn=null;const cn=async()=>(sn||(sn=(async()=>{if(!an){let e=await ne("story-title");e||(e=await Z("/data/story-title.csv"),oe("story-title",e));te(e).forEach(e=>{const t=w(e.title),r=w(e.trans);t&&r&&t!==r&&on.set(t,r)}),an=!0}return on})()),await sn),ln=(e,t,r)=>{if(e&&e[t]){const n=e[t];r.has(n)&&(e[t]=r.get(n))}},un=async e=>{const t=await cn(),r=[];if(e.communications&&e.communications.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),e.idol&&e.idol.produceIdolEvents&&(e.idol.produceIdolEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),e.idol.produceAfterEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)})),e.supportIdol&&e.supportIdol.produceSupportIdolEvents&&e.supportIdol.produceSupportIdolEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),e.gameEvents&&e.gameEvents.forEach(e=>{e.communications.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)})}),e.specialEvents&&e.specialEvents.forEach(e=>{e.communications.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)})}),e.produceEvents&&e.produceEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),console.log(H.commuTitle),console.log(r),"download"==H.commuTitle){const e=mt.unparse(r);T(e,"commuTitles"),H.commuTitle="normal",X()}},dn=new Map;let hn=!1;let pn=null;const fn=async()=>(pn||(pn=(async()=>{if(!hn){let e=await ne("card-title");e||(e=await Z("/data/card-title.csv"),oe("card-title",e));te(e).forEach(e=>{const t=w(e.title),r=w(e.trans);t&&r&&t!==r&&dn.set(t,r)}),hn=!0}return dn})()),await pn),mn=(e,t,r)=>{const n=e.name.split(/【|】/);t.has(n[2])&&(n[2]=t.get(n[2])),r.has(n[1])&&(n[1]=r.get(n[1])),e.name="【".concat(n[1],"】",n[2])},gn=async e=>{const t=await fn(),r=await xe();e.idol&&mn(e.idol,r,t),e.supportIdol&&mn(e.supportIdol,r,t),e.idolCostumes&&e.idolCostumes.forEach((function(e){mn(e,r,t)})),e.userSupportIdol&&mn(e.userSupportIdol.supportIdol,r,t),e.userProduceSupportIdols&&e.userProduceSupportIdols.forEach((function(e){mn(e.userSupportIdol.supportIdol,r,t)})),e.userIdol&&mn(e.userIdol.idol,r,t),e.userProduceIdol&&(mn(e.userProduceIdol.userIdol.idol,r,t),r&&e.userProduceIdol.userIdol&&e.userProduceIdol.userIdol.idol&&e.userProduceIdol.userIdol.idol.character&&(((e,t)=>{t.has(e.firstName)&&(e.firstName=t.get(e.firstName))})(e.userProduceIdol.userIdol.idol.character,r),((e,t)=>{t.has(e.name)&&(e.name=t.get(e.name))})(e.userProduceIdol.userIdol.idol.character,r))),e.userProduce&&e.userProduce.userProduceIdol&&mn(e.userProduce.userProduceIdol.userIdol.idol,r,t),e.userFesDecks&&e.userFesDecks.forEach((function(e){e.userFesDeckMembers.forEach((function(e){mn(e.idol,r,t),e.idolCostumes.forEach((function(e){mn(e,r,t)}))}))})),e.userFesIdol&&mn(e.userFesIdol.idol,r,t),e.helperSupportIdolOptions&&e.helperSupportIdolOptions.forEach(e=>{b(e.supportIdol.name),mn(e.supportIdol,r,t)})},yn=new Map;let vn=!1;let wn=null;const En=async()=>(wn||(wn=(async()=>{if(!vn){let e=await ne("profile");e||(e=await Z("/data/profile.csv"),oe("profile",e));te(e).forEach(e=>{const t=w(e.name);t&&yn.set(t,e)}),vn=!0}return yn})()),await wn),Sn=(e,t,r)=>{"unit_name"==t&&r[t]?e.unit.name=r[t]:r[t]&&(e[t]=r[t])},_n=(e,t)=>{Sn(e,"arm",t),Sn(e,"birthDay",t),Sn(e,"characterVoice",t),Sn(e,"firstName",t),Sn(e,"hobby",t),Sn(e,"nameKana",t),Sn(e,"place",t),Sn(e,"arm",t),Sn(e,"specialty",t),Sn(e,"starSign",t),Sn(e,"unit_name",t)},bn=async e=>{const t=await En();if(e.name){const r=t.get(e.name);_n(e,r)}if(e.firstName){const t=await xe();t&&t.has(e.firstName)&&(e.firstName=t.get(e.firstName))}if(e.beginnerMissionUnits&&e.beginnerMissionUnits.forEach(e=>{e.idols.forEach(e=>{const r=t.get(e.idol.character.name);_n(e.idol.character,r)})}),e.units&&e.units.forEach(e=>{e.idols.forEach(e=>{const r=t.get(e.character.name);_n(e.character,r)})}),e.userCharacter&&e.userCharacter.character){const r=t.get(e.userCharacter.character.name);_n(e.userCharacter.character,r)}if(e.userFesIdol&&e.userFesIdol.idol&&e.userFesIdol.idol.character){const r=t.get(e.userFesIdol.idol.character.name);_n(e.userFesIdol.idol.character,r)}if(e.idol&&e.idol.character){const r=t.get(e.idol.character.name);_n(e.idol.character,r)}if(e.supportIdol&&e.supportIdol.character){const r=t.get(e.supportIdol.character.name);_n(e.supportIdol.character,r)}},xn=async(e,t="comment")=>{const r=e.map(e=>e[t]).join("").trim();await cr(e,r,!0)},Tn=async(e,t="comment")=>{const r=e.map(e=>e[t]).join("").trim();e.map(e=>e[t]);await cr(e,r,!0,!0)},kn=["actionComment","actionComment2","reactionComment","resultLoseComment","resultStartComment","resultWinComment"],Cn=async e=>{try{if(e.produceAudition){let t=e.produceAudition.judges.map(e=>kn.map(t=>e[t]||"").join("")).join("").trim();await cr(e.produceAudition.judges,t,!0)}if(e.produceConcert){let t=e.produceConcert.judges.map(e=>kn.map(t=>e[t]||"").join("")).join("").trim();await cr(e.produceConcert.judges,t,!0)}}catch(e){b()}},An=async e=>{if(e.judges){let t=e.judges.map(e=>kn.map(t=>e[t]||"").join("")).join("").trim();await cr(e.judges,t,!0)}},Rn=async e=>{if(e.topCharacterReaction)try{const t=[...e.topCharacterReaction.moveReactions,...e.topCharacterReaction.skillReleasedReactions,...e.topCharacterReaction.touchExReactions,...e.topCharacterReaction.touchReactions,...e.topCharacterReaction.waitReactions];await xn(t)}catch(e){b()}},Mn=async e=>{let t=[...e.produceStaffComments||[],...e.produceStaffConcertComments||[],...e.produceStaffFailComments||[],...e.produceStaffSeasonComments||[]];await xn(t)},In=async e=>{if(e.gameData)try{let t=JSON.parse(e.gameData);t.judges?await An(t):await Cn(t),e.gameData=JSON.stringify(t)}catch(e){b()}},Pn=async e=>{if(!e.characterComment)return;let t=[];t=t.concat(e.characterComment),await xn(t)},On=new Map;let Dn=!1;const Fn=async()=>{if(!Dn){let e=await ne("business");e||(e=await Z("/data/business.csv"),oe("business",e));te(e).forEach(e=>{const t=w(e.charaLeft),r=w(e.charaRight),n=w(e.sourceLeft),o=w(e.sourceRight),i=w(e.transLeft),a=w(e.transRight);t&&r&&n&&o&&i&&a&&n!=i&&o!=a&&On.set(t+r,{charaLeft:e.charaLeft,charaRight:e.charaRight,sourceLeft:e.sourceLeft,sourceRight:e.sourceRight,transLeft:e.transLeft,transRight:e.transRight})}),Dn=!0}return On};var Bn={},Ln=!1;const jn=async()=>(Ln||(Ln=xe()),Bn=await xe());var Nn={},Hn=!1;const Un=async()=>(Hn||(Hn=Fn()),Nn=await Fn()),zn=e=>{const t=e.characterLeft.firstName,r=e.characterRight.firstName;if(console.log(t+r),Bn.has(t)&&(e.characterLeft.firstName=Bn.get(t)),Bn.has(r)&&(e.characterRight.firstName=Bn.get(r)),Nn.has(t+r)){const n=Nn.get(t+r);n.transLeft&&(e.commentLeft=n.transLeft),n.transRight&&(e.commentRight=n.transRight)}};var Gn=function(){this.__data__=[],this.size=0};var $n=function(e,t){return e===t||e!=e&&t!=t};var Wn=function(e,t){for(var r=e.length;r--;)if($n(e[r][0],t))return r;return-1},Kn=Array.prototype.splice;var Xn=function(e){var t=this.__data__,r=Wn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Kn.call(t,r,1),--this.size,!0)};var Vn=function(e){var t=this.__data__,r=Wn(t,e);return r<0?void 0:t[r][1]};var Jn=function(e){return Wn(this.__data__,e)>-1};var qn=function(e,t){var r=this.__data__,n=Wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Qn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991},Xo={};Xo["[object Float32Array]"]=Xo["[object Float64Array]"]=Xo["[object Int8Array]"]=Xo["[object Int16Array]"]=Xo["[object Int32Array]"]=Xo["[object Uint8Array]"]=Xo["[object Uint8ClampedArray]"]=Xo["[object Uint16Array]"]=Xo["[object Uint32Array]"]=!0,Xo["[object Arguments]"]=Xo["[object Array]"]=Xo["[object ArrayBuffer]"]=Xo["[object Boolean]"]=Xo["[object DataView]"]=Xo["[object Date]"]=Xo["[object Error]"]=Xo["[object Function]"]=Xo["[object Map]"]=Xo["[object Number]"]=Xo["[object Object]"]=Xo["[object RegExp]"]=Xo["[object Set]"]=Xo["[object String]"]=Xo["[object WeakMap]"]=!1;var Vo=function(e){return g(e)&&Ko(e.length)&&!!Xo[f(e)]};var Jo=function(e){return function(t){return e(t)}},qo=t((function(e,t){var n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a})),Qo=qo&&qo.isTypedArray;Qo&&Jo(Qo),Object.prototype.hasOwnProperty;Object.prototype;P(Object.keys,Object),Object.prototype.hasOwnProperty;Object.prototype.hasOwnProperty;t((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r?o.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}}));var Yo=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{0},ki={get:[[[/^userSupportIdols\/\d+$/,/^userSupportIdols\/statusMax/,/^produceTeachingSupportIdols\/\d+$/],[wr,Rr,"cardTitle","storyTitle",bn]],[/^userProduce(Teaching)?SupportIdols\/\d+$/,[wr,async e=>{const t=await gr();br(e.skillPanels,t),e.userProduceSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)});try{e.userSupportIdol.supportIdol.supportIdolActiveSkill.activeSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)})}catch(e){}},"cardTitle"]],[/^userReserveSupportIdols\/userSupportIdol\/\d+$/,[wr,async e=>{const t=await gr();br(e.supportIdol.skillPanels,t);try{e.supportIdol.supportIdolActiveSkill.activeSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)})}catch(e){}},bn]],[/^userIdols\/\d+\/produceExSkillTop$/,Pr],[/^userSupportIdols\/\d+\/produceExSkillTop$/,Pr],[[/^userIdols\/\d+$/,/^userIdols\/statusMax$/,/^produceTeachingIdols\/\d+$/],[Ar,"cardTitle","storyTitle",bn]],[[/^userProduce(Teaching)?Idols\/\d+$/,"userProduceTeachingIdol"],[async e=>{const t=await gr();e.activeSkills.forEach(e=>{Sr(e,t)}),xr(e.userIdol.idol.memoryAppeals,t),e.userProduceIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})},"cardTitle"]],[/^userReserveIdols\/userIdol\/\d+$/,[async e=>{const t=await gr();br(e.idol.skillPanels,t),xr(e.idol.memoryAppeals,t)},bn]],[/^userFesIdols\/\d+$/,[Mr,"cardTitle",bn]],[["userProduces/skillPanels","userProduceTeachings/skillPanels"],Or],["produceMusics",[async e=>{e.produceMusics&&e.produceMusics.forEach(e=>{e.produceMusicAssignments&&e.produceMusicAssignments.forEach(e=>{Kr(e,"title")})})},async e=>{e.produceMusics&&e.produceMusics.forEach(e=>{e.produceMusicProficiencyBonuses&&e.produceMusicProficiencyBonuses.forEach(e=>{Kr(e,"description"),b(e.description)})})}]],["userMissions",async e=>{await Wr(),Xr(e.dailyUserMissions),Xr(e.weeklyUserMissions),e.eventUserMissions.forEach(e=>{e&&e.userMissions&&Xr(e.userMissions)}),Xr(e.normalUserMissions),Xr(e.specialUserMissions),Xr(e.fesMatchRankingUserMissions)}],[/^fesRaidEvents\/\d+\/rewards$/,async e=>{await Wr(),Vr(e.fesRaidBestScoreRewards),Vr(e.fesRaidLapRewards),Vr(e.fesRaidPointRewards)}],[["characterAlbums","album/top"],"storyTitle"],[["userShops","userIdolPieceShops"],async e=>{const t=await Zr();e&&(Array.isArray(e.userShops)&&e.userShops.forEach(e=>{rn(e,t)}),Array.isArray(e.userEventShops)&&e.userEventShops.forEach(e=>{rn(e.userShop,t)}))}],[["userRecoveryItems","userProduceItems","userExchangeItems","userLotteryTickets","userEvolutionItems","userGashaTickets","userScoutTickets","userEnhancementItems"],nn],[[/^userPresents\?limit=/,/^userPresentHistories\?limit=/],async e=>{const t=await Zr();Array.isArray(e)&&e.forEach(e=>{tn(e.content,"name",t)})}],[/gashaGroups\/\d+\/rates/,["cardName",async e=>{const t=await fn(),r=await xe();e.forEach((function(e){e.contents.forEach((function(e){((e,t,r)=>{const n=e.contentName.split(/【|】/);t.has(n[2])&&(n[2]=t.get(n[2])),r.has(n[1])&&(n[1]=r.get(n[1])),e.contentName="【".concat(n[1],"】",n[2])})(e,r,t)}))}))}]],["userProduces",[Rn,"cardTitle"]],[/^fes(Match)?Concert\/actions\/resume$/,[In,Br]],[/earthUsers\/[^\/]+\/userFesIdols\/\d+$/,Ir],["userBeginnerMissions/top",[qr,bn]],["tutorialIdols",bn],["userRaidDecks",async e=>{const t=await gr();e.userRaidDecks.forEach(e=>{e.userRaidDeckMembers.forEach(e=>{e.userFesIdol&&e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t)})})})}],["idolRoads/top",async e=>{await Wr(),Xr(e.userMissions)}],["businessTalkCommunications",async e=>{if(await Un(),await jn(),"download"===H.business){const t=e.businessTalks.map(e=>({charaLeft:e.characterLeft.firstName,sourceLeft:k(e.commentLeft),transLeft:"",charaRight:e.characterRight.firstName,sourceRight:k(e.commentRight),transRight:""})),r=mt.unparse(t);T(r,"businessTalks"),H.business="normal",X()}e.businessTalks.forEach(e=>{zn(e)})}],["searchPopupContents",async e=>{const t=await pr();e.supportSkillEffects&&e.supportSkillEffects.forEach(e=>{vr(e,"label",t)}),e.activeSkills&&e.activeSkills.forEach(e=>{vr(e,"label",t)}),e.idolArrivalTypes&&e.idolArrivalTypes.forEach(e=>{vr(e,"label",t)})}],["userDecks/skillPanels",async e=>{const t=await gr();e.userSupportIdols.forEach(e=>{br(e.skillPanels,t)}),e&&e.userIdol&&br(e.userIdol.skillPanels,t)}],["userProduceIdeaNotes",async e=>{const t=await gr();e.forEach(e=>{let r=e.produceIdeaNote.produceIdeaNoteCompleteBonus;vr(r,"title",t),vr(r,"comment",t),e.produceIdeaNote.produceIdeaNoteExtraBonuses.forEach(e=>{vr(e,"comment",t),vr(e,"condition",t)})})}],["userIdols/produceExSkillTop",Pr],["userSupportIdols/produceExSkillTop",Pr],[/fesMatchPopularIdolRankings\/\d+$/,async e=>{const t=await fn(),r=await xe();e&&e.rankings&&e.rankings.forEach(e=>{mn(e.idol,r,t)})}],["businessTop",[async e=>{const t=await fn(),r=await xe();e.userBusinesses&&e.userBusinesses.forEach(e=>{e.members&&e.members.forEach(e=>{mn(e.userSupportIdol.supportIdol,r,t)})})},async e=>{const t=await pr();e.userBusinesses&&e.userBusinesses.forEach(e=>{e.members&&e.members.forEach(e=>{e.userSupportIdol&&e.userSupportIdol.supportSkills&&e.userSupportIdol.supportSkills.forEach(e=>{vr(e,"name",t),vr(e,"description",t)})})})}]]],post:[["myPage",[async e=>{await Wr(),Xr(e.reportUserMissions)},async e=>{try{let t=[],r={};e.userHomeDeck.userHomeDeckAnimationMember&&(t=[...e.userHomeDeck.userHomeDeckAnimationMember.mypageComments]);let n=e.userHomeDeck.userHomeAnimationDeck.userHomeAnimationDeckMembers;if(n&&n.forEach(e=>{e.mypageComments.forEach(e=>{t.push(e)})}),e.userHomeDeck.userHomeDeckMembers.length&&e.userHomeDeck.userHomeDeckMembers.forEach(async e=>{e.mypageComments.forEach(async e=>{t.push(e),Object.keys(e).forEach(async t=>{let n=e[t];if("speakerName"===t){Object.keys(r).some(r=>r===e[t])||(r[n]=[]),r[n].push(e)}})})}),"multiple"===H.myPage)Object.keys(r).forEach(e=>{const t=r[e].map(e=>k(e.comment)).map(e=>({jp:e,en:""})),n=mt.unparse(t);T(n,r[e][0].speakerName+"-myPageComments")}),H.myPage="normal",X();else if("single"===H.myPage){const e=t.map(e=>({name:e.speakerName,comment:k(e.comment)})).map(e=>({name:e.name,jp:e.comment,en:""})),r=mt.unparse(e);T(r,"deckMember-myPageComments"),H.myPage="normal",X()}await Tn(t)}catch(e){b()}},async e=>{await Wr();let t=e.beginnerMission;t&&(t.clearedLectureMission&&Jr([t.clearedLectureMission]),t.progressLectureMission&&Jr([t.progressLectureMission]))},"cardTitle"]],[/^(produceMarathons|fesMarathons|trainingEvents)\/\d+\/top$/,[async e=>{await Wr(),Kr(e.userRecommendedMission.mission,"comment"),Kr(e.userRecommendedMission.mission,"title"),e.accumulatedPresent.userGameEventAccumulatedPresents.forEach(e=>{Kr(e.gameEventAccumulatedPresent,"comment"),Kr(e.gameEventAccumulatedPresent,"title")})},async e=>{const t=await Zr();e.accumulatedPresent.userGameEventAccumulatedPresents.forEach(e=>{e.gameEventAccumulatedPresent.rewards.forEach(e=>{tn(e.content,"name",t)})})}]],[/userIdols\/\d+\/produceExSkills\/\d+\/actions\/set/,Ar],["userShops/actions/purchase",async e=>{const t=await Zr();e&&e.shopMerchandise&&(tn(e.shopMerchandise,"title",t),tn(e.shopMerchandise,"comment",t))}],[/produces\/\d+\/actions\/ready/,[nn,async e=>{const t=await pr();e.userDecks&&e.userDecks.forEach(e=>{e.userSupportIdols.forEach(e=>{e.supportIdol.supportSkills.forEach(e=>{vr(e,"description",t),vr(e,"name",t),e.replaceDescriptions.forEach(e=>{vr(e,"description",t)})})})})}]],[/produces\/\d+\/actions\/finish/,[gn]],["fesTowerEvents/top",[async e=>{e.suggestFesTowerAreaClearBonuses&&e.suggestFesTowerAreaClearBonuses.forEach(e=>{Kr(e.fesTowerBonus,"desc")})},async e=>{e.userFesTowerAreas&&e.userFesTowerAreas.forEach(e=>{e.userFesTowerAreaClearBonuses&&e.userFesTowerAreaClearBonuses.forEach(e=>{Kr(e.fesTowerBonus,"desc")})})},async e=>{e.suggestFesTowerCompleteBonuses&&e.suggestFesTowerCompleteBonuses.forEach(e=>{e.userFesTowerCompleteBonuses&&e.userFesTowerCompleteBonuses.forEach(e=>{e.fesTowerCompleteBonus.fesTowerBonuses.forEach(e=>{Kr(e,"desc")})})})},async e=>{e.userFesTowerCompleteBonuses&&e.userFesTowerCompleteBonuses.forEach(e=>{e.fesTowerCompleteBonus.fesTowerBonuses.forEach(e=>{Kr(e,"desc")})})}]],[/userPresents\/\d+\/actions\/receive/,async e=>{const t=await Zr();tn(e.receivedPresent,"Name",t)}],[/userMissions\/\d+\/actions\/receive/,async e=>{const t=await Zr();tn(e.userMission.mission.missionReward.content,"name",t)}],["userLoginBonuses",async e=>{const t=await Zr();e.userLoginBonuses.forEach(e=>{e.loginBonus.sheets.forEach(e=>{e.rewards.forEach(e=>{tn(e.content,"name",t)})})}),e.userTotalBonuses.forEach(e=>{e.rewards.forEach(e=>{tn(e.content,"name",t)})})}],["fesTop",[async e=>{const t=await Zr();e.lastRankingResult&&Array.isArray(e.lastRankingResult.fesMatchGradeRewards)&&e.lastRankingResult.fesMatchGradeRewards.forEach(e=>{tn(e.content,"name",t)})},async e=>{if(e.userFesDeck)try{let t=[],r=e.userFesDeck.userFesDeckMembers;for(let e of r)e.fesTopCharacterReactions.forEach(e=>{t.push(e)});await xn(t)}catch(e){b()}}]],[[/^userProduce(Teaching)?s\/skillPanels\/\d+$/,/^userProduces\/limitedSkills\/\d+$/],Or],[/userSupportIdols\/\d+\/produceExSkills\/\d+\/actions\/set/,[Rr,wr]],[/^produces\/actions\/(resume|next|endWeek)$/,[async e=>{if(e.userProduceIdeaNotes){const t=await gr();e.userProduceIdeaNotes.forEach(e=>{let r=e.produceIdeaNote.produceIdeaNoteCompleteBonus;vr(r,"title",t),vr(r,"comment",t),e.produceIdeaNote.produceIdeaNoteExtraBonuses.forEach(e=>{vr(e,"comment",t),vr(e,"condition",t)})})}if(e.ideaNoteResult&&e.ideaNoteResult.seasonClearBonusIdeaNotes){const t=await gr();e.ideaNoteResult.seasonClearBonusIdeaNotes.forEach(e=>{let r=e.produceIdeaNoteCompleteBonus;vr(r,"title",t),vr(r,"comment",t),e.produceIdeaNoteExtraBonuses.forEach(e=>{vr(e,"comment",t),vr(e,"condition",t)})})}},Rn,Mn,In,Pn,Cn,async e=>{try{let t=e.produceReporterEvent;t&&t.produceReporterEventAnswers&&await xn(t.produceReporterEventAnswers,"comment2")}catch(e){b()}},wr,"cardTitle","storyTitle"]],[["produces/actions/resume","produces/actions/finish","produceTeachings/resume"],[async e=>{if(e.gameData)return;const t=await gr();Tr(e,t)},Br]],["produces/actions/endWeek",Mn],["produces/actions/act",[async e=>{if(!e.lessonResult)return;let t=e.lessonResult;try{let e=[];t.produceActCutinComment&&(e=e.concat(t.produceActCutinComment)),t.produceRestBoostIdolComment&&(e=e.concat(t.produceRestBoostIdolComment)),t.produceRestBoostSupportIdolComment&&(e=e.concat(t.produceRestBoostSupportIdolComment)),t.produceRestComments&&(e=e.concat(t.produceRestComments)),await xn(e)}catch(e){b()}},async e=>{const t=await gr();try{let r=e.lessonResult.userProduceIdeaNote.produceIdeaNote.produceIdeaNoteCompleteBonus;Sr(r,t)}catch(e){}},"storyTitle"]],[/^fes(Match|Raid)?Concert\/actions\/start$/,[An,Dr]],[/^fes(Match)?Concert\/actions\/resume$/,[In,Br]],["fesRaidConcert/actions/resume",[async e=>{if(e.gameState&&e.gameState.game_data)try{let t=JSON.parse(e.gameState.game_data);t.judges&&await An(t),e.gameState.game_data=JSON.stringify(t)}catch(e){b()}},async e=>{if(e.gameState&&e.gameState.game_data)try{let t=JSON.parse(e.gameState.game_data);t.userRaidDeck&&await Dr(t),e.gameState.game_data=JSON.stringify(t)}catch(e){b()}}]],["produces/actions/result",[async e=>{try{let t=e.characterTrustLevelUpComments;await xn(t)}catch(e){b()}},async e=>{const t=await gr();e.produceExSkillRewards.forEach(e=>{_r(e.produceExSkill,t)})}]],[[/^produce(Teaching)?s\/(\d+\/audition|concert)\/actions\/start$/,/^produceTeachings\/(auditions|concerts)\/start$/],[Fr]],[/^produces\/(\d+\/audition|concert)\/actions\/(start|finish)$/,[Cn,Pn,gn]],["userProduceHelperSupportIdols",async e=>{try{let t=e.characterComment+e.producerComment;await cr([e],t,!0)}catch(e){b()}}],[["produceTeachings/resume","produceTeachings/next"],[async e=>{await Wr(),e.teachingHints&&e.teachingHints.forEach(e=>{e.userProduceTeachingHints.forEach(e=>{Kr(e.produceTeachingHint,"title")})})},wr]],[/^userSelectLoginBonuses\/\d+$/,async e=>{const t=await Zr();e.rewards.forEach(e=>{tn(e.content,"name",t)})}],[/^characterAlbums\/characters\/\d+$/,[bn,"storyTitle",async e=>{if(e.voices){const t=[];e.voices.forEach(e=>{e.characterTrustLevelComment&&t.push(e.characterTrustLevelComment)}),await Tn(t)}},async e=>{if(e.voices){const t=await cn();e.voices.forEach(e=>{ln(e,"title",t)})}}]],[/^userLectureMissions\/\d+\/actions\/receive$/,qr],["business/actions/start",async e=>{await Un(),await jn(),zn(e.businessTalk)}],["business/actions/finish",[async e=>{const t=await gr();e&&e.slots&&e.slots.forEach(e=>{e.businessProduceExSkillRewards&&e.businessProduceExSkillRewards.forEach(e=>{_r(e.produceExSkill,t)})})},async e=>{const t=await fn(),r=await xe();e.slots&&e.slots.forEach(e=>{e.afterUserSupportIdols&&e.afterUserSupportIdols.forEach(e=>{mn(e.supportIdol,r,t)}),e.beforeUserSupportIdols&&e.beforeUserSupportIdols.forEach(e=>{mn(e.supportIdol,r,t)})})},async e=>{const t=await pr();e.slots&&e.slots.forEach(e=>{e.afterUserSupportIdols&&e.afterUserSupportIdols.forEach(e=>{e.supportSkills&&e.supportSkills.forEach(e=>{vr(e,"name",t),vr(e,"description",t)})}),e.beforeUserSupportIdols&&e.beforeUserSupportIdols.forEach(e=>{e.supportSkills&&e.supportSkills.forEach(e=>{vr(e,"name",t),vr(e,"description",t)})})})}]]],patch:[[/^userSupportIdols\/\d+$/,wr],["userFesDecks",[async e=>{const t=await gr();e.userFesDecks.forEach(e=>{e.userFesDeckMembers.forEach(e=>{e.userFesIdol&&e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t)})})})},"cardTitle"]]],put:[["userHomeDecks",["cardTitle"]]]},Ci=(e,t,r,n)=>async(...r)=>{var o,i;return Ti(0,0,0,null===(o=r[0])||void 0===o||o.body),await(async(e,t,r)=>{try{for(let[n,o]of r){Array.isArray(n)||(n=[n]);let r=!1;for(let e of n)(y(e)&&e===t||xi(e)&&e.test(t))&&(r=!0);if(r){Array.isArray(o)||(o=[o]);for(let t of o)y(t)?"storyTitle"===t?(je(e),un(e)):"cardTitle"===t&&gn(e):await t(e)}}}catch(e){b()}})(null===(i=r[0])||void 0===i?void 0:i.body,t,ki[e.toLowerCase()]),n(...r)},Ai=Array.prototype.push;Array.prototype.push=function(...e){var t;if("object"==typeof e[0]&&null!==(t=e[0])&&void 0!==t&&t.method){const{path:t,method:r,options:n,resolve:o}=e[0];e[0].resolve=Ci(r.toUpperCase(),t,0,o)}return Ai.apply(this,e)};const Ri={name:"",filename:"",list:"",preview:new Map};let Mi=!1;const Ii=async()=>{const e=await(async()=>(await pe("SCENARIO",e=>e&&e.default&&e.default.load&&e.default._errorEvent&&e.default._handleError)).default)();if(!e)return;const t=e.load;e.load=async function(...e){const r=await t.apply(this,e),n=e[0];if(!n)return r;if(n.includes("/produce_events/")||n.includes("/produce_communications/")||n.includes("/produce_communications_promises/")||n.includes("/produce_communication_promise_results/")||n.includes("/game_event_communications/")||n.includes("/special_communications/")||n.includes("/produce_communication_cheers/")||n.includes("/produce_communication_auditions/")||n.includes("/produce_communication_televisions/"))try{const e=n.replace(/^\/assets\/json\//,"");let t;if("edit"===H.story&&(((e,t)=>{const r=t.replace(".json",""),n=(e=>{const t=e.match(/\/(\d+)$/);return t&&t[1]?t[1]:""})(r),o=De.get(n)||r.replace(/\//g,"_"),i=[];e.forEach((e,t)=>{let n=w(k(e.text));n&&n.trim()?i.push({id:r.replace("/","")+t,name:e.speaker||"",text:n,trans:""}):e.select&&i.push({id:"select",name:"",text:w(k(e.select)),trans:""})}),i.push({id:"info",name:t,text:"",trans:""}),i.push({id:"Translator",name:"",text:"",trans:""}),Ri.name=t,Ri.filename=o+".csv",Ri.list=i})(r,e),vt(Ri)),(()=>{if(Mi)return;Mi=!0;const e=sessionStorage.getItem("sczh:preview");if(e)try{const t=JSON.parse(e),r=new Map(t);for(let[e,t]of r)r.set(e,new Map(t));Ri.preview=r}catch(e){b()}})(),t=Ri.preview.has(e)?Ri.preview.get(e):await(async e=>{if(!Le){let e=await ne("story-index");if(e)Le=new Map(JSON.parse(e));else{const t=await Z("/story.json");Le=new Map(t),oe("story-index",JSON.stringify(e))}}if(Le.has(e)){if(Oe.has(e))return Oe.get(e);{const t=Le.get(e),r=await Z(t),n=Ne(r);return Oe.set(e,n),n}}return!1})(e),t){const n=await He();((e,t,r,n,o)=>{Array.isArray(e)&&e.forEach((e,i)=>{if(R(e,n),e.text){const n=Pe(S(e.text));if(o=(o=o.replace(".json","")).replace("/",""),t.has(o+i+n))e.text=t.get(o+i+n);else if(e.id){const r=e.id+n;t.has(r)&&(e.text=t.get(r))}else t.has(n)?e.text=t.get(n):r.has(e.text)&&(e.text=v(r.get(e.text)))}if(e.select){const n=S(e.select),o=Pe(n)+"-select";t.has(o)?e.select=t.get(o):r.has(n)&&(e.select=v(r.get(e.select)))}})})(r,t,n,await xe(),e)}else"on"===H.auto?await cr(r,e):await cr(r,e,!1,!0)}catch(e){b()}return r}},Pi=e=>{const t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("href",e),t.setAttribute("as","font"),t.setAttribute("type","font/woff2"),t.setAttribute("crossorigin","anonymous"),document.head.appendChild(t)},Oi=async()=>{const e=document.createElement("style"),{hash:t}=await Y;e.innerHTML=`\n @font-face {\n font-family: "sczh-heiti";\n src: url("${H.origin}/data/font/heiti.woff2?v=${t}");\n }\n @font-face {\n font-family: "sczh-yuanti";\n src: url("${H.origin}/data/font/yuanti.woff2?v=${t}");\n }\n @font-face {\n font-family: "sczh-yuanti2";\n src: url("${H.origin}/data/font/yuanti2.woff2?v=${t}");\n }\n ::-webkit-scrollbar {\n display: none;\n }\n `,"yuanti"===H.font1?Pi(`${H.origin}/data/font/yuanti.woff2?v=${t}`):"yuanti2"===H.font1&&Pi(`${H.origin}/data/font/yuanti2.woff2?v=${t}`),"heiti"===H.font2&&Pi(`${H.origin}/data/font/heiti.woff2?v=${t}`),document.head.appendChild(e)};if(!("onbeforescriptexecute"in document)){new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)if("SCRIPT"===e.tagName){let t=new CustomEvent("beforescriptexecute",{detail:e,cancelable:!0});document.dispatchEvent(t)||e.remove()}}).observe(document,{childList:!0,subtree:!0})}const Di=e=>{e=(e=>{let t=[/var n=window.[a-z0-9]*;/g,"Object.freeze({addHeader:"],r=["$&window._require=t;","({addHeader:"];for(let o=0;o{e.src.includes("shinycolors.enza.fun/app")&&(t.preventDefault(),t.stopPropagation(),fetch(e.src).then(async e=>{if(e.ok){var t=await e.text();Di(t)}}))})(e.detail||e.target,e)}));window.addEventListener("blur",(function(e){"on"===H.bgm&&e.stopImmediatePropagation()}),!1),document.addEventListener("visibilitychange",(function(e){"on"===H.bgm&&e.stopImmediatePropagation()}));let Fi=0;const Bi=async()=>{var e;ce||Fi>=300?(async()=>{try{await Promise.all([rt(),Oi(),ge(),qe(),Ii()])}catch(e){b()}})():(await(e=100,new Promise(t=>{setTimeout(t,e)})),Fi++,Fi%10==0&&b(),await Bi())};let Li=window.unsafeWindow||window;"loading"!=Li.document.readyState?Bi():Li.addEventListener("DOMContentLoaded",Bi)}(); +Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e.exports=function(){var e,t,r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,o=n&&/(\?|&)papaworker(=|&|$)/.test(r.location.search),i=!1,a={},s=0,c={parse:function(t,n){var o=(n=n||{}).dynamicTyping||!1;if(x(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!x(n.transform)&&n.transform,n.worker&&c.WORKERS_SUPPORTED){var l=function(){if(!c.WORKERS_SUPPORTED)return!1;if(!i&&null===c.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var t=c.SCRIPT_PATH||e;t+=(-1!==t.indexOf("?")?"&":"?")+"papaworker";var n=new r.Worker(t);return n.onmessage=w,n.id=s++,a[n.id]=n,n}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=x(n.step),n.chunk=x(n.chunk),n.complete=x(n.complete),n.error=x(n.error),delete n.worker,void l.postMessage({input:t,config:n,workerId:l.id})}var u=null;return t===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(u=new m(n)).getStream():("string"==typeof t?u=n.download?new d(n):new p(n):!0===t.readable&&x(t.read)&&x(t.on)?u=new f(n):(r.File&&t instanceof File||t instanceof Object)&&(u=new h(n)),u.stream(t))},unparse:function(e,t){var r=!1,n=!0,o=",",i="\r\n",a='"',s=!1;"object"==typeof t&&("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(s=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(n=t.header));var l=new RegExp(y(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,s);if("object"==typeof e[0])return d(u(e[0]),e,s)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:u(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],s);throw"exception: Unable to serialize unrecognized input";function u(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function d(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(s&&n){for(var l=0;l0&&(a+=o),a+=h(e[l],l);t.length>0&&(a+=i)}for(var u=0;u0&&!f&&(a+=o);var w=s&&c?e[v]:v;a+=h(t[u][w],v)}u0&&!f)&&(a+=i)}}return a}function h(e,t){return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(e=e.toString().replace(l,a+a),"boolean"==typeof r&&r||Array.isArray(r)&&r[t]||function(e,t){for(var r=0;r-1)return!0;return!1}(e,c.BAD_DELIMITERS)||e.indexOf(o)>-1||" "===e.charAt(0)||" "===e.charAt(e.length-1)?a+e+a:e)}}};if(c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!n&&!!r.Worker,c.SCRIPT_PATH=null,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=v,c.ParserHandle=g,c.NetworkStreamer=d,c.FileStreamer=h,c.StringStreamer=p,c.ReadableStreamStreamer=f,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=m),r.jQuery){var l=r.jQuery;l.fn.parse=function(e){var t=e.config||{},n=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!r.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o=this._config.preview;if(o)r.postMessage({results:a,workerId:c.WORKER_ID,finished:l});else if(x(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return;a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!l||!x(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||a&&a.meta.paused||this._nextChunk(),a}},this._sendError=function(e){x(this._config.error)?this._config.error(e):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open("GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o),t.setRequestHeader("If-None-Match","webkit-no-cache")}try{t.send()}catch(e){this._chunkError(e.message)}n&&0===t.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substr(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function h(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),u.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function p(e){var t;e=e||{},u.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,r=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(r)}}}function f(e){e=e||{},u.call(this,e);var t=[],r=!0,n=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=b((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=b((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=b((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=b((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(e){var t=require("stream").Duplex,r=_(e),n=!0,o=!1,i=[],a=null;this._onCsvData=function(e){for(var t=e.data,r=0;re.preview?r.abort():f(p,a)}}}function m(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function g(){if(p&&n&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines)for(var t=0;t=h.length?"__parsed_extra":h[r]),e.transform&&(i=e.transform(i,o)),i=E(o,i),"__parsed_extra"===o?(n[o]=n[o]||[],n[o].push(i)):n[o]=i}p.data[t]=n,e.header&&(r>h.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+r,l+t):r1&&o[0].length=n.length/2?"\r\n":"\r"}(o,s)),n=!1,e.delimiter)x(e.delimiter)&&(e.delimiter=e.delimiter(o),p.meta.delimiter=e.delimiter);else{var l=function(t,r,n,o){for(var i,a,s,l=[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP],u=0;u1&&(h+=Math.abs(w-s),s=w):s=0}g.data.length>0&&(p/=g.data.length-f),(void 0===a||h>a)&&p>1.99&&(a=h,i=d)}return e.delimiter=i,{successful:!!i,bestDelimiter:i}}(o,e.newline,e.skipEmptyLines,e.comments);l.successful?e.delimiter=l.bestDelimiter:(n=!0,e.delimiter=c.DefaultDelimiter),p.meta.delimiter=e.delimiter}var d=_(e);return e.preview&&e.header&&d.preview++,t=o,r=new v(d),p=r.parse(t,i,a),g(),u?{meta:{paused:!0}}:p||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,r.abort(),t=t.substr(r.getCharIndex())},this.resume=function(){u=!1,a.streamer.parseChunk(t,!0)},this.aborted=function(){return d},this.abort=function(){d=!0,r.abort(),p.meta.aborted=!0,x(e.complete)&&e.complete(p),t=""}}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){var t,r=(e=e||{}).delimiter,n=e.newline,o=e.comments,i=e.step,a=e.preview,s=e.fastMode,l=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof r||c.BAD_DELIMITERS.indexOf(r)>-1)&&(r=","),o===r)throw"Comment character same as delimiter";!0===o?o="#":("string"!=typeof o||c.BAD_DELIMITERS.indexOf(o)>-1)&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var u=0,d=!1;this.parse=function(e,c,h){if("string"!=typeof e)throw"Input must be a string";var p=e.length,f=r.length,m=n.length,g=o.length,v=x(i);u=0;var w=[],E=[],S=[],_=0;if(!e)return B();if(s||!1!==s&&-1===e.indexOf(t)){for(var b=e.split(n),T=0;T=a)return w=w.slice(0,a),B(!0)}}return B()}for(var k,C=e.indexOf(r,u),A=e.indexOf(n,u),R=new RegExp(y(l)+y(t),"g");;)if(e[u]!==t)if(o&&0===S.length&&e.substr(u,g)===o){if(-1===A)return B();u=A+m,A=e.indexOf(n,u),C=e.indexOf(r,u)}else if(-1!==C&&(C=a)return B(!0)}else for(k=u,u++;;){if(-1===(k=e.indexOf(t,k+1)))return h||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:u}),D();if(k===p-1)return D(e.substring(u,k).replace(R,t));if(t!==l||e[k+1]!==l){if(t===l||0===k||e[k-1]!==l){var M=O(-1===A?C:Math.min(C,A));if(e[k+1+M]===r){S.push(e.substring(u,k).replace(R,t)),u=k+1+M+f,C=e.indexOf(r,u),A=e.indexOf(n,u);break}var I=O(A);if(e.substr(k+1+I,m)===n){if(S.push(e.substring(u,k).replace(R,t)),F(k+1+I+m),C=e.indexOf(r,u),v&&(L(),d))return B();if(a&&w.length>=a)return B(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:u}),k++}}else k++}return D();function P(e){w.push(e),_=u}function O(t){var r=0;if(-1!==t){var n=e.substring(k+1,t);n&&""===n.trim()&&(r=n.length)}return r}function D(t){return h||(void 0===t&&(t=e.substr(u)),S.push(t),u=p,P(S),v&&L()),B()}function F(t){u=t,P(S),S=[],A=e.indexOf(n,u)}function B(e){return{data:w,errors:E,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:_+(c||0)}}}function L(){i(B()),w=[],E=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function w(e){var t=e.data,r=a[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(x(r.userStep)){for(var i=0;i\n #sczh-story-tool {\n position: absolute;\n display: none;\n background: #ffffff;\n border-radius: 24px;\n box-sizing: border-box;\n font-family: sczh-yuanti;\n align-items: center;\n justify-content: center;\n color: #ff6499;\n text-shadow: 0 0 6px #fff;\n cursor: pointer;\n user-select: none;\n width: 100px;\n height: 100px;\n font-size: 32px;\n border: 7px solid transparent;\n border-image: url(${H.origin}/data/image/border.png);\n border-image-slice: 7;\n transform-origin: top right;\n }\n .story-tool-btns {\n width: 100%;\n height: 100%;\n display: none;\n }\n .story-tool-btns .btn-download-sczh,\n .story-tool-btns label {\n flex: 1;\n height: 100%;\n background: #fff;\n display: flex;\n box-sizing: content-box;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n color: #c0aade;\n text-shadow: 0 0 6px #fff;\n }\n .story-tool-btns .btn-download-sczh:hover {\n color: #9f66ec;\n }\n .story-tool-btns label {\n color: rgb(242, 156, 199);\n border-right: 1px solid #c9c9c9;\n }\n #sczh-story-tool .btn-close-sczh {\n height: 25px;\n width: 50px;\n background: rgba(0, 0, 0, 0.58);\n color: #fff;\n letter-spacing: 2px;\n position: absolute;\n right: -25px;\n top: -20px;\n border-radius: 4px;\n display: none;\n align-items: center;\n justify-content: center;\n z-index: 1;\n font-family: sczh-heiti;\n font-size: 15px;\n }\n #sczh-story-tool:hover {\n width: 200px;\n }\n #sczh-story-tool:hover .story-tool-btns {\n display: flex;\n }\n #sczh-story-tool:hover .btn-close-sczh {\n display: flex;\n }\n #sczh-story-tool:hover > .text-sczh {\n display: none;\n }\n #sczh-story-tool .btn-close-sczh:hover {\n background: rgba(0, 0, 0, 0.9);\n }\n .story-tool-btns label:hover {\n color: #f270b1;\n }\n .story-tool-btns .btn-download-sczh:hover,\n .story-tool-btns label:hover {\n background-color: #f7f7f7;\n }\n \n
Story\n X\n \n
\n \n
DL
\n
\n
\n `;let yt=!1;const vt=e=>{if(yt)return;yt=!0,document.body.insertAdjacentHTML("beforeend",gt);const t=document.getElementById("sczh-story-tool"),r=ft(()=>{const r=[.017,.22],n=window.innerHeight,o=window.innerWidth;let i=n,a=o,s=0,c=0;n/o>9/16?(i=9*o/16,s=(n-i)/2):(a=16*n/9,c=(o-a)/2),t.style.right=Math.floor(c+r[0]*a)+"px",t.style.top=Math.floor(s+r[1]*i)+"px",t.style.transform=`scale(${(i/900).toFixed(3)})`,e.name?t.style.display="flex":t.style.display="none"},300);r(),window.addEventListener("resize",r);document.getElementById("btn-download-sczh").addEventListener("click",(function(){if(e.name){const t=mt.unparse(e.list);T(t,e.filename)}}));document.getElementById("btn-close-sczh").addEventListener("click",(function(){t.style.display="none",H.story="normal",X()}));document.getElementById("ipt-preview-sczh").addEventListener("change",(function(){const t=this.files;t.length&&t.forEach(t=>{const r=new FileReader;r.onload=t=>{const r=t.target.result,n=je(r);if(n.has("name")){const t=n.get("name");e.preview.set(t,n),(e=>{const t=[...e].slice(-5).map(e=>(e[1]=[...e[1]],e));sessionStorage.setItem("sczh:preview",JSON.stringify(t))})(e.preview),alert("Succesfully imported "+t)}},r.readAsText(t)})}))},wt=(e,t="EMPTY")=>e.sort((e,r)=>{let n=e,o=r;return"EMPTY"!==t&&(n=e[t],o=r[t]),o||(o=""),n||(n=""),o.length>n.length?1:n.length>o.length?-1:0}),Et=new Map;let St=!1;const _t=async()=>{if(!St){let e=await ne("noun-fix");e||(e=await Z("/data/etc/noun-fix.csv"),oe("noun-fix",e));const t=te(e);wt(t,"text").forEach(e=>{const t=w(e.text),r=w(e.fixed);t&&Et.set(t,r)}),St=!0}return Et},bt=new Map;let xt=!1;var Tt,kt=((Tt=function(e){if(!(this instanceof Tt))return new Tt(e);this.options=this.extend(e,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[],excludeDoNotTrack:!0,excludePixelRatio:!0}),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map}).prototype={extend:function(e,t){if(null==e)return t;for(var r in e)null!=e[r]&&t[r]!==e[r]&&(t[r]=e[r]);return t},get:function(e){var t=this,r={data:[],addPreprocessedComponent:function(e){var n=e.value;"function"==typeof t.options.preprocessor&&(n=t.options.preprocessor(e.key,n)),r.data.push({key:e.key,value:n})}};r=this.userAgentKey(r),r=this.languageKey(r),r=this.colorDepthKey(r),r=this.deviceMemoryKey(r),r=this.pixelRatioKey(r),r=this.hardwareConcurrencyKey(r),r=this.screenResolutionKey(r),r=this.availableScreenResolutionKey(r),r=this.timezoneOffsetKey(r),r=this.sessionStorageKey(r),r=this.localStorageKey(r),r=this.indexedDbKey(r),r=this.addBehaviorKey(r),r=this.openDatabaseKey(r),r=this.cpuClassKey(r),r=this.platformKey(r),r=this.doNotTrackKey(r),r=this.pluginsKey(r),r=this.canvasKey(r),r=this.webglKey(r),r=this.webglVendorAndRendererKey(r),r=this.adBlockKey(r),r=this.hasLiedLanguagesKey(r),r=this.hasLiedResolutionKey(r),r=this.hasLiedOsKey(r),r=this.hasLiedBrowserKey(r),r=this.touchSupportKey(r),r=this.customEntropyFunction(r),this.fontsKey(r,(function(r){var n=[];t.each(r.data,(function(e){var t=e.value;t&&"function"==typeof t.join&&(t=t.join(";")),n.push(t)}));var o=t.x64hash128(n.join("~~~"),31);return e(o,r.data)}))},customEntropyFunction:function(e){return"function"==typeof this.options.customFunction&&e.addPreprocessedComponent({key:"custom",value:this.options.customFunction()}),e},userAgentKey:function(e){return this.options.excludeUserAgent||e.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()}),e},getUserAgent:function(){return navigator.userAgent},languageKey:function(e){return this.options.excludeLanguage||e.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),e},colorDepthKey:function(e){return this.options.excludeColorDepth||e.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1}),e},deviceMemoryKey:function(e){return this.options.excludeDeviceMemory||e.addPreprocessedComponent({key:"device_memory",value:this.getDeviceMemory()}),e},getDeviceMemory:function(){return navigator.deviceMemory||-1},pixelRatioKey:function(e){return this.options.excludePixelRatio||e.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()}),e},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(e){return this.options.excludeScreenResolution?e:this.getScreenResolution(e)},getScreenResolution:function(e){var t;return t=this.options.detectScreenOrientation&&window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height],e.addPreprocessedComponent({key:"resolution",value:t}),e},availableScreenResolutionKey:function(e){return this.options.excludeAvailableScreenResolution?e:this.getAvailableScreenResolution(e)},getAvailableScreenResolution:function(e){var t;return window.screen.availWidth&&window.screen.availHeight&&(t=this.options.detectScreenOrientation?window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==t&&e.addPreprocessedComponent({key:"available_resolution",value:t}),e},timezoneOffsetKey:function(e){return this.options.excludeTimezoneOffset||e.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),e},sessionStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&e.addPreprocessedComponent({key:"session_storage",value:1}),e},localStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&e.addPreprocessedComponent({key:"local_storage",value:1}),e},indexedDbKey:function(e){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&e.addPreprocessedComponent({key:"indexed_db",value:1}),e},addBehaviorKey:function(e){return!this.options.excludeAddBehavior&&document.body&&document.body.addBehavior&&e.addPreprocessedComponent({key:"add_behavior",value:1}),e},openDatabaseKey:function(e){return!this.options.excludeOpenDatabase&&window.openDatabase&&e.addPreprocessedComponent({key:"open_database",value:1}),e},cpuClassKey:function(e){return this.options.excludeCpuClass||e.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()}),e},platformKey:function(e){return this.options.excludePlatform||e.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()}),e},doNotTrackKey:function(e){return this.options.excludeDoNotTrack||e.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()}),e},canvasKey:function(e){return!this.options.excludeCanvas&&this.isCanvasSupported()&&e.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()}),e},webglKey:function(e){return!this.options.excludeWebGL&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()}),e},webglVendorAndRendererKey:function(e){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()}),e},adBlockKey:function(e){return this.options.excludeAdBlock||e.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()}),e},hasLiedLanguagesKey:function(e){return this.options.excludeHasLiedLanguages||e.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()}),e},hasLiedResolutionKey:function(e){return this.options.excludeHasLiedResolution||e.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()}),e},hasLiedOsKey:function(e){return this.options.excludeHasLiedOs||e.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()}),e},hasLiedBrowserKey:function(e){return this.options.excludeHasLiedBrowser||e.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()}),e},fontsKey:function(e,t){return this.options.excludeJsFonts?this.flashFontsKey(e,t):this.jsFontsKey(e,t)},flashFontsKey:function(e,t){return this.options.excludeFlashFonts?t(e):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?t(e):void this.loadSwfAndDetectFonts((function(r){e.addPreprocessedComponent({key:"swf_fonts",value:r.join(";")}),t(e)})):t(e)},jsFontsKey:function(e,t){var r=this;return setTimeout((function(){var n=["monospace","sans-serif","serif"],o=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];r.options.extendedJsFonts&&(o=o.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),o=(o=o.concat(r.options.userDefinedFonts)).filter((function(e,t){return o.indexOf(e)===t}));var i=document.getElementsByTagName("body")[0],a=document.createElement("div"),s=document.createElement("div"),c={},l={},u=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},d=function(){for(var e=[],t=0,r=n.length;tt.name?1:e.name=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==r){if((r=r.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(r.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(r.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===r.indexOf("win")&&-1===r.indexOf("linux")&&-1===r.indexOf("mac"))!=("Other"===e))return!0}return n.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e},getHasLiedBrowser:function(){var e,t=navigator.userAgent.toLowerCase(),r=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==r)return!0;var n,o=eval.toString().length;if(37===o&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===o&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===o&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),n=!0}catch(e){n=!1}}return!(!n||"Firefox"===e||"Other"===e)},isCanvasSupported:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var e=this.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},hasSwfObjectLoaded:function(){return void 0!==window.swfobject},hasMinFlashInstalled:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var e=document.createElement("div");e.setAttribute("id",this.options.swfContainerId),document.body.appendChild(e)},loadSwfAndDetectFonts:function(e){var t="___fp_swf_loaded";window[t]=function(t){e(t)};var r=this.options.swfContainerId;this.addFlashDivNode();var n={onReady:t};window.swfobject.embedSWF(this.options.swfPath,r,"1","1","9.0.0",!1,n,{allowScriptAccess:"always",menu:"false"},{})},getWebglCanvas:function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},each:function(e,t,r){if(null!==e)if(this.nativeForEach&&e.forEach===this.nativeForEach)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Multiply:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Rotl:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])},x64LeftShift:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){t=t||0;for(var r=(e=e||"").length%16,n=e.length-r,o=[0,t],i=[0,t],a=[0,0],s=[0,0],c=[2277735313,289559509],l=[1291169091,658871167],u=0;u>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}},Tt.VERSION="1.8.0",Tt);const Ct=!!window.GM_xmlhttpRequest,At=(e,t={})=>{const{method:r="GET",headers:n,responseType:o="json",data:i,cors:a=!1,credentials:s}=t;return a?fetch(e,{body:i,headers:n,method:r,mode:"cors",credentials:s}).then(e=>e.json()):new Promise((t,a)=>{if(!Ct)return a("GM_XHR MISSING");window.GM_xmlhttpRequest({method:r,url:e,headers:n,responseType:o,data:i,onload({status:e,responseText:r,statusText:n}){e>=200&&e<300?t(r):a(n)},onerror(e){a(e)}})})};let Rt="",Mt="",It="",Pt=null;const Ot=e=>new Promise(t=>{setTimeout(t,e)}),Dt=()=>(Pt||(Pt=new Promise((e,t)=>{(async()=>{const e=await At("https://biz.caiyunapp.com/test_cookies",{cors:!0,credentials:"include",headers:{"X-Authorization":"token "+Q.data.cyweb_token}});if("ok"!==e.status||!e.cookies.cy_user)return!1;{const t=JSON.parse(decodeURIComponent(e.cookies.cy_user));Mt=t._id||"5a096eec830f7876a48aac47"}})().then(async()=>{if(!Mt&&!Rt){(new kt).get(e=>Rt=e);let e=5;for(;!Rt||--e>0;)await Ot(300);if(!Rt)throw new Error("timeout: get browser id ")}return At("https://api.interpreter.caiyunai.com/v1/page/auth",{cors:!0,method:"POST",headers:{"X-Authorization":"token "+Q.data.cyweb_token,"Content-Type":"application/json"},data:JSON.stringify({browser_id:Rt,device_id:"",os_type:"web",title:document.title,url:document.URL,user_id:Mt})})}).then(e=>{if(-1===e.auth_type||!e.page_id)throw new Error("Caiyun api out of limit.");It=e.page_id}).then(e).catch(t)})),Pt);var Ft=Object.prototype.hasOwnProperty,Bt=Array.isArray,Lt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Nt=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(Bt(r)){for(var n=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(i):a<128?o+=Lt[a]:a<2048?o+=Lt[192|a>>6]+Lt[128|63&a]:a<55296||a>=57344?o+=Lt[224|a>>12]+Lt[128|a>>6&63]+Lt[128|63&a]:(i+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(i)),o+=Lt[240|a>>18]+Lt[128|a>>12&63]+Lt[128|a>>6&63]+Lt[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Bt(e)){for(var r=[],n=0;n0?d+u:""});const er=async e=>{let t=Q.data.language||"zh-CN",r=Zt({client:"gtx",sl:"ja",tl:t,hl:t,ie:"UTF-8",oe:"UTF-8"});["at","bd","ex","ld","md","qca","rw","rm","ss","t"].forEach(e=>{r+="&dt="+e});const n=Zt({q:e});return(e=>{const t=JSON.parse(e);if(t[0]&&t[0].length){return t[0].map(e=>e[0]).join("").split("\n")}return[]})(await At("https://translate.google.com/translate_a/single?"+r,{data:n,method:"POST",headers:{accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8",referer:"https://translate.google.com",origin:"https://translate.google.com"}}))},tr=(e,t,r)=>{t.forEach(t=>{let n=t,o="";for(;n>=0;){n--;let t=e.shift();y(t)&&(t||(t="……"),o+=t+"\n")}o&&r.push(o.slice(0,o.length-1))})},rr=e=>{let t=[],r=e.map(e=>S(e));return r.forEach(e=>{let r=[...e].filter(e=>"\n"===e).length;t.push(r)}),[r.join("\n"),t]},nr=(e,t=4e3)=>{let r="",n=[],o=0;return e.split("\n").forEach(e=>{r+=e,o+=new Blob([e]).size,o>t?(n.push(r),o=0,r=""):r+="\n"}),r&&n.push(r.replace(/\n$/,"")),n},or=async e=>{try{let t=M("caiyuLimit");if(t&&Date.now()-t<36e5)return[];let[r,n]=rr(e),o=nr(r),i=(await Promise.all(o.map(e=>(async(e,t="ja")=>{await Dt(),await Pt;const r=await At("https://api.interpreter.caiyunai.com/v1/page/translator",{cors:!0,method:"POST",headers:{"X-Authorization":"token "+Q.data.cyweb_token,"Content-Type":"application/json"},data:JSON.stringify({cached:!0,os_type:"web",page_id:It,replaced:!0,request_id:Rt||Mt,source:e,trans_type:t+"2zh",url:document.URL})});return r&&r.target?r.target.map(e=>e.target):[]})(e.split("\n"))))).reduce((e,t)=>e.concat(t)),a=[];return tr(i,n,a),a}catch(e){return"Caiyun api out of limit."===e.message&&M("caiyuLimit",Date.now()),b(),[]}},ir=["text","select","comment","title","actionComment","actionComment2","reactionComment","resultLoseComment","resultStartComment","resultWinComment","characterComment","producerComment","comment1","comment2"],ar=async e=>{const t=await(async()=>{if(!xt){let e=await ne("caiyun-prefix");e||(e=await Z("/data/etc/caiyun-prefix.csv"),oe("caiyun-prefix",e));const t=te(e);wt(t,"text").forEach(e=>{const t=w(e.text),r=w(e.fixed);t&&bt.set(t,r)}),xt=!0}return bt})();return C(e,t)},sr=new Map,cr=async(e,t,r,n=!1)=>{if(!e.length)return;const o=await He(),i=await Ge(),{textInfo:a,textList:s}=((e,t,r)=>{const n=[],o=[];return e.forEach((e,i)=>{ir.forEach(a=>{let s=S(e[a]);e[a]&&(t.has(s)?e[a]=v(t.get(s)):r.has(s)?e[a]=v(r.get(s)):(n.push({key:a,index:i}),o.push(s)))})}),{textInfo:n,textList:o}})(e,o,i);if(!a.length)return;const c=t||e;let l=!1,u=[];if(sr.has(c))l=!0,u=sr.get(c);else{let e=Q.data.trans_api,t=[];if("on"===H.auto&&!n){if("caiyun"===e){let e=await ar(s);t=await or(e)}else"google"===e&&(t=await(async e=>{try{let[t,r]=rr(e),n=nr(t),o=(await Promise.all(n.map(e=>er(e)))).reduce((e,t)=>e.concat(t)),i=[];return tr(o,r,i),i}catch(e){return b(),[]}})(s));u=await(async e=>{const t=await _t();return C(e,t)})(t)}sr.set(c,u)}if(!l&&(!t||r)){let e=[];s.forEach((t,r)=>{e.push(k(t),u[r])});let n=b;t&&!r||(n=x),n(e.join("\n"))}u.forEach((t,n)=>{let o=t;const{key:i,index:s}=a[n];"select"===i&&(o=((e,t)=>{if(e.length>t&&!e.includes("\n")){const t=Math.floor(e.length/2)+1;return e.slice(0,t)+"\n"+e.slice(t,e.length)}return e})(o,8)),o=o.replace(/"([^"]*)"/g,"“$1”").replace(/'([^']*)'/g,"“$1”").replace(/‘([^']+)'/g,"“$1”"),0!==n||r||(o+=" ☁️"),e[s][i]=v(o)});const d=await xe();e.forEach(e=>{R(e,d)}),(e=>{e.forEach(e=>{e.text&&!e.text.startsWith("​")&&(e.text="‌"+e.text)})})(e)},lr=new Map,ur=(e,t,r)=>{if(lr.has(e))return lr.get(e);let n=e;for(let[e,o]of t)n=n.replace(e,(...e)=>{let t=o;for(let n=1;n{e.has(o)&&(t=t.replace("$"+n,e.get(o)),i=!0)}),i||(t=t.replace("$"+n,e[n]))}return t}),e.lastIndex=0;return lr.set(e,n),n},dr=(e,t)=>{let r=e.replace(/\$num/g,"([+-+-]?\\d{1,10}\\.?\\d{0,4}?)").replace(/\$percent/g,"([+-+-]?\\d{1,10}\\.?\\d{0,4}?[%%])").replace(/\$unknown/g,"(.+?)").replace(/\$uk/g,"(.+?)");return t.forEach(e=>{r=r.replace(e.re,e.exp),e.re.lastIndex=0}),new RegExp(r,"gi")},hr={expMap:new Map,nounMap:new Map,nounArr:[],loaded:!1},pr=async()=>{const{expMap:e,nounMap:t,nounArr:r,loaded:n}=hr;if(!n){let n=await ne("support-skill");n||(n=await Z("/data/support-skill.csv"),oe("support-skill",n));const o=te(n),i=new Map;wt(o,"text").forEach(e=>{if(e&&e.text){const n=E(e.text),o=E(e.trans,!0),a=w(e.type);n&&o&&("noun"===a?(r.push(_(n)),t.set(n,o)):i.set(n,o))}});const a=[{re:/\$noun/g,exp:`(${r.join("|")})`}];for(let[t,r]of i){const n=dr(t,a);e.set(n,r)}hr.loaded=!0}return{expMap:e,wordMaps:[t]}},fr={expMap:new Map,textMap:new Map,nounMap:new Map,nameMap:new Map,otherMap:new Map,nounArr:[],nameArr:[],otherArr:[],loaded:!1};let mr=null;const gr=async()=>(mr||(mr=(async()=>{const{expMap:e,nounMap:t,textMap:r,nameMap:n,otherMap:o,nounArr:i,nameArr:a,otherArr:s,loaded:c}=fr;if(!c){let c=await ne("skill");c||(c=await Z("/data/skill.csv"),oe("skill",c));const l=te(c),u=new Map;wt(l,"text").forEach(e=>{if(e&&e.text){const c=E(e.text),l=E(e.trans,!0),d=w(e.type);c&&l&&("noun"===d?(i.push(_(c)),t.set(c,l)):"text"===d?r.set(c,l):"name"===d?(a.push(_(c)),n.set(c,l)):"other"===d?(s.push(_(c)),o.set(c,l)):u.set(c.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),l))}});const d=[{re:/\$noun/g,exp:`(${i.join("|")})`},{re:/\$name/g,exp:`(${a.join("|")})`},{re:/\$other/g,exp:`(${s.join("|")})`}];for(let[t,r]of u){const n=dr(t,d);e.set(n,r)}fr.loaded=!0}return{expMap:e,wordMaps:[t,o,n],textMap:r}})()),await mr),yr=(e,t)=>{if(!t){let t=[];return e.forEach((r,n)=>{let o=r.match(/([++]+)$/);o&&o[1]?(t.push(o[1]),e[n]=r.replace(/[++]+$/,"")):t.push("")}),t}e.forEach((r,n)=>{e[n]=r+t[n]})},vr=(e,t,r)=>{if(e&&e[t]){let n=e[t].split("/");n.forEach((e,t)=>{let o=yr(n);((e,t,r)=>{if(!e)return;const{expMap:n,wordMaps:o,textMap:i}=r,a=S(e[t]);let s=a;a&&(i&&i.has(a)?e[t]=v(i.get(a)):(s=ur(a,n,o),a!==s&&(e[t]=v(s))))})(n,t,r),yr(n,o)});let o=n.join("/");o!==e[t]&&(e[t]=v(o))}},wr=async e=>{let t,r,n=e;if(e.gameData)return;e.userSupportIdol&&(n=e.userSupportIdol);const o=n.acquiredSupportSkills;n.supportSkills&&(t=n.supportSkills),e.supportIdol&&e.supportIdol.supportSkills&&(r=e.supportIdol.supportSkills);const i=await pr();t&&t.forEach(e=>{vr(e,"description",i),vr(e,"name",i)}),o&&o.forEach(e=>{vr(e,"description",i),vr(e,"name",i)}),r&&r.forEach(e=>{vr(e,"description",i),vr(e,"name",i)})},Er=(e,t)=>{e.skillEffects&&e.skillEffects.forEach(e=>{vr(e,"effectName",t),vr(e,"effectDescription",t)}),e.rivalMemoryAppealEffects&&e.rivalMemoryAppealEffects.forEach(e=>{vr(e,"effectName",t),vr(e,"effectDescription",t)})},Sr=(e,t,r=!1)=>{e&&(vr(e,"comment",t),vr(e,"name",t),r&&Er(e,t),e.linkSkill&&(vr(e.linkSkill,"comment",t),vr(e.linkSkill,"name",t),r&&Er(e.linkSkill,t)))},_r=(e,t)=>{vr(e,"name",t),vr(e,"description",t)},br=(e,t)=>{e&&e.forEach(e=>{vr(e,"releaseConditions",t),vr(e.passiveSkills,"comment",t),vr(e.passiveSkills,"name",t),Sr(e.skill,t),Sr(e.concertActiveSkill,t),e.activeSkills&&e.activeSkills.forEach(e=>{Sr(e,t)})})},xr=(e,t)=>{e.forEach(e=>{Sr(e,t)})},Tr=(e,t,r=!1)=>{let n=e.userProduceIdol;n&&(n.activeSkills&&n.activeSkills.forEach(e=>{Sr(e,t)}),n.passiveSkills&&n.passiveSkills.forEach(e=>{Sr(e,t)}),n.limitBreaks&&n.limitBreaks.forEach(e=>{Sr(e,t)}),r&&br(n.skillPanels,t))},kr=(e,t)=>{e.forEach(e=>{Sr(e.skill,t,!0)})},Cr=(e,t)=>{e&&e.forEach(e=>{e.userFesDeck&&e.userFesDeck.userFesDeckMembers.forEach(e=>{e.userFesIdol.activeSkills.forEach(e=>{Er(e,t)})}),e.userRaidDeck&&e.userRaidDeck.userRaidDeckMembers.forEach(e=>{e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t,!0)})}),e.rival&&e.rival.rivalSkills.forEach(e=>{Er(e,t)})})},Ar=async e=>{const t=await gr();br(e.idol.skillPanels,t),xr(e.idol.memoryAppeals,t),e.userIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})},Rr=async e=>{const t=await gr();br(e.supportIdol.skillPanels,t),e.userSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)});try{e.supportIdol.supportIdolActiveSkill.activeSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)})}catch(e){}},Mr=async e=>{const t=await gr(),r=e.userFesIdol;r.activeSkills.forEach(e=>{Sr(e,t)}),Sr(r.memoryAppeal,t),r.passiveSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)}),r.userFesIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)}),r.userFesSupportIdols.forEach(e=>{e.userFesSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})})},Ir=Mr,Pr=async e=>{const t=await gr();e.userProduceExSkills.forEach(e=>{_r(e.produceExSkill,t),e.produceExSkillUpgrade&&_r(e.produceExSkillUpgrade.produceExSkill,t)}),e.userIdols&&e.userIdols.forEach(e=>{e.userIdolProduceExSkills&&e.userIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})}),e.userSupportIdols&&e.userSupportIdols.forEach(e=>{e.userSupportIdolProduceExSkills&&e.userSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})})},Or=async e=>{const t=await gr();e.userProduceSupportIdols.forEach(e=>{br(e.skillPanels,t)}),Tr(e,t,!0),e.userProduceLimitedSkills&&e.userProduceLimitedSkills.forEach(e=>{Sr(e.passiveSkills,t),Sr(e.skill,t)});try{br(e.userProduceIdol.userIdol.idol.skillPanels,t)}catch(e){}},Dr=async e=>{const t=await gr(),r=e=>{e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t,!0)}),Sr(e.userFesIdol.memoryAppeal,t,!0),e.userFesIdol.passiveSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t),Er(e,t)})};e.userFesDeck&&e.userFesDeck.userFesDeckMembers.forEach(r),e.userRaidDeck&&e.userRaidDeck.userRaidDeckMembers.forEach(r),kr(e.judges,t),Cr(e.userFesRivals,t),Cr(e.userFesRaidRivals,t)},Fr=async e=>{const t=await gr();e.userProduceSupportIdols.forEach(e=>{Sr(e.activeSkill,t,!0)});let r=e.userProduceIdol;r.activeSkills.forEach(e=>{Sr(e,t,!0)}),Sr(r.memoryAppeal,t,!0),r.passiveSkills.forEach(e=>{Sr(e,t,!0)});let n=e.produceAudition||e.produceConcert;kr(n.judges,t),((e,t)=>{e.forEach(e=>{Er(e.rivalMemoryAppeal,t),e.rivalSkills.forEach(e=>{Er(e,t)})})})(n.rivals,t)},Br=async e=>{if(e.gameData)try{let t=JSON.parse(e.gameData);t.produceAudition||t.produceConcert?await Fr(t):(t.userFesDeck||t.userRaidDeck)&&await Dr(t),e.gameData=JSON.stringify(t)}catch(e){b()}};let Lr=new Map,Nr=new Map,jr=new Map,Hr=new Map,Ur=new Map,zr=!1;let Gr=null,$r=null;const Wr=async()=>($r||($r=(async(e=!1)=>{if(!zr){let e=await ne("mission");e||(e=await Z("/data/mission-re.csv"),oe("mission",e));const t=te(e),r=[],n=[],o=[],i=new Map;wt(t,"text").forEach(e=>{if(e&&e.text){const t=E(e.text),a=E(e.trans,!0),s=w(e.type);t&&a&&("noun"===s?(r.push(_(t)),jr.set(t,a)):"note"===s?(o.push(_(t)),Ur.set(t,a),i.set(`【${t}】`,`【${a}】`)):"name"===s?(n.push(_(t)),Hr.set(t,a)):"text"===s?Lr.set(t,a):i.set(t,a))}});const a=[{re:/\$name/g,exp:`(${n.join("|")})`},{re:/\$noun/g,exp:`(${r.join("|")})`},{re:/\$note/g,exp:`(${o.join("|")})`}];for(let[e,t]of i){const r=dr(e,a);Nr.set(r,t)}zr=!0}const t=[jr,Ur,Hr];let{itemMap:r}=await Se();return Lr=new Map([...r,...Lr]),{expMap:Nr,wordMaps:t,textMap:Lr}})()),Gr=await $r,Gr),Kr=(e,t)=>{if(!e)return;const{expMap:r,wordMaps:n,textMap:o}=Gr,i=S(e[t]);let a=i;i&&(o.has(i)?e[t]=v(o.get(i)):(a=ur(i,r,n),i!==a&&(e[t]=v(a))))},Xr=e=>{e.forEach(e=>{Kr(e.mission,"title"),Kr(e.mission,"comment"),e.mission.missionReward&&e.mission.missionReward.content&&(Kr(e.mission.missionReward.content,"name"),Kr(e.mission.missionReward.content,"comment"))})},Vr=e=>{e.forEach(e=>{let t=e.fesRaidAccumulatedReward;Kr(t,"title"),Kr(t,"comment");let r=t.fesRaidAccumulatedRewardContent;r&&r.content&&(Kr(r.content,"name"),Kr(r.content,"comment"))})},Jr=e=>{e&&e.forEach(e=>{let t=e;Kr(t,"title"),Kr(t,"afterAchievedComment"),Kr(t,"beforeAchievedComment");let r=t.lectureMissionReward;r&&r.content&&(Kr(r.content,"name"),Kr(r.content,"comment"))})},qr=async e=>{await Wr(),Jr(e.lectureMissions)},Qr=["produceItem","recoveryItem","exchangeItem","lotteryTicket","evolutionItem","gashaTicket","scoutTicket","enhancementItem"];let Yr;const Zr=async()=>(Yr||(Yr=Se()),await Yr);let en=[];(window.unsafeWindow||window).printUnknowItems=()=>b(en.join("\n"));const tn=(e,t,{itemMap:r,itemLimitMap:n,itemNoteMap:o})=>{if(!e||"string"!=typeof e[t])return;let i=S(e[t]),a="",s="",c="";if(/[\s\S]+[\r\n]{0,2}\[[^\]]+\]$/.test(i)){let e=i.match(/([\s\S]+)([\r\n]{0,2}\[[^\]]+\])$/);i=e[1].trim();let t=e[2];a=n.has(t)?n.get(t):t}if(/[\s\S]+[\r\n]{0,2}【Exp:\d+】$/.test(i)){let e=i.match(/([\s\S]+)([\r\n]{0,2}【Exp:\d+】)$/);i=e[1].trim(),c=e[2]}if(/[\s\S]+[\r\n]{0,2}[((][^))]+[))]$/.test(i)){let e=i.match(/([\s\S]+)([\r\n]{0,2})[((]([^))]+)[))]$/);i=e[1].trim();let t=e[3];s=o.has(t)?`${e[2]}(${o.get(t)})`:e[2]+"(txt)"}if(r.has(i)){let n=r.get(i);n=`${n}${s}${c}${a}`,e[t]=v(n)}else 0},rn=(e,t)=>{e&&e.shopMerchandises&&e.shopMerchandises.forEach(e=>{tn(e,"title",t),tn(e,"shopTitle",t),tn(e,"comment",t)})},nn=async e=>{let t=e;e.userProduceItems&&(t=e.userProduceItems);const r=await Zr();Array.isArray(t)&&t.forEach(e=>{const t=e[Qr[0]]||e[Qr[1]]||e[Qr[2]]||e[Qr[3]]||e[Qr[4]]||e[Qr[5]]||e[Qr[6]]||e[Qr[7]];tn(t,"name",r),tn(t,"comment",r)})},on=new Map;let an=!1;let sn=null;const cn=async()=>(sn||(sn=(async()=>{if(!an){let e=await ne("story-title");e||(e=await Z("/data/story-title.csv"),oe("story-title",e));te(e).forEach(e=>{const t=w(e.title),r=w(e.trans);t&&r&&t!==r&&on.set(t,r)}),an=!0}return on})()),await sn),ln=(e,t,r)=>{if(e&&e[t]){const n=e[t];r.has(n)&&(e[t]=r.get(n))}},un=async e=>{const t=await cn(),r=[];if(e.communications&&e.communications.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),e.idol&&e.idol.produceIdolEvents&&(e.idol.produceIdolEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),e.idol.produceAfterEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)})),e.supportIdol&&e.supportIdol.produceSupportIdolEvents&&e.supportIdol.produceSupportIdolEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),e.gameEvents&&e.gameEvents.forEach(e=>{e.communications.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)})}),e.specialEvents&&e.specialEvents.forEach(e=>{e.communications.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)})}),e.produceEvents&&e.produceEvents.forEach(e=>{r.push({title:e.title,trans:""}),ln(e,"title",t)}),console.log(H.commuTitle),console.log(r),"download"==H.commuTitle){const e=mt.unparse(r);T(e,"commuTitles"),H.commuTitle="normal",X()}},dn=new Map;let hn=!1;let pn=null;const fn=async()=>(pn||(pn=(async()=>{if(!hn){let e=await ne("card-title");e||(e=await Z("/data/card-title.csv"),oe("card-title",e));te(e).forEach(e=>{const t=w(e.title),r=w(e.trans);t&&r&&t!==r&&dn.set(t,r)}),hn=!0}return dn})()),await pn),mn=(e,t,r)=>{const n=e.name.split(/【|】/);t.has(n[2])&&(n[2]=t.get(n[2])),r.has(n[1])&&(n[1]=r.get(n[1])),e.name="【".concat(n[1],"】",n[2])},gn=async e=>{const t=await fn(),r=await xe();e.idol&&mn(e.idol,r,t),e.supportIdol&&mn(e.supportIdol,r,t),e.idolCostumes&&e.idolCostumes.forEach((function(e){mn(e,r,t)})),e.userSupportIdol&&mn(e.userSupportIdol.supportIdol,r,t),e.userProduceSupportIdols&&e.userProduceSupportIdols.forEach((function(e){mn(e.userSupportIdol.supportIdol,r,t)})),e.userIdol&&mn(e.userIdol.idol,r,t),e.userProduceIdol&&(mn(e.userProduceIdol.userIdol.idol,r,t),r&&e.userProduceIdol.userIdol&&e.userProduceIdol.userIdol.idol&&e.userProduceIdol.userIdol.idol.character&&(((e,t)=>{t.has(e.firstName)&&(e.firstName=t.get(e.firstName))})(e.userProduceIdol.userIdol.idol.character,r),((e,t)=>{t.has(e.name)&&(e.name=t.get(e.name))})(e.userProduceIdol.userIdol.idol.character,r))),e.userProduce&&e.userProduce.userProduceIdol&&mn(e.userProduce.userProduceIdol.userIdol.idol,r,t),e.userFesDecks&&e.userFesDecks.forEach((function(e){e.userFesDeckMembers.forEach((function(e){mn(e.idol,r,t),e.idolCostumes.forEach((function(e){mn(e,r,t)}))}))})),e.userFesIdol&&mn(e.userFesIdol.idol,r,t),e.helperSupportIdolOptions&&e.helperSupportIdolOptions.forEach(e=>{b(e.supportIdol.name),mn(e.supportIdol,r,t)})},yn=new Map;let vn=!1;let wn=null;const En=async()=>(wn||(wn=(async()=>{if(!vn){let e=await ne("profile");e||(e=await Z("/data/profile.csv"),oe("profile",e));te(e).forEach(e=>{const t=w(e.name);t&&yn.set(t,e)}),vn=!0}return yn})()),await wn),Sn=(e,t,r)=>{"unit_name"==t&&r[t]?e.unit.name=r[t]:r[t]&&(e[t]=r[t])},_n=(e,t)=>{Sn(e,"arm",t),Sn(e,"birthDay",t),Sn(e,"characterVoice",t),Sn(e,"firstName",t),Sn(e,"hobby",t),Sn(e,"nameKana",t),Sn(e,"place",t),Sn(e,"arm",t),Sn(e,"specialty",t),Sn(e,"starSign",t),Sn(e,"unit_name",t)},bn=async e=>{const t=await En();if(e.name){const r=t.get(e.name);_n(e,r)}if(e.firstName){const t=await xe();t&&t.has(e.firstName)&&(e.firstName=t.get(e.firstName))}if(e.beginnerMissionUnits&&e.beginnerMissionUnits.forEach(e=>{e.idols.forEach(e=>{const r=t.get(e.idol.character.name);_n(e.idol.character,r)})}),e.units&&e.units.forEach(e=>{e.idols.forEach(e=>{const r=t.get(e.character.name);_n(e.character,r)})}),e.userCharacter&&e.userCharacter.character){const r=t.get(e.userCharacter.character.name);_n(e.userCharacter.character,r)}if(e.userFesIdol&&e.userFesIdol.idol&&e.userFesIdol.idol.character){const r=t.get(e.userFesIdol.idol.character.name);_n(e.userFesIdol.idol.character,r)}if(e.idol&&e.idol.character){const r=t.get(e.idol.character.name);_n(e.idol.character,r)}if(e.supportIdol&&e.supportIdol.character){const r=t.get(e.supportIdol.character.name);_n(e.supportIdol.character,r)}},xn=async(e,t="comment")=>{const r=e.map(e=>e[t]).join("").trim();await cr(e,r,!0)},Tn=async(e,t="comment")=>{const r=e.map(e=>e[t]).join("").trim();e.map(e=>e[t]);await cr(e,r,!0,!0)},kn=["actionComment","actionComment2","reactionComment","resultLoseComment","resultStartComment","resultWinComment"],Cn=async e=>{try{if(e.produceAudition){let t=e.produceAudition.judges.map(e=>kn.map(t=>e[t]||"").join("")).join("").trim();await cr(e.produceAudition.judges,t,!0)}if(e.produceConcert){let t=e.produceConcert.judges.map(e=>kn.map(t=>e[t]||"").join("")).join("").trim();await cr(e.produceConcert.judges,t,!0)}}catch(e){b()}},An=async e=>{if(e.judges){let t=e.judges.map(e=>kn.map(t=>e[t]||"").join("")).join("").trim();await cr(e.judges,t,!0)}},Rn=async e=>{if(e.topCharacterReaction)try{const t=[...e.topCharacterReaction.moveReactions,...e.topCharacterReaction.skillReleasedReactions,...e.topCharacterReaction.touchExReactions,...e.topCharacterReaction.touchReactions,...e.topCharacterReaction.waitReactions];await xn(t)}catch(e){b()}},Mn=async e=>{let t=[...e.produceStaffComments||[],...e.produceStaffConcertComments||[],...e.produceStaffFailComments||[],...e.produceStaffSeasonComments||[]];await xn(t)},In=async e=>{if(e.gameData)try{let t=JSON.parse(e.gameData);t.judges?await An(t):await Cn(t),e.gameData=JSON.stringify(t)}catch(e){b()}},Pn=async e=>{if(!e.characterComment)return;let t=[];t=t.concat(e.characterComment),await xn(t)},On=new Map;let Dn=!1;const Fn=async()=>{if(!Dn){let e=await ne("business");e||(e=await Z("/data/business.csv"),oe("business",e));te(e).forEach(e=>{const t=w(e.charaLeft),r=w(e.charaRight),n=w(e.sourceLeft),o=w(e.sourceRight),i=w(e.transLeft),a=w(e.transRight);t&&r&&n&&o&&i&&a&&n!=i&&o!=a&&On.set(t+r,{charaLeft:e.charaLeft,charaRight:e.charaRight,sourceLeft:e.sourceLeft,sourceRight:e.sourceRight,transLeft:e.transLeft,transRight:e.transRight})}),Dn=!0}return On};var Bn={},Ln=!1;const Nn=async()=>(Ln||(Ln=xe()),Bn=await xe());var jn={},Hn=!1;const Un=async()=>(Hn||(Hn=Fn()),jn=await Fn()),zn=e=>{const t=e.characterLeft.firstName,r=e.characterRight.firstName;if(console.log(t+r),Bn.has(t)&&(e.characterLeft.firstName=Bn.get(t)),Bn.has(r)&&(e.characterRight.firstName=Bn.get(r)),jn.has(t+r)){const n=jn.get(t+r);n.transLeft&&(e.commentLeft=n.transLeft),n.transRight&&(e.commentRight=n.transRight)}};var Gn=function(){this.__data__=[],this.size=0};var $n=function(e,t){return e===t||e!=e&&t!=t};var Wn=function(e,t){for(var r=e.length;r--;)if($n(e[r][0],t))return r;return-1},Kn=Array.prototype.splice;var Xn=function(e){var t=this.__data__,r=Wn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Kn.call(t,r,1),--this.size,!0)};var Vn=function(e){var t=this.__data__,r=Wn(t,e);return r<0?void 0:t[r][1]};var Jn=function(e){return Wn(this.__data__,e)>-1};var qn=function(e,t){var r=this.__data__,n=Wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Qn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991},Xo={};Xo["[object Float32Array]"]=Xo["[object Float64Array]"]=Xo["[object Int8Array]"]=Xo["[object Int16Array]"]=Xo["[object Int32Array]"]=Xo["[object Uint8Array]"]=Xo["[object Uint8ClampedArray]"]=Xo["[object Uint16Array]"]=Xo["[object Uint32Array]"]=!0,Xo["[object Arguments]"]=Xo["[object Array]"]=Xo["[object ArrayBuffer]"]=Xo["[object Boolean]"]=Xo["[object DataView]"]=Xo["[object Date]"]=Xo["[object Error]"]=Xo["[object Function]"]=Xo["[object Map]"]=Xo["[object Number]"]=Xo["[object Object]"]=Xo["[object RegExp]"]=Xo["[object Set]"]=Xo["[object String]"]=Xo["[object WeakMap]"]=!1;var Vo=function(e){return g(e)&&Ko(e.length)&&!!Xo[f(e)]};var Jo=function(e){return function(t){return e(t)}},qo=t((function(e,t){var n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a})),Qo=qo&&qo.isTypedArray;Qo&&Jo(Qo),Object.prototype.hasOwnProperty;Object.prototype;P(Object.keys,Object),Object.prototype.hasOwnProperty;Object.prototype.hasOwnProperty;t((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r?o.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}}));var Yo=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{0},ki={get:[[[/^userSupportIdols\/\d+$/,/^userSupportIdols\/statusMax/,/^produceTeachingSupportIdols\/\d+$/],[wr,Rr,"cardTitle","storyTitle",bn]],[/^userProduce(Teaching)?SupportIdols\/\d+$/,[wr,async e=>{const t=await gr();br(e.skillPanels,t),e.userProduceSupportIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)});try{e.userSupportIdol.supportIdol.supportIdolActiveSkill.activeSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)})}catch(e){}},"cardTitle"]],[/^userReserveSupportIdols\/userSupportIdol\/\d+$/,[wr,async e=>{const t=await gr();br(e.supportIdol.skillPanels,t);try{e.supportIdol.supportIdolActiveSkill.activeSkills.forEach(e=>{vr(e,"comment",t),vr(e,"name",t)})}catch(e){}},bn]],[/^userIdols\/\d+\/produceExSkillTop$/,Pr],[/^userSupportIdols\/\d+\/produceExSkillTop$/,Pr],[[/^userIdols\/\d+$/,/^userIdols\/statusMax$/,/^produceTeachingIdols\/\d+$/],[Ar,"cardTitle","storyTitle",bn]],[[/^userProduce(Teaching)?Idols\/\d+$/,"userProduceTeachingIdol"],[async e=>{const t=await gr();e.activeSkills.forEach(e=>{Sr(e,t)}),xr(e.userIdol.idol.memoryAppeals,t),e.userProduceIdolProduceExSkills.forEach(e=>{_r(e.produceExSkill,t)})},"cardTitle"]],[/^userReserveIdols\/userIdol\/\d+$/,[async e=>{const t=await gr();br(e.idol.skillPanels,t),xr(e.idol.memoryAppeals,t)},bn]],[/^userFesIdols\/\d+$/,[Mr,"cardTitle",bn]],[["userProduces/skillPanels","userProduceTeachings/skillPanels"],Or],["produceMusics",[async e=>{e.produceMusics&&e.produceMusics.forEach(e=>{e.produceMusicAssignments&&e.produceMusicAssignments.forEach(e=>{Kr(e,"title")})})},async e=>{e.produceMusics&&e.produceMusics.forEach(e=>{e.produceMusicProficiencyBonuses&&e.produceMusicProficiencyBonuses.forEach(e=>{Kr(e,"description"),b(e.description)})})}]],["userMissions",async e=>{await Wr(),Xr(e.dailyUserMissions),Xr(e.weeklyUserMissions),e.eventUserMissions.forEach(e=>{e&&e.userMissions&&Xr(e.userMissions)}),Xr(e.normalUserMissions),Xr(e.specialUserMissions),Xr(e.fesMatchRankingUserMissions)}],[/^fesRaidEvents\/\d+\/rewards$/,async e=>{await Wr(),Vr(e.fesRaidBestScoreRewards),Vr(e.fesRaidLapRewards),Vr(e.fesRaidPointRewards)}],[["characterAlbums","album/top"],"storyTitle"],[["userShops","userIdolPieceShops"],async e=>{const t=await Zr();e&&(Array.isArray(e.userShops)&&e.userShops.forEach(e=>{rn(e,t)}),Array.isArray(e.userEventShops)&&e.userEventShops.forEach(e=>{rn(e.userShop,t)}))}],[["userRecoveryItems","userProduceItems","userExchangeItems","userLotteryTickets","userEvolutionItems","userGashaTickets","userScoutTickets","userEnhancementItems"],nn],[[/^userPresents\?limit=/,/^userPresentHistories\?limit=/],async e=>{const t=await Zr();Array.isArray(e)&&e.forEach(e=>{tn(e.content,"name",t)})}],[/gashaGroups\/\d+\/rates/,["cardName",async e=>{const t=await fn(),r=await xe();e.forEach((function(e){e.contents.forEach((function(e){((e,t,r)=>{const n=e.contentName.split(/【|】/);t.has(n[2])&&(n[2]=t.get(n[2])),r.has(n[1])&&(n[1]=r.get(n[1])),e.contentName="【".concat(n[1],"】",n[2])})(e,r,t)}))}))}]],["userProduces",[Rn,"cardTitle"]],[/^fes(Match)?Concert\/actions\/resume$/,[In,Br]],[/earthUsers\/[^\/]+\/userFesIdols\/\d+$/,Ir],["userBeginnerMissions/top",[qr,bn]],["tutorialIdols",bn],["userRaidDecks",async e=>{const t=await gr();e.userRaidDecks.forEach(e=>{e.userRaidDeckMembers.forEach(e=>{e.userFesIdol&&e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t)})})})}],["idolRoads/top",async e=>{await Wr(),Xr(e.userMissions)}],["businessTalkCommunications",async e=>{if(await Un(),await Nn(),"download"===H.business){const t=e.businessTalks.map(e=>({charaLeft:e.characterLeft.firstName,sourceLeft:k(e.commentLeft),transLeft:"",charaRight:e.characterRight.firstName,sourceRight:k(e.commentRight),transRight:""})),r=mt.unparse(t);T(r,"businessTalks"),H.business="normal",X()}e.businessTalks.forEach(e=>{zn(e)})}],["searchPopupContents",async e=>{const t=await pr();e.supportSkillEffects&&e.supportSkillEffects.forEach(e=>{vr(e,"label",t)}),e.activeSkills&&e.activeSkills.forEach(e=>{vr(e,"label",t)}),e.idolArrivalTypes&&e.idolArrivalTypes.forEach(e=>{vr(e,"label",t)})}],["userDecks/skillPanels",async e=>{const t=await gr();e.userSupportIdols.forEach(e=>{br(e.skillPanels,t)}),e&&e.userIdol&&br(e.userIdol.skillPanels,t)}],["userProduceIdeaNotes",async e=>{const t=await gr();e.forEach(e=>{let r=e.produceIdeaNote.produceIdeaNoteCompleteBonus;vr(r,"title",t),vr(r,"comment",t),e.produceIdeaNote.produceIdeaNoteExtraBonuses.forEach(e=>{vr(e,"comment",t),vr(e,"condition",t)})})}],["userIdols/produceExSkillTop",Pr],["userSupportIdols/produceExSkillTop",Pr],[/fesMatchPopularIdolRankings\/\d+$/,async e=>{const t=await fn(),r=await xe();e&&e.rankings&&e.rankings.forEach(e=>{mn(e.idol,r,t)})}],["businessTop",[async e=>{const t=await fn(),r=await xe();e.userBusinesses&&e.userBusinesses.forEach(e=>{e.members&&e.members.forEach(e=>{mn(e.userSupportIdol.supportIdol,r,t)})})},async e=>{const t=await pr();e.userBusinesses&&e.userBusinesses.forEach(e=>{e.members&&e.members.forEach(e=>{e.userSupportIdol&&e.userSupportIdol.supportSkills&&e.userSupportIdol.supportSkills.forEach(e=>{vr(e,"name",t),vr(e,"description",t)})})})}]]],post:[["myPage",[async e=>{await Wr(),Xr(e.reportUserMissions)},async e=>{try{let t=[],r={};e.userHomeDeck.userHomeDeckAnimationMember&&(t=[...e.userHomeDeck.userHomeDeckAnimationMember.mypageComments]);let n=e.userHomeDeck.userHomeAnimationDeck.userHomeAnimationDeckMembers;if(n&&n.forEach(e=>{e.mypageComments.forEach(e=>{t.push(e)})}),e.userHomeDeck.userHomeDeckMembers.length&&e.userHomeDeck.userHomeDeckMembers.forEach(async e=>{e.mypageComments.forEach(async e=>{t.push(e),Object.keys(e).forEach(async t=>{let n=e[t];if("speakerName"===t){Object.keys(r).some(r=>r===e[t])||(r[n]=[]),r[n].push(e)}})})}),"multiple"===H.myPage)Object.keys(r).forEach(e=>{const t=r[e].map(e=>k(e.comment)).map(e=>({jp:e,en:""})),n=mt.unparse(t);T(n,r[e][0].speakerName+"-myPageComments")}),H.myPage="normal",X();else if("single"===H.myPage){const e=t.map(e=>({name:e.speakerName,comment:k(e.comment)})).map(e=>({name:e.name,jp:e.comment,en:""})),r=mt.unparse(e);T(r,"deckMember-myPageComments"),H.myPage="normal",X()}await Tn(t)}catch(e){b()}},async e=>{await Wr();let t=e.beginnerMission;t&&(t.clearedLectureMission&&Jr([t.clearedLectureMission]),t.progressLectureMission&&Jr([t.progressLectureMission]))},"cardTitle"]],[/^(produceMarathons|fesMarathons|trainingEvents)\/\d+\/top$/,[async e=>{await Wr(),Kr(e.userRecommendedMission.mission,"comment"),Kr(e.userRecommendedMission.mission,"title"),e.accumulatedPresent.userGameEventAccumulatedPresents.forEach(e=>{Kr(e.gameEventAccumulatedPresent,"comment"),Kr(e.gameEventAccumulatedPresent,"title")})},async e=>{const t=await Zr();e.accumulatedPresent.userGameEventAccumulatedPresents.forEach(e=>{e.gameEventAccumulatedPresent.rewards.forEach(e=>{tn(e.content,"name",t)})})}]],[/userIdols\/\d+\/produceExSkills\/\d+\/actions\/set/,Ar],["userShops/actions/purchase",async e=>{const t=await Zr();e&&e.shopMerchandise&&(tn(e.shopMerchandise,"title",t),tn(e.shopMerchandise,"comment",t))}],[/produces\/\d+\/actions\/ready/,[nn,async e=>{const t=await pr();e.userDecks&&e.userDecks.forEach(e=>{e.userSupportIdols.forEach(e=>{e.supportIdol.supportSkills.forEach(e=>{vr(e,"description",t),vr(e,"name",t),e.replaceDescriptions.forEach(e=>{vr(e,"description",t)})})})})}]],[/produces\/\d+\/actions\/finish/,[gn]],["fesTowerEvents/top",[async e=>{e.suggestFesTowerAreaClearBonuses&&e.suggestFesTowerAreaClearBonuses.forEach(e=>{Kr(e.fesTowerBonus,"desc")})},async e=>{e.userFesTowerAreas&&e.userFesTowerAreas.forEach(e=>{e.userFesTowerAreaClearBonuses&&e.userFesTowerAreaClearBonuses.forEach(e=>{Kr(e.fesTowerBonus,"desc")})})},async e=>{e.suggestFesTowerCompleteBonuses&&e.suggestFesTowerCompleteBonuses.forEach(e=>{e.userFesTowerCompleteBonuses&&e.userFesTowerCompleteBonuses.forEach(e=>{e.fesTowerCompleteBonus.fesTowerBonuses.forEach(e=>{Kr(e,"desc")})})})},async e=>{e.userFesTowerCompleteBonuses&&e.userFesTowerCompleteBonuses.forEach(e=>{e.fesTowerCompleteBonus.fesTowerBonuses.forEach(e=>{Kr(e,"desc")})})}]],[/userPresents\/\d+\/actions\/receive/,async e=>{const t=await Zr();tn(e.receivedPresent,"Name",t)}],[/userMissions\/\d+\/actions\/receive/,async e=>{const t=await Zr();tn(e.userMission.mission.missionReward.content,"name",t)}],["userLoginBonuses",async e=>{const t=await Zr();e.userLoginBonuses.forEach(e=>{e.loginBonus.sheets.forEach(e=>{e.rewards.forEach(e=>{tn(e.content,"name",t)})})}),e.userTotalBonuses.forEach(e=>{e.rewards.forEach(e=>{tn(e.content,"name",t)})})}],["fesTop",[async e=>{const t=await Zr();e.lastRankingResult&&Array.isArray(e.lastRankingResult.fesMatchGradeRewards)&&e.lastRankingResult.fesMatchGradeRewards.forEach(e=>{tn(e.content,"name",t)})},async e=>{if(e.userFesDeck)try{let t=[],r=e.userFesDeck.userFesDeckMembers;for(let e of r)e.fesTopCharacterReactions.forEach(e=>{t.push(e)});await xn(t)}catch(e){b()}}]],[[/^userProduce(Teaching)?s\/skillPanels\/\d+$/,/^userProduces\/limitedSkills\/\d+$/],Or],[/userSupportIdols\/\d+\/produceExSkills\/\d+\/actions\/set/,[Rr,wr]],[/^produces\/actions\/(resume|next|endWeek)$/,[async e=>{if(e.userProduceIdeaNotes){const t=await gr();e.userProduceIdeaNotes.forEach(e=>{let r=e.produceIdeaNote.produceIdeaNoteCompleteBonus;vr(r,"title",t),vr(r,"comment",t),e.produceIdeaNote.produceIdeaNoteExtraBonuses.forEach(e=>{vr(e,"comment",t),vr(e,"condition",t)})})}if(e.ideaNoteResult&&e.ideaNoteResult.seasonClearBonusIdeaNotes){const t=await gr();e.ideaNoteResult.seasonClearBonusIdeaNotes.forEach(e=>{let r=e.produceIdeaNoteCompleteBonus;vr(r,"title",t),vr(r,"comment",t),e.produceIdeaNoteExtraBonuses.forEach(e=>{vr(e,"comment",t),vr(e,"condition",t)})})}},Rn,Mn,In,Pn,Cn,async e=>{try{let t=e.produceReporterEvent;t&&t.produceReporterEventAnswers&&await xn(t.produceReporterEventAnswers,"comment2")}catch(e){b()}},wr,"cardTitle","storyTitle"]],[["produces/actions/resume","produces/actions/finish","produceTeachings/resume"],[async e=>{if(e.gameData)return;const t=await gr();Tr(e,t)},Br]],["produces/actions/endWeek",Mn],["produces/actions/act",[async e=>{if(!e.lessonResult)return;let t=e.lessonResult;try{let e=[];t.produceActCutinComment&&(e=e.concat(t.produceActCutinComment)),t.produceRestBoostIdolComment&&(e=e.concat(t.produceRestBoostIdolComment)),t.produceRestBoostSupportIdolComment&&(e=e.concat(t.produceRestBoostSupportIdolComment)),t.produceRestComments&&(e=e.concat(t.produceRestComments)),await xn(e)}catch(e){b()}},async e=>{const t=await gr();try{let r=e.lessonResult.userProduceIdeaNote.produceIdeaNote.produceIdeaNoteCompleteBonus;Sr(r,t)}catch(e){}},"storyTitle"]],[/^fes(Match|Raid)?Concert\/actions\/start$/,[An,Dr]],[/^fes(Match)?Concert\/actions\/resume$/,[In,Br]],["fesRaidConcert/actions/resume",[async e=>{if(e.gameState&&e.gameState.game_data)try{let t=JSON.parse(e.gameState.game_data);t.judges&&await An(t),e.gameState.game_data=JSON.stringify(t)}catch(e){b()}},async e=>{if(e.gameState&&e.gameState.game_data)try{let t=JSON.parse(e.gameState.game_data);t.userRaidDeck&&await Dr(t),e.gameState.game_data=JSON.stringify(t)}catch(e){b()}}]],["produces/actions/result",[async e=>{try{let t=e.characterTrustLevelUpComments;await xn(t)}catch(e){b()}},async e=>{const t=await gr();e.produceExSkillRewards.forEach(e=>{_r(e.produceExSkill,t)})}]],[[/^produce(Teaching)?s\/(\d+\/audition|concert)\/actions\/start$/,/^produceTeachings\/(auditions|concerts)\/start$/],[Fr]],[/^produces\/(\d+\/audition|concert)\/actions\/(start|finish)$/,[Cn,Pn,gn]],["userProduceHelperSupportIdols",async e=>{try{let t=e.characterComment+e.producerComment;await cr([e],t,!0)}catch(e){b()}}],[["produceTeachings/resume","produceTeachings/next"],[async e=>{await Wr(),e.teachingHints&&e.teachingHints.forEach(e=>{e.userProduceTeachingHints.forEach(e=>{Kr(e.produceTeachingHint,"title")})})},wr]],[/^userSelectLoginBonuses\/\d+$/,async e=>{const t=await Zr();e.rewards.forEach(e=>{tn(e.content,"name",t)})}],[/^characterAlbums\/characters\/\d+$/,[bn,"storyTitle",async e=>{if(e.voices){const t=[];e.voices.forEach(e=>{e.characterTrustLevelComment&&t.push(e.characterTrustLevelComment)}),await Tn(t)}},async e=>{if(e.voices){const t=await cn();e.voices.forEach(e=>{ln(e,"title",t)})}},async e=>{if(console.log("idolcostumes START"),e.idolCostumes){console.log("idolcostumes FOUND");const t=await fn(),r=await xe();console.log("idolcostumes AWAIT FINISH"),e.idolCostumes.forEach(e=>{console.log("idolcostumes ITEM"),mn(e,r,t)})}}]],[/^userLectureMissions\/\d+\/actions\/receive$/,qr],["business/actions/start",async e=>{await Un(),await Nn(),zn(e.businessTalk)}],["business/actions/finish",[async e=>{const t=await gr();e&&e.slots&&e.slots.forEach(e=>{e.businessProduceExSkillRewards&&e.businessProduceExSkillRewards.forEach(e=>{_r(e.produceExSkill,t)})})},async e=>{const t=await fn(),r=await xe();e.slots&&e.slots.forEach(e=>{e.afterUserSupportIdols&&e.afterUserSupportIdols.forEach(e=>{mn(e.supportIdol,r,t)}),e.beforeUserSupportIdols&&e.beforeUserSupportIdols.forEach(e=>{mn(e.supportIdol,r,t)})})},async e=>{const t=await pr();e.slots&&e.slots.forEach(e=>{e.afterUserSupportIdols&&e.afterUserSupportIdols.forEach(e=>{e.supportSkills&&e.supportSkills.forEach(e=>{vr(e,"name",t),vr(e,"description",t)})}),e.beforeUserSupportIdols&&e.beforeUserSupportIdols.forEach(e=>{e.supportSkills&&e.supportSkills.forEach(e=>{vr(e,"name",t),vr(e,"description",t)})})})}]]],patch:[[/^userSupportIdols\/\d+$/,wr],["userFesDecks",[async e=>{const t=await gr();e.userFesDecks.forEach(e=>{e.userFesDeckMembers.forEach(e=>{e.userFesIdol&&e.userFesIdol.activeSkills.forEach(e=>{Sr(e,t)})})})},"cardTitle"]]],put:[["userHomeDecks",["cardTitle"]]]},Ci=(e,t,r,n)=>async(...r)=>{var o,i;return Ti(0,0,0,null===(o=r[0])||void 0===o||o.body),await(async(e,t,r)=>{try{for(let[n,o]of r){Array.isArray(n)||(n=[n]);let r=!1;for(let e of n)(y(e)&&e===t||xi(e)&&e.test(t))&&(r=!0);if(r){Array.isArray(o)||(o=[o]);for(let t of o)y(t)?"storyTitle"===t?(Ne(e),un(e)):"cardTitle"===t&&gn(e):await t(e)}}}catch(e){b()}})(null===(i=r[0])||void 0===i?void 0:i.body,t,ki[e.toLowerCase()]),n(...r)},Ai=Array.prototype.push;Array.prototype.push=function(...e){var t;if("object"==typeof e[0]&&null!==(t=e[0])&&void 0!==t&&t.method){const{path:t,method:r,options:n,resolve:o}=e[0];e[0].resolve=Ci(r.toUpperCase(),t,0,o)}return Ai.apply(this,e)};const Ri={name:"",filename:"",list:"",preview:new Map};let Mi=!1;const Ii=async()=>{const e=await(async()=>(await pe("SCENARIO",e=>e&&e.default&&e.default.load&&e.default._errorEvent&&e.default._handleError)).default)();if(!e)return;const t=e.load;e.load=async function(...e){const r=await t.apply(this,e),n=e[0];if(!n)return r;if(n.includes("/produce_events/")||n.includes("/produce_communications/")||n.includes("/produce_communications_promises/")||n.includes("/produce_communication_promise_results/")||n.includes("/game_event_communications/")||n.includes("/special_communications/")||n.includes("/produce_communication_cheers/")||n.includes("/produce_communication_auditions/")||n.includes("/produce_communication_televisions/"))try{const e=n.replace(/^\/assets\/json\//,"");let t;if("edit"===H.story&&(((e,t)=>{const r=t.replace(".json",""),n=(e=>{const t=e.match(/\/(\d+)$/);return t&&t[1]?t[1]:""})(r),o=De.get(n)||r.replace(/\//g,"_"),i=[];e.forEach((e,t)=>{let n=w(k(e.text));n&&n.trim()?i.push({id:r.replace("/","")+t,name:e.speaker||"",text:n,trans:""}):e.select&&i.push({id:"select",name:"",text:w(k(e.select)),trans:""})}),i.push({id:"info",name:t,text:"",trans:""}),i.push({id:"Translator",name:"",text:"",trans:""}),Ri.name=t,Ri.filename=o+".csv",Ri.list=i})(r,e),vt(Ri)),(()=>{if(Mi)return;Mi=!0;const e=sessionStorage.getItem("sczh:preview");if(e)try{const t=JSON.parse(e),r=new Map(t);for(let[e,t]of r)r.set(e,new Map(t));Ri.preview=r}catch(e){b()}})(),t=Ri.preview.has(e)?Ri.preview.get(e):await(async e=>{if(!Le){let e=await ne("story-index");if(e)Le=new Map(JSON.parse(e));else{const t=await Z("/story.json");Le=new Map(t),oe("story-index",JSON.stringify(e))}}if(Le.has(e)){if(Oe.has(e))return Oe.get(e);{const t=Le.get(e),r=await Z(t),n=je(r);return Oe.set(e,n),n}}return!1})(e),t){const n=await He();((e,t,r,n,o)=>{Array.isArray(e)&&e.forEach((e,i)=>{if(R(e,n),e.text){const n=Pe(S(e.text));if(o=(o=o.replace(".json","")).replace("/",""),t.has(o+i+n))e.text=t.get(o+i+n);else if(e.id){const r=e.id+n;t.has(r)&&(e.text=t.get(r))}else t.has(n)?e.text=t.get(n):r.has(e.text)&&(e.text=v(r.get(e.text)))}if(e.select){const n=S(e.select),o=Pe(n)+"-select";t.has(o)?e.select=t.get(o):r.has(n)&&(e.select=v(r.get(e.select)))}})})(r,t,n,await xe(),e)}else"on"===H.auto?await cr(r,e):await cr(r,e,!1,!0)}catch(e){b()}return r}},Pi=e=>{const t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("href",e),t.setAttribute("as","font"),t.setAttribute("type","font/woff2"),t.setAttribute("crossorigin","anonymous"),document.head.appendChild(t)},Oi=async()=>{const e=document.createElement("style"),{hash:t}=await Y;e.innerHTML=`\n @font-face {\n font-family: "sczh-heiti";\n src: url("${H.origin}/data/font/heiti.woff2?v=${t}");\n }\n @font-face {\n font-family: "sczh-yuanti";\n src: url("${H.origin}/data/font/yuanti.woff2?v=${t}");\n }\n @font-face {\n font-family: "sczh-yuanti2";\n src: url("${H.origin}/data/font/yuanti2.woff2?v=${t}");\n }\n ::-webkit-scrollbar {\n display: none;\n }\n `,"yuanti"===H.font1?Pi(`${H.origin}/data/font/yuanti.woff2?v=${t}`):"yuanti2"===H.font1&&Pi(`${H.origin}/data/font/yuanti2.woff2?v=${t}`),"heiti"===H.font2&&Pi(`${H.origin}/data/font/heiti.woff2?v=${t}`),document.head.appendChild(e)};if(!("onbeforescriptexecute"in document)){new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)if("SCRIPT"===e.tagName){let t=new CustomEvent("beforescriptexecute",{detail:e,cancelable:!0});document.dispatchEvent(t)||e.remove()}}).observe(document,{childList:!0,subtree:!0})}const Di=e=>{e=(e=>{let t=[/var n=window.[a-z0-9]*;/g,"Object.freeze({addHeader:"],r=["$&window._require=t;","({addHeader:"];for(let o=0;o{e.src.includes("shinycolors.enza.fun/app")&&(t.preventDefault(),t.stopPropagation(),fetch(e.src).then(async e=>{if(e.ok){var t=await e.text();Di(t)}}))})(e.detail||e.target,e)}));window.addEventListener("blur",(function(e){"on"===H.bgm&&e.stopImmediatePropagation()}),!1),document.addEventListener("visibilitychange",(function(e){"on"===H.bgm&&e.stopImmediatePropagation()}));let Fi=0;const Bi=async()=>{var e;ce||Fi>=300?(async()=>{try{await Promise.all([rt(),Oi(),ge(),qe(),Ii()])}catch(e){b()}})():(await(e=100,new Promise(t=>{setTimeout(t,e)})),Fi++,Fi%10==0&&b(),await Bi())};let Li=window.unsafeWindow||window;"loading"!=Li.document.readyState?Bi():Li.addEventListener("DOMContentLoaded",Bi)}(); diff --git a/data/story-title.csv b/data/story-title.csv index 560f9a821..33d4b3c68 100644 --- a/data/story-title.csv +++ b/data/story-title.csv @@ -1365,4 +1365,5 @@ in the てーにんぐるーむ,in the Ten-ing Room 入口までです,"To the entrance, please" 舞,Flicker・Revolving 灯,Lamp・lan -籠,Cage・tern \ No newline at end of file +籠,Cage・tern +【ほわっとスマイル】櫻木 真乃,test123 \ No newline at end of file diff --git a/manifest.json b/manifest.json index 7598574ba..5e0622ecc 100644 --- a/manifest.json +++ b/manifest.json @@ -1 +1 @@ -{"hash":"92cf0702bfb15a9a8de74bd34ef78502","version":"0.21.0","moduleId":{"AOBA":777180,"PHRASE":408947,"SCENARIO":515210,"WEBP":473888},"language":"en","cyweb_token":"t4d0s9zds4fw272poa11","trans_api":"google","date":"2024/4/10 21:28:38.613"} +{"hash":"fa802f1d8ac472e30c817e75951f92fc","version":"0.21.0","moduleId":{"AOBA":777180,"PHRASE":408947,"SCENARIO":515210,"WEBP":473888},"language":"en","cyweb_token":"t4d0s9zds4fw272poa11","trans_api":"google","date":"2024/4/11 4:46:24.310"}